Hi there - I am getting the following error although my calling conventions on both my exe and my dll is _cdecl. Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
typedef short (CALLBACK* iRDSToBLGType)(char *,char *,bool,char *);
dllHandle = ::LoadLibrary("RDStoBLG.dll");
iRDSToBLGPtr = (iRDSToBLGType)GetProcAddress(dllHandle,"iRDSToBLG");
FILE* lFile = fopen("d:\\generalwork\\blg2\\rdsstring.txt","r+t");
int DLL_DECL _cdecl iRDSToBLG(char *pRetroDate, char *RDSData, bool bIDS, char *OutputData)