Added @file description to bacnet.h and lib/main.cpp
Fixed a build issue for the linux+MS/TP combination in trendlog.h Setup library build to define BIP_DEBUG if it is a Debug build and if it is a BIP build.
This commit is contained in:
+33
-31
@@ -1,31 +1,33 @@
|
||||
#include "main.h"
|
||||
|
||||
// a sample exported function
|
||||
void SomeFunction(const LPCSTR sometext)
|
||||
{
|
||||
MessageBoxA(0, sometext, "DLL Message", MB_OK | MB_ICONINFORMATION);
|
||||
}
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
{
|
||||
switch (fdwReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
// attach to process
|
||||
// return FALSE to fail DLL load
|
||||
break;
|
||||
|
||||
case DLL_PROCESS_DETACH:
|
||||
// detach from process
|
||||
break;
|
||||
|
||||
case DLL_THREAD_ATTACH:
|
||||
// attach to thread
|
||||
break;
|
||||
|
||||
case DLL_THREAD_DETACH:
|
||||
// detach from thread
|
||||
break;
|
||||
}
|
||||
return TRUE; // succesful
|
||||
}
|
||||
#include "main.h"
|
||||
|
||||
/** @file lib/main.cpp Provides DLLMain for Win32 build of library. */
|
||||
|
||||
// a sample exported function
|
||||
void SomeFunction(const LPCSTR sometext)
|
||||
{
|
||||
MessageBoxA(0, sometext, "DLL Message", MB_OK | MB_ICONINFORMATION);
|
||||
}
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
{
|
||||
switch (fdwReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
// attach to process
|
||||
// return FALSE to fail DLL load
|
||||
break;
|
||||
|
||||
case DLL_PROCESS_DETACH:
|
||||
// detach from process
|
||||
break;
|
||||
|
||||
case DLL_THREAD_ATTACH:
|
||||
// attach to thread
|
||||
break;
|
||||
|
||||
case DLL_THREAD_DETACH:
|
||||
// detach from thread
|
||||
break;
|
||||
}
|
||||
return TRUE; // succesful
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user