BuilderSpec
Programmer
Hi
I am trying to create a command line utility that uses ADODB classes.. i have got the following but a) the linker complains and b) if i link ADORTL.LIB it links ok but crashes when it runs..
has anyone done this before? is this possible ?
Code below so far :
#include <vcl.h>
#include <ADODB.hpp>
#include <stdio.h>
#pragma hdrstop
//---------------------------------------------------------------------------
#pragma argsused
int main(int argc, char* argv[])
{
printf ( "Creating connection...\n");
TADOConnection *Conn = new TADOConnection(Application);
delete Conn;
return 0;
}
Hope this helps!
Regards
BuilderSpec
I am trying to create a command line utility that uses ADODB classes.. i have got the following but a) the linker complains and b) if i link ADORTL.LIB it links ok but crashes when it runs..
has anyone done this before? is this possible ?
Code below so far :
#include <vcl.h>
#include <ADODB.hpp>
#include <stdio.h>
#pragma hdrstop
//---------------------------------------------------------------------------
#pragma argsused
int main(int argc, char* argv[])
{
printf ( "Creating connection...\n");
TADOConnection *Conn = new TADOConnection(Application);
delete Conn;
return 0;
}
Hope this helps!
Regards
BuilderSpec