PDA

View Full Version : QT & VC++ 8 preprocessor setting



Ngoc
3rd March 2006, 20:40
Hi,
I have QT and MFC files in my project. When the program starts up, it calls AfxWinMain from microsoft winmain.cpp file.
I expect the preprocessor to call APIENTRY WinMain from qtmain_win.cpp file.

My preprocessor include : QT_DLL;_WINDOWS;WIN32;QT_LARGEFILE_SUPPORT;QT_EDIT ION=QT_EDITION_DESKTOP;QT_GUI_LIB;QT_CORE_LIB;QT_T HREAD_SUPPORT

I am wondering what preprocessor definition that I suppose to set in order to call the right main function.
That is the qtmain from QT, not MFC AfxWinMain. Thank you.

Ngoc