AnsweredAssumed Answered

vrf DLL's and header files

Question asked by VRFuser on Jun 3, 2004
Not sure 'bout your DLL, in the past I used INT8 for bool, INT8 or TEXT for
byte, and INT16 for word.

-----Original Message-----
From: Graeme Hilton [mailto:GHilton@slb.com]
Sent: Friday, June 04, 2004 7:40 AM
To: VRF
Subject: [vrf] DLL's and header files

Hi All,

I'm having my first attempt at getting a DLL to work with VEE.

I've got the DLL and a .h file.  I tried to load it straight away with no
editing of the .h file and I got an error (surprise, surprise!).

A fairly representative line from the .h follows:
BOOL C843_FUNC_DECL C843_STE(const int iId, char const  cAxis, double
dOffset);

There is a section at the top which looks like:
#undef FUNC_DECL
#ifdef C843_DLL_EXPORTS
#define C843_FUNC_DECL __declspec(dllexport) WINAPI #else #define
C843_FUNC_DECL __declspec(dllimport) WINAPI #endif

But VEE doesn't seem to like looking at this part, therefore I did a global
search and replace on "C843_FUNC_DECL" and replaced it with
"__declspec(dllimport)".

Next, I know Vee doesn't handle BOOL data-types, but I'm not sure what to
replace it with.  There are also BYTE and WORD data types and again I don't
know what to change them for.

Any assistance is appreciated.

--
Graeme Hilton
Product Engineer

Schlumberger Sensa

---
You are currently subscribed to vrf as: rwarren@amti.net To subscribe send a
blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".


---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes