i wanted to ask if MHS automatically "undecorates" the function-names of c++ or if i have to use
- Code: Select all
#define DLLEX extern "C" __declspec( dllexport )
Because the only way to get the compiler to generate function names wich MHS can detect is by adding this.
Also, when I use the prototypes out of the help file, I get less "decorations" but still no "clean" function names
example:
Just typedefs
- Code: Select all
"@@247257@Function@@@s4811@@".
typedefs with extern "C":
- Code: Select all
"@Function@8"
The only way a correct name is generated is like this:
- Code: Select all
DLLEX void MHS_ProcessAttach( HANDLE hProcess, DWORD dwProcessId )
{
AllocConsole();
printf("wall of text");
}
So there is no "CALLBACK" after the "void".
Maybe I should use .def files?
Would you advise using them to make MHS_DLLs ??[/code]