Problems with Meter Off

2 views
Skip to first unread message

Com1 Software

unread,
Jan 13, 2010, 3:00:44 PM1/13/10
to Com1 Software DLL Development
Kevin

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");
}
}

Reply all
Reply to author
Forward
0 new messages