Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple DLL
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Divers
Thread ID:
01403213
Message ID:
01403239
Vues:
34
>>>>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!!!!!!!!!!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform