PDA

View Full Version : QT + MFC ( integration is possible ? )



andre_teprom
31st August 2011, 04:53
Dear friends,


I wish use some souce files, wich uses MFC library functions.
http://read.pudn.com/downloads92/ebook/357296/test/CaptureVideo.cpp__.htm
http://read.pudn.com/downloads92/ebook/357296/test/CaptureVideo.h__.htm

However, I know that MFC was created as an adaptation of the Win32 library to use in Microsoft Visual Studio.
The problem is I´m using QT.

Does it is possible link, and compile above files in my QT project ?


+++

wysota
31st August 2011, 08:56
The links you provided don't work. Yes, it's possible to use MFC and Qt code together however probably not any code.

Edit: I finally managed to access the links. I think the best solution for you is to extract the code from the class and adapt it to your environment effectively getting rid of MFC. There is nothing important that is MFC specific in this code, it's a pure WinAPI code wrapped into a class derived from CWnd (which is the only MFC related thing here).

andre_teprom
1st September 2011, 03:05
Thanks a lot...I will try and post result here.
However, I have one more question :

It makes difference if I compile with MINGW or VS2008 ?
( QTcreator offers to me both options )

+++