Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple DLL
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Miscellaneous
Thread ID:
01403213
Message ID:
01403239
Views:
35
>>>>Hi,
>>>>Sorry, the question will about C++ (maybe its a shortest way to get an answer)
>>>>
>>>>I try to write a very simple DLL
>>>
>>>>
>>>
>>>Wild guess - is the char* fileName string null terminated? And does it actually point to something?
>>
>>How to make it nullterminated if I pass parameter from commandline in windows? (sorry.. I never use C++ before :))) just need to run app with admin permissions on Windows7 machine) :)))
>
>That's not the correct signature if you're using RunDll. It should look like this:
>
>
>extern "C" __declspec(dllexport) VOID ExecMe(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow)
>{
>	int z = 0;
>	MessageBox(NULL, lpszCmdLine, lpszCmdLine, MB_ICONINFORMATION);
>}
>
>
>That, of course, assumes this is really how you plan on using it in the future. If you're just using RunDll as a test, then you may not want to change it this way.

SUPEEEEEEEEEEER!
Thats solution!!!!!!!!!!
Previous
Reply
Map
View

Click here to load this message in the networking platform