As I mentioned over in the X12 Parser group, here is a C++ example of
how we would call the odbc
Note the testsql is my dsn. A colon seperates the dsn and the name
of the table.
"testsql:mytable"
#include <iostream>
#include <windows.h>
using namespace std;
void main()
{
HINSTANCE hdll=LoadLibrary("DEMOM471.DLL");
if(hdll!=0) {
FARPROC lpfnGetProcessID = GetProcAddress(HMODULE
(hdll),"C1COMMAND5");
typedef LPSTR (__stdcall * pICFUNC)(char *,char *,char *,char *);
pICFUNC C1COMMAND5;
HBDLLSTRING4 = pICFUNC(lpfnGetProcessID);
LPSTR rtnval = C1COMMAND5("PARSE","ODBC","H:\c1\c1d0f472\claims.
837","testsql:mytable",MO");
cout << rtnval << "\n";
FreeLibrary(hdll);
return;
}
else {
printf("Not able to load Dll");
}
}