Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help using ADO Components

Status
Not open for further replies.

BuilderSpec

Programmer
Dec 24, 2003
383
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top