Hi !!

> -----Original Message-----
> From: Christopher Thompson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 09, 2002 1:39 PM
> To: Guy-Maurice Lepoutre; [EMAIL PROTECTED]
> Subject: Re: Creating a mysql database usinc VC++
>
>
> On Tuesday 09 April 2002 2:30 pm, Guy-Maurice Lepoutre wrote:
> > Hello,
> >
> > I wondered if there is a way to create a mysql
> > database using Visual C++ 6.0. I don't want the
> > database to be registered, I want the program to
> > create the database for me.
>
> Certainly.  If by no other way, execute a batch file to do this.
>
> You cannot, afaik, do this using ODBC.  That's a limitation of ODBC.
>
You only have three options, which uses ODBC internally.

1. Making use of direct VC Database project:

Just create a VC project called 'Database project' (under
new -> projects), upon entering the project name, it displays
the ODBC DSN dialog, and you can continue from their by
extending the code.

2. Making use of MFC ODBC (Direct) Classes:

Another option is, write your own code using MFC ODBC classes.
For more information, refer to MSDN under 'CDatabase' class, which
directs you in the right path.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/htm
l/_mfc_cdatabase.asp


3. Making use of MFC DAO(CDAO*) classes.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/htm
l/_mfc_cdaoworkspace.asp

Hope this helps you.

Regards, Venu
--
For technical support contracts, go to https://order.mysql.com
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /   Mr. Venu <[EMAIL PROTECTED]>
 / /|_/ / // /\ \/ /_/ / /__  MySQL AB, Developer
/_/  /_/\_, /___/\___\_\___/  California, USA
       <___/  www.mysql.com




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to