/* dll32.c */
#include <windows.h>
static HINSTANCE hInstDLL = NULL;  // instance handle of DLL

///////////////////////////////////////////////////////////////////////////////
//    FUNCTION: DLLMain()
//
//    Purpose
//    Do initilization processesing
//
//    Return Value
//    TRUE - DLL successfully loads and LoadLibrary will succeed.
//    FALSE - will cause an Exchange error message saying it cannot locate
//            the extension DLL.
//
//    Comments
//    We only need to get a copy of the DLL's HINSTANCE
//
BOOL WINAPI DllMain(HINSTANCE  hinstDLL,  DWORD  fdwReason, LPVOID  lpvReserved){
	if (DLL_PROCESS_ATTACH == fdwReason)
		hInstDLL = hinstDLL;
	return TRUE;
}
_declspec(dllexport) int dllmsg(HWND hwnd, char *msg){
	return MessageBox(hwnd, msg, "DllTest", MB_OK);
}


