-
bind MFC Library
Hello,
I want to bind a Library written in MFC into my Qt Project and call its functions like this:
BOOL CALLBACK eventInit(DWORD dwDevice, HANDLE hEvent, LPTHREAD_START_ROUTINE pFunc, UINT msg, ULONG ulMask);
I have lib and dll files, but i have not header files. is there a example to show how can i do it?
and can Qt understand the windows type like DWORD, HANDLE, LPTHREAD_START_ROUTINE etc?
Thanks for your help!
-
Re: bind MFC Library
Qt can't understand those as Qt is a library so it doesn't need to understand them. Your compiler needs to and will understand them.
-
Re: bind MFC Library
so, i need a short code example that shows how it works: Bind a MFC Lib and call it's function.
-
Re: bind MFC Library
MFC is by no means different than any other C/C++ library. Add the library to LIBS, header file paths to INCLUDEPATH and include/call the functions you need.