News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

error: unknown type name 'ULONG' when sql.h is included in "C" app

Started by cwolfe, January 13, 2015, 11:20:11 PM

Previous topic - Next topic

cwolfe

I am reading "Inside ODBC" from Microsoft Press to learn how to perform SQL in my "C" application.  I am writing the first "hello world" ODBC program.  I only added the header file sql.h and compiled and I get several unknown type name errors ULONG, USHORT, PVOID, UCHAR, HWND, DWORD, WORD and BYTE.  As a second test I added, sqlext.h and compiled and I get additional errors.  How do I resolve these errors?

oBFusCATed

By including the proper header.
Read the docs, search the internet or ask in a win32 api support forum.
This one is not such and you're violating the rules of it!
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

cwolfe