Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/xnpalw32.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Tue Mar 15 01:13:51 2005 UTC (19 years ago) by tani
Branch: MAIN
CVS Tags: MergePnt_20051220, merge_to_20060605, XOONIPS_RC1, RELEASE_1_0_1, AL_PORTING, HEAD
Branch point for: XOONIPS_STABLE, XOONIPS_STABLE_3
Changes since 1.1: +0 -0 lines
File MIME type: text/x-c++src
FILE REMOVED
*** empty log message ***

1 #include <windows.h>
2
3 static HMODULE hDll = NULL;
4
5 int WINAPI DllMain(HINSTANCE hInst, DWORD fdwReason, PVOID pvReserved)
6 {
7 if( fdwReason == DLL_PROCESS_ATTACH ){
8 hDll = LoadLibrary( "libmySQL.dll" );
9 if( hDll == NULL ) return 0;
10 }else if( fdwReason == DLL_PROCESS_DETACH ){
11 if( hDll != NULL ) FreeLibrary( hDll );
12 }
13 return 1;
14 }
15

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26