try this instead
// TESTCOMMANDS.cpp : Defines the entry point for the DLL application.
//
#include "stdafx.h"
#include "globstruct.h"
GlobStruct* g_pGlob = NULL;
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
#define MYCOMMAND __declspec ( dllexport )
MYCOMMAND void ReceiveCoreDataPtr ( LPVOID pCore )
{
// Get Core Data Pointer here
g_pGlob = (GlobStruct*)pCore;
}
MYCOMMAND void TESTP( void )
{
// Use Core PRINT to display output
g_pGlob->PrintStringFunction( "HELLO WORLD", true );
}
the problem is is that you are using the core data pointer, but you have not recieved it
Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2.0ghz, 512mb, GeForce FX 5200 128mb, 200gb, xp pro sp2