Visual Studio 6.0 C++에서 MySql++ 연동
페이지 정보
본문
----------------------
테스트 환경
----------------------
Visual C++ 6.0
mysql 3.23.58
----------------------
mysql ++
http://tangentsoft.net/mysql++/
http://tangentsoft.net/mysql++/doc/
mysql ++ 메뉴얼
http://tangentsoft.net/mysql++/doc/userman/html/
mysql ++ 레퍼런스
http://tangentsoft.net/mysql++/doc/refman/html/
Visual C++ 사용자는 Old Versions 아래에 있는 mysql++-1.7.1-win32-vc++.zip 을 받는다.
압축을 푼다 디렉토리 이름을 mysqlpp 라고 정해준다.
비주얼스튜디오 C++ 에서
1. Tool -> Option -> Directory 에서 추가시킨다
[Show directories for] : Include files
c:/mysqlpp/include
c:/mysqlpp/mysql/include
[Show directories for] : Libary files
c:/mysqlpp/lib/
c:/mysqlpp/mysql/lib/
2. Project -> Setting -> Link
object/library module 안에
libmysql.lib --> Mysql 위하여
ws2_32.lib --> Winsock2 을 위하여..
3. 소스에서 ..
#include <winsock2.h>
#include <mysql++>
여기서 winsock2.h 가 mysql.h 보다 먼저 와 있어야 한다.
되도록이면 <mysql++> 아래에 놓는다.
테스트 환경
----------------------
Visual C++ 6.0
mysql 3.23.58
----------------------
mysql ++
http://tangentsoft.net/mysql++/
http://tangentsoft.net/mysql++/doc/
mysql ++ 메뉴얼
http://tangentsoft.net/mysql++/doc/userman/html/
mysql ++ 레퍼런스
http://tangentsoft.net/mysql++/doc/refman/html/
Visual C++ 사용자는 Old Versions 아래에 있는 mysql++-1.7.1-win32-vc++.zip 을 받는다.
압축을 푼다 디렉토리 이름을 mysqlpp 라고 정해준다.
비주얼스튜디오 C++ 에서
1. Tool -> Option -> Directory 에서 추가시킨다
[Show directories for] : Include files
c:/mysqlpp/include
c:/mysqlpp/mysql/include
[Show directories for] : Libary files
c:/mysqlpp/lib/
c:/mysqlpp/mysql/lib/
2. Project -> Setting -> Link
object/library module 안에
libmysql.lib --> Mysql 위하여
ws2_32.lib --> Winsock2 을 위하여..
3. 소스에서 ..
#include <winsock2.h>
#include <mysql++>
여기서 winsock2.h 가 mysql.h 보다 먼저 와 있어야 한다.
되도록이면 <mysql++> 아래에 놓는다.
댓글목록
등록된 댓글이 없습니다.