I got DLL build by vc6 ,here is the function inside:
#ifndef DLL_API
#define DLL_API extern "C" __declspec(dllimport)
#endif
#define WIN_API __stdcall
....................
DLL_API void WINAPI HTDrawTopPentagon(HDC hDC,int nCenterX,int nCenterY,COLORREF clr);
...................
in QT I want to use these funtions.
will it work if I program a QT project like this:
"
QLibrary myLib("dll_name");
typedef int (MyPrototype)(QPixmap ,int,int,QColor);
MyPrototype myFunction = (MyPrototype) myLib.resolve("HTDrawTopPentagon");
myFunction test;
will test work?
or should i typedef int (*MyPrototype)(HDC ,int,int,COLORREF);in QT?
Bookmarks