File: dll.cpp

package info (click to toggle)
log4cxx 0.9.7-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,620 kB
  • ctags: 2,766
  • sloc: cpp: 18,909; sh: 8,867; xml: 1,146; makefile: 480; ansic: 159
file content (29 lines) | stat: -rwxr-xr-x 641 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// dll.cpp : Defines the entry point for the DLL application.
//

// Insert your headers here
#define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers

#include <windows.h>
#include <crtdbg.h>


BOOL APIENTRY DllMain( HANDLE hModule, 
                       DWORD  ul_reason_for_call, 
                       LPVOID lpReserved
					 )
{
#ifdef _DEBUG
	switch(ul_reason_for_call)
	{
		case DLL_PROCESS_ATTACH:
			// Active l'appel automatique de 
			//_CrtDumpMemoryLeaks  la terminaison du programme
			_CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG)|_CRTDBG_LEAK_CHECK_DF);
		break;
	}
#endif

    return TRUE;
}