Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 1999-01-26
2
Medium Priority
?
1,056 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 180 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

618 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