Alex Strickland wrote:
Pritpal Bedi wrote:
Is there any equivalent to this feature in C?
This initialse and finalise code may also fill in the picture:
extern "C" __declspec( dllexport ) void MTTraceOpen(HMODULE Module)
{
#ifdef TRACE
char FileName[MAX_PATH];
if (GetModuleFileName(Module, FileName, MAX_PATH) != 0)
{
PathRemoveFileSpec(FileName);
PathAppend(FileName, "mttrace.log");
TraceFile = fopen(FileName, "w");
Trace("MTTraceOpen()");
}
#endif
return;
}
extern "C" __declspec( dllexport ) void MTTraceClose()
{
#ifdef TRACE
if (TraceFile != NULL)
{
fclose(TraceFile);
}
#endif
return;
}
As you see, the startup code is win32 specific.
Regards
Alex
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour