Dear Sir,
Currently, I am working on implementing a DAS1802ST-AD
board (Keithley) in HP VEE 5.0 by using a DLL. The DLL
loads fine into memory but when calling a function during
RunTime I recieve error message 604: "Function was not
loadable". The .h (.hpp) supplied by Keithley is written
for use in C/C++ and Turbo Pascal. So, I converted the .h-
file. I think that's where things go wrong...
Although the .h-files compiles well in HP VEE I am not
certain if my conversion is done properly.
I would like to ask you if you could answer the following
questions/remarks:
Keithley's .h-files (.hpp) and its supplied functions must
be kept in original order:
For instance: Function_a ()
Function_b ()
Function_c ()
is not the same as:
Function_b ()
Function_c ()
Function_a ()
The position of a function determines the function called
not its name!?
The following conversion is OK:
Keithley:
#ifndef WORD
#define WORD unsigned short
#endif
typedef unsigned long DWORD;
#ifndef DASErr
#define DASErr WORD
#endif
DASErr far pascal K_OpenDriver (char far *szDevName,
char far * szCfgName, DWORD far * phDrv);
Johan in HP VEE 5.0:
Int K_OpenDriver (char* *szDevName, char* *szCfgName,
long phDrv);
Thanks a lot for all your help!!
Yours Truly,
Johan Bouwhuis.
--------------------------------------------------------
J.J.Bouwhuis tel.: +31 26 363 01 58
Hanzestraat 200 Email: Johan.Bouwhuis@edu.han.nl
NL-6826 MS ARNHEM
Student at The College of Automotive Engineering
in Arnhem, The Netherlands.
Practical Training:
Texas Instruments Holland BV
Coord.: A.Pouwels (A-Pouwels@ti.nl)
--------------------------------------------------------
Currently, I am working on implementing a DAS1802ST-AD
board (Keithley) in HP VEE 5.0 by using a DLL. The DLL
loads fine into memory but when calling a function during
RunTime I recieve error message 604: "Function was not
loadable". The .h (.hpp) supplied by Keithley is written
for use in C/C++ and Turbo Pascal. So, I converted the .h-
file. I think that's where things go wrong...
Although the .h-files compiles well in HP VEE I am not
certain if my conversion is done properly.
I would like to ask you if you could answer the following
questions/remarks:
Keithley's .h-files (.hpp) and its supplied functions must
be kept in original order:
For instance: Function_a ()
Function_b ()
Function_c ()
is not the same as:
Function_b ()
Function_c ()
Function_a ()
The position of a function determines the function called
not its name!?
The following conversion is OK:
Keithley:
#ifndef WORD
#define WORD unsigned short
#endif
typedef unsigned long DWORD;
#ifndef DASErr
#define DASErr WORD
#endif
DASErr far pascal K_OpenDriver (char far *szDevName,
char far * szCfgName, DWORD far * phDrv);
Johan in HP VEE 5.0:
Int K_OpenDriver (char* *szDevName, char* *szCfgName,
long phDrv);
Thanks a lot for all your help!!
Yours Truly,
Johan Bouwhuis.
--------------------------------------------------------
J.J.Bouwhuis tel.: +31 26 363 01 58
Hanzestraat 200 Email: Johan.Bouwhuis@edu.han.nl
NL-6826 MS ARNHEM
Student at The College of Automotive Engineering
in Arnhem, The Netherlands.
Practical Training:
Texas Instruments Holland BV
Coord.: A.Pouwels (A-Pouwels@ti.nl)
--------------------------------------------------------
Explorer, right clicking and picking quick view. Quick view comes with
Windows, but is not installed in a typical installation so you may have to
install it through add/remove programs. Look at the Export table and see
exactly what the function calls are and see if they match what is in your .h
file. My suspicion, since you are talking about cpp, is that the names may
be mangled. I'm not a Windows 'C' guy, or even a 'C' guy, so I don't know
about all that far pascal stuff. When compiling a cpp dll you must begin
each function definition with "_declspec(dllexport)" and use Extern "C".
Check it out in quick view to see if I'm right.
,,,
(0 0)
---------------(_)--(_)--(_)---------------
Dave Paslay Coin Acceptors
Engineer 300 Hunter
Ave.
Automated Test Systems St. Louis, MO 63124
dpaslay@coinco.com
On Tuesday, March 23, 1999 3:24 AM, Johan Bouwhuis
[SMTP:Johan.Bouwhuis@edu.han.nl] wrote:
> Dear Sir,
>
> Currently, I am working on implementing a DAS1802ST-AD
> board (Keithley) in HP VEE 5.0 by using a DLL. The DLL
> loads fine into memory but when calling a function during
> RunTime I recieve error message 604: "Function was not
> loadable". The .h (.hpp) supplied by Keithley is written
> for use in C/C++ and Turbo Pascal. So, I converted the .h-
> file. I think that's where things go wrong...
> Although the .h-files compiles well in HP VEE I am not
> certain if my conversion is done properly.
> I would like to ask you if you could answer the following
> questions/remarks:
>
> Keithley's .h-files (.hpp) and its supplied functions must
> be kept in original order:
> For instance: Function_a ()
> Function_b ()
> Function_c ()
> is not the same as:
> Function_b ()
> Function_c ()
> Function_a ()
> The position of a function determines the function called
> not its name!?
>
> The following conversion is OK:
>
> Keithley:
> #ifndef WORD
> #define WORD unsigned short
> #endif
>
> typedef unsigned long DWORD;
>
> #ifndef DASErr
> #define DASErr WORD
> #endif
>
> DASErr far pascal K_OpenDriver (char far *szDevName,
> char far * szCfgName, DWORD far * phDrv);
> Johan in HP VEE 5.0:
> Int K_OpenDriver (char* *szDevName, char* *szCfgName,
> long phDrv);
>
> Thanks a lot for all your help!!
>
> Yours Truly,
>
> Johan Bouwhuis.
> --------------------------------------------------------
> J.J.Bouwhuis tel.: +31 26 363 01 58
> Hanzestraat 200 Email: Johan.Bouwhuis@edu.han.nl
> NL-6826 MS ARNHEM
> Student at The College of Automotive Engineering
> in Arnhem, The Netherlands.
>
> Practical Training:
> Texas Instruments Holland BV
> Coord.: A.Pouwels (A-Pouwels@ti.nl)
> --------------------------------------------------------