All the exe's use the dll.
All exe's build fine, except one.
When I build it; I'm told that the dll has an invalid machine type.

Just "Import mydll.dll/endimport" will trigger the error. Including one or 20 definitions in the import block doesn't matter -- always gets the "Invalid machine type".
I have rebooted, moved the project (one post said it was a rights issue), created another admin user (I am admin on my machine) -- still happens.
Is there any way to figure out why this one exe doesn't like the dll?
The dll works fine: I have this code (to easily switch back and forth):
Code: Select all
CompilerIf #False
Import "InstTK.dll"
GetMSSQLServers(nIndex = -1)
EndImport
CompilerElse
Prototype ptGetMSSQLServers(nIndex=-1)
hDLL = OpenLibrary(#PB_Any,"Insttk.dll")
Global GetMSSQLServers.ptGetMSSQLServers = GetFunction(hDLL,"GetMSSQLServers")
CompilerEndIf
Even if I comment out the call to the dll function, and include no functions, ie:
Code: Select all
Import "InstTK.dll"
EndImport