[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mysql-plusplus
Subject:    RE: VC++, MFC and MySQL++
From:       "Le, Paul" <ple02 () sprintspectrum ! com>
Date:       2001-06-20 20:21:33
[Download RAW message or body]

You must include the mysql header files in you program. Include the header
file in your program header files. For example.

foo.cpp

#include "foo.hpp"

void main()
{
 ...
}


foo.hpp

#ifndef FOO_HPP
#define FOO_HPP

#include "sqlplus.hh"
#include "more header file from mysql++"


class myclass 
{
   ....
}

#endif // FOO_HPP


I hope this will work for you.


Paul

-----Original Message-----
From: Oscar Herrera [mailto:oahs7000@neutel.com.co]
Sent: Wednesday, June 20, 2001 3:12 PM
To: plusplus@lists.mysql.com
Subject: VC++, MFC and MySQL++


Hi,

during this days i'm working on a project on Visual C++, i'm using MFC
(Microsoft Fundation Classes), the problem i'm having is that when i try to
compile there is one error saying:

#error: WINDOWS.H already included. MFC apps must not #include <windows.h>,

I'm not including it on my code, anyway it is included in sqlplus.hh header
file, so, i tried deleting those lines but then appeared like 130 errors.

I've been trying make it work including different headers and excluding some
others, but it seems nothing to do.

Does anyone know how to use VC++, MFC and MySQL API???

Thanks in advance,

Oscar Gilberto Herrera Sánchez

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic