PDA

View Full Version : Compile Qt program on Windows with VC++ 2008 express



qtbnl
22nd January 2011, 03:30
Dear All,

I am newbie of Qt. I installed Qt successfully on Windows XP and Vista computers and recompiled the source code using VC++ 2008 express compiler.

I created a test program in which I tried to use a C++ library from Cypress. The header file CyApi.h uses e.g. UCHAR. I know it is defined in WinDef.h. If I just included this header file, I got other errors, indicating that I need to include more WIN32 headers. I was told that I need to include windows.h that will cover all the definitions related to Windows. However, when I included windows.h in the main file, I got a lot of error saying e.g. UCHAR not defined.

I attached my test program to this post. I appreciated your help in advande.