2 Sep 09:08
problems getting inpout32.dll working with qt3 for windows
Hello, All,
This is somewhat off topic, but not really as I am trying to make an
external program to control my SM5BSZ WSE boxes in windows XP64. They
are nicely controlled via Linrad running under Windows XP64, but I am
having trouble compiling and linking the windows version of QT3 to get
my separate controller running.
QT3-designer compiles and runs, and my wsecontrol application compiles
fine until I try to add the inpout32.dll to it. When I add the lines:
HINSTANCE h_inpout;
h_inpout = LoadLibrary("C:\inpout32\Win32\npout32.dll");
to my progam without adding an #include <windows.h> I of course get an
error message on 'make' that LoadLibrary is undeclared.
When I added an #include <windows.h> I got for several hours today when
running 'make' or 'mingw32-make' an error that
char* could not be converted to WCHAR* in HINSTANCE. I am not able to
take care of this by using an intermediate variable, nor by attempting
a static_cast or dynamic_cast.
I played with the code by temporarily adding #install "windef.h" from
linrad-02.37, and then began getting on 'make' and 'mingw32-make' reams
of errors of the type:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/wincon.h:64:
error: `WCHAR' does not name a type
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/wincon.h:65:
(Continue reading)
RSS Feed