Results 1 to 3 of 3

Thread: QT + MFC ( integration is possible ? )

  1. #1
    Join Date
    Jul 2011
    Location
    BRAZIL-RIO DE JANEIRO
    Posts
    47
    Thanks
    33
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QT + MFC ( integration is possible ? )

    Dear friends,


    I wish use some souce files, wich uses MFC library functions.
    http://read.pudn.com/downloads92/ebo...ideo.cpp__.htm
    http://read.pudn.com/downloads92/ebo...eVideo.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 ?


    +++

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT + MFC ( integration is possible ? )

    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).
    Last edited by wysota; 31st August 2011 at 09:01.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    andre_teprom (1st September 2011)

  4. #3
    Join Date
    Jul 2011
    Location
    BRAZIL-RIO DE JANEIRO
    Posts
    47
    Thanks
    33
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QT + MFC ( integration is possible ? )

    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 )

    +++

Similar Threads

  1. VS Integration
    By GrahamLabdon in forum Qt Programming
    Replies: 3
    Last Post: 25th March 2010, 09:06
  2. qwt integration with qt
    By sandhyarani in forum Qt Programming
    Replies: 0
    Last Post: 31st July 2009, 09:21
  3. Eclipse Integration sans Integration
    By ChrisW67 in forum Qt Tools
    Replies: 3
    Last Post: 17th March 2009, 08:29
  4. VS.NET integration
    By invictus in forum Installation and Deployment
    Replies: 1
    Last Post: 15th May 2008, 07:49
  5. Qt Integration
    By ToddAtWSU in forum Newbie
    Replies: 4
    Last Post: 23rd January 2006, 18:54

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.