I have a function which should return me text. This is the declaration:
typedef bool(WINAPI* GetMenuHelpName)(intptr_t dll, LPVOID lpBuffer, int size);
I suppose my text is in LpBuffer
:
GetMenuHelpName func2 = (GetMenuHelpName)GetProcAddress(hGetProcIDDLL, "GetMenuHelpName");
LPVOID lpBuffer;
func2(instance, lpBuffer, 2048);
I got this error:
Error C4700 : uninitialized local variable 'lpBuffer' used
How could I initialize lpBuffer
and put my result in a std:string
?