Nicholas,
Here is the requested information - hopefully you can help me out --
Thanks!
=================
// SimpleDLL.cpp : Defines the entry point for the DLL application.
int retstatus;
InfStruct myInfo;
char string[50];
/*----------------------------------------------------------------------
-------------*/
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
// Initialize once for each new process.
// Return FALSE to fail DLL load.
MessageBox(NULL,"SimpleDLL: DLL_PROCESS_ATTACH","SIMPLE DLL",MB_OK);
break;
...
case DLL_PROCESS_DETACH:
MessageBox(NULL,"SimpleDLL: DLL_PROCESS_DETACH","SIMPLE DLL",MB_OK);
break;
}
return TRUE;
}
/*--------------------------------------------------------------------*/
// This is an example of another exported function.
SIMPLEDLL_API char* fnstrSimpleDLL(void)
{
getname(&myInfo);
return string;
}
/*----------------------------------------------------------------------
-----------------*/
SIMPLEDLL_API char* getname(InfStruct* A_info)
{
retstatus = Read_Value_To_String(A_info->recordID, ATTRIB_NAME,
sizeof(string),string);
return string;
}
/*----------------------------------------------------------------------
-----------------*/
************************************************************************
*
//HEADER FILE:
#ifdef SIMPLEDLL_EXPORTS
#define SIMPLEDLL_API __declspec(dllexport)
#else
#define SIMPLEDLL_API __declspec(dllimport)
#endif
...
SIMPLEDLL_API int fnSimpleDLL(void); // Exported function
SIMPLEDLL_API char* fnstrSimpleDLL(void);
SIMPLEDLL_API char* getname(InfStruct* A_info);
*** Sent via Devdex
http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!