QUOTE(NyeNye @ 12 Oct, 2006 - 09:58 PM)

is there a possible to do a liblary or a DLL with c++
and how??
is there a tutorials with that
Here is an outline of a DLL... you can write one using this in you C/C++ compiler
CODE
BOOL APIENTRY DllMain (HINSTANCE hInst /* Library instance handle. */ ,
DWORD reason /* Reason this function is being called. */ ,
LPVOID reserved /* Not used. */ )
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
break;
case DLL_PROCESS_DETACH:
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
}
/* Returns TRUE on success, FALSE on failure */
return TRUE;
}
Any program in C/C++ must have a "main" function, in the case of the DLL the DllMain is the entry point that windows uses to launch your code.
This post has been edited by gregoryH: 13 Oct, 2006 - 01:54 PM