SEARCH

The How-To Geek Forums Have Migrated to Discourse

How-To Geek Forums / Windows 7

memory management

(3 posts)
  • Started 4 years ago by AnGeL021289
  • Latest reply from Symantic
  • Topic Viewed 547 times

AnGeL021289
Posts: 2

please help me.. about this matter...

Posted 4 years ago
Top
 
ispalten
ispalten
Posts: 6259

Uh, what help do you need? Be specific please.

Normally, you do not need to do anything, the OS does it?

Irv S.

Posted 4 years ago
Top
 
Symantic
Posts: 12

int __stdcall DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
if (InitCVIRTE (hinstDLL, 0, 0) == 0)
return 0; /* out of memory */
break;
case DLL_PROCESS_DETACH:
CloseCVIRTE ();
break;
}

return 1;
}

int DLLEXPORT ReturnVar()
{
if(var == 1)
{
var = 2;
return var;
}
var = 0;
return var;
}

Posted 4 years ago
Top
 



Topic Closed

This topic has been closed to new replies.