I have a such difinition of a function:
__declspec(dllexport) int MyFunc(int param1, const char* param2)
whish is only writing parameters into file:
WriteLog(std::to_string(param1));
std::string str_param2(param2);
WriteLog(str_param2);
I compile and run dll with such command:
rundll32 mydll.dll,MyFunc 1 blabla
When I print the values I see:
4457714
MZŃ
Why is that so?
How to pass a 1 inside of param1?