AnsweredAssumed Answered

vrf DLL problem

Question asked by ChrisPotter on Jul 28, 2004


Dear Barrie,

Having been at the same task this week, I suspect the following (but send me
the header file if I've guessed wrongly...)

1) Name-mangling - put the following around your exported function names in
the header you use to compile it with:

extern "C" {

....

}

2) some types aren't understood by VEE although they are valid C, so you
might need to alter your function headers (8-bit integer types are a problem
I think, I stick to int and double these days)

3) calling conventions - STDCALL, CDECL and all that - is VEE assuming the
wrong one?


best regards,

Chris Potter
-----------------------------------------------
Aphena Ltd.,
10, Teversham Road, Fulbourn,
Cambridge, U.K. CB1 5EB
Tel +44 1223 700499   Fax +44 870 7061487
Mobile +44 7946 354276
http://www.aphena.com
http://www.softplot.com

** Aphena is the new company brand name for software previously sold by P&H
Technology Consultants
-----------------------------------------------


-----Original Message-----
From: Barrie Walden [mailto:bwalden@whoi.edu]
Sent: 29 July 2004 02:15 PM
To: VRF
Subject: [vrf] DLL problem


Hi Folks,

Having given up on my "is program running" problem I have moved right
along to another difficulity. I have a simple DLL written in C++ and I
wish to use the function it contains from within Vee.  The DLL's library
and definition file load properly in C++ and the function works
correctly.  The library also appears to load corrctly in Vee and the
function is listed under the Program Explorer's Compiled Functions (with
a yellow f(x) icon).  Clicking on the icon brings up the expected "what
do you want to do" box and I can generate a "call" or a "formula call".
However, when I run the program I get an error message stating "Function
is not loadable" (error 604).  What have I missed?

Barrie
whoi


---
You are currently subscribed to vrf as: chris.potter@aphena.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".


---
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