Peter and Ted,
Thanks for your input!
I do have a DLL version of the iconnect.lib along with the .lib file to link it with - this was provided by the vendor. I can compile and link using VC++ 8.0 when I use the DLL .lib file but when I run the app I get that 2 other DLL can not be found these are: msvcr70d.dll and MSVCP70.dll.
I downloaded these DLL from the internet placed then in the app folder and I now get this error:
Unhandled exception at 0x7c812a5b in Simple_cpp.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012f0e4..
This is the code for the main function:
int main(int argc, char** argv)
{
// Sample class for session handling,
// implements callbacks from iCallback
CSample sample;
// Process command line options
CSampleCommands cmds;
if (! cmds.processCommand(argc, argv) )
{
printf( "Usage: %s [-h host:port] [-u username:passwd] [-l loglvl] [-c request:param:...]\n", argv[0] );
while (getchar() != '\n');
return 1;
}
// Create a new session
// add sample as callback to handle received events and messages for the session
iCSession* pSession = &iCSessionMngr::getMngr()->createSession(cmds.getUsername(), cmds.getPassword(), cmds.getHost(), cmds.getPort),&sample );
return 0;
}
-Agustin
|