Solved

VC++ Win32 Console App. with ODBC(Sql.h)etc.

Posted on 1999-01-26
2
1,033 Views
Last Modified: 2008-02-20
Dear Madam/Sir,

I had encountered a problem when I compile the Microsoft Visual C++ 6.0 Win32 Console Application with ODBC (included sql.h and sqlext.h). The problem is there are some syntax errors in the sqltypes.h
The following is operating steps:
1) Run the Visual C++ 6.0 in Microsoft Visual Studio 6.0
2) Select "File", then select "New"
3) Press "Projects"
4) Select "Win32 Console Application"
5) Fill the "Test" in field Project name, and press "OK"
6) Select A "Hello, World!" application
7) Press "Finish", and "OK"
8) Press "FileView", and open the file "Test.cpp"
9) Add the lines as follow:
        #include "sql.h"
        #include "sqlext.h"
10)Select the "Build" in main menu, and build it.

Your will find the problem. Could you help me to overcome it? My email address is csxhuang@yahoo.com
I am looking forward to hearing from you!

Thanks!!!

Xudong Huang
0
Comment
Question by:csxhuang
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 60 total points
ID: 1185233
You need to add

#include <windows.h>

before your #include "sql.h"


0
 

Author Comment

by:csxhuang
ID: 1185234
The answer help me to overcome the problem. I am very thanks for Thui. Dear Thui, Could you give me the email address? Xudong
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
C++ dll will not run on machine without VS installed 10 93
C++ to C# code conversion issue 4 119
C++ help/ Toy problem 19 52
find Speed using GPS latitude & longitude 4 88
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question