My Name is Thomas, I'm 47 years old, live in Germany next to Hamburg and have a problem with the inpoutx64.
I used the inpout32.dll until today.
I've modified the code of inpouttest a little bit. Used it for my CNC milling machine to control the spindle.
It worked very well under windows XP 32bit.
Now I have a new PC with Windows 7 professional 64-Bit.
I have modified the code to load now the "inpoutx64.dll".
At first I placed the inpoutx64.dll (I think an older one with around 54kB) in the system32 folder.
Windows told me that this dll is not made for windows, or has an bug.
In further trying for a few hours (with the newer one of the file, around 96 kB) I have the following state:
inpoutx64.dll is placed in
\windows\system32
\windows\sysWOW64
direkt in the root folder, where I've also placed my WxDEV Projekt.
Fore test purposes I've also placed the 32-Bit one at these folders.
If I load the inpout32.dll in the code, the ,exe will load it and I get an Windows Error - so far so good.
If I do it with the inpoutx64.dll, the programm always tells me, that it is not able to load the dll.
It seems the handle always contains NULL.
It doesn't matter if I try to load from the system folders
Code: Select all
INPOUTx64_DLL_Handle=LoadLibrary("inpoutx64.dll");
if(INPOUTx64_DLL_Handle == NULL)
{
printf("LoadLibrary failed for inpoutx64.dll...\n\n");
system("PAUSE");
return -1;
}
Code: Select all
INPOUTx64_DLL_Handle=LoadLibrary("c:/inpoutx64.dll");
if(INPOUTx64_DLL_Handle == NULL)
{
printf("LoadLibrary failed for inpoutx64.dll...\n\n");
system("PAUSE");
return -1;
}
Best regards
Thomas