AzeoTech Posted November 2, 2010 Share Posted November 2, 2010 Right. I meant the prototype you used in extern(). Can you post (zipped up) the .dll? Link to comment Share on other sites More sharing options...
jkupke Posted November 2, 2010 Author Share Posted November 2, 2010 The extern I have is the following: extern("C:\WINDOWS\system32\Orbit_if.dll","short OrbitSetaddr(short, short, string[10], short[1])","setadd", "stdcall") I've attached the .dll orbit_if.zip Link to comment Share on other sites More sharing options...
AzeoTech Posted November 2, 2010 Share Posted November 2, 2010 Alas, that file depends on SIUSBXP.dll, so I can't load it. Link to comment Share on other sites More sharing options...
jkupke Posted November 3, 2010 Author Share Posted November 3, 2010 is that the only other one you needed? dlls.zip Link to comment Share on other sites More sharing options...
AzeoTech Posted November 3, 2010 Share Posted November 3, 2010 Apparently so. OK, this is what I did to try it, all in the command / alert window: extern("C:\daqfactory\Orbit_if.dll","short OrbitSetaddr(short, short, string[10], short[1])","setadd", "stdcall") global s = "abcdefghi" global op = 0 ? setadd(1,1,@s,@op) The last line printed 11, which is presumably an error code from the DLL since I don't have any hardware. But, I was able to successfully call into the DLL without any DAQFactory generated errors. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.