c++ - How to use a MFC dll in a Qt application -


i creating qt application , need use mfc dll in it! (i using vs2008)

the qt application project properties are: configuration type: application use standard windows libraries

this way, when try use mfc dll (during build):

fatal error c1189: #error : building mfc application /md[d] (crt dll version) requires mfc shared dll version. please #define _afxdll or not use /md[d]

if change mfc property use mfc in shared dll application builds, when try run it, get

unhandled exception @ 0x78a5b48a (mfc90ud.dll) in myapplication.exe: 0xc0000005: access violation reading location 0x00000000.

any ideas anyone?

thanks!

i guess problem qt-dll built version of c++ runtime libraries mfc-dll. using 2 dlls different runtimes causes crash when start program.

i don't know if can rebuild qt sources, guess how solve this. need mfc library? perhaps there's way want.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -