AnsweredAssumed Answered

vrf Programmig datalogger Agilent 34970A

Question asked by VRFuser on Feb 1, 2008
This may be a calling convention issue.  If you put __stdacll in you Vee header file, Vee will do the right thing as regards function name decorations, so your header file would have a line like 'long __stdcall funcName(long arg1, long arg2, long arg3)'.  You can tell if a function has been exported with the stdcall convention if the function name is followed by a string that looks like '@12' when running dumpbin.  The '@12' tells you that the function has arguments taking 12 bytes of stack space.

Here's a link to a paper that may help:

http://www.sonic.net/~doomer/WhitePapers/forward/forward.html#calling_conventions


-----Original Message-----
From: Shawn Fessenden [mailto:shawn@vrfarchive.com]
Sent: Thursday, January 31, 2008 6:52 PM
To: PDL-LISTS,VRF (A-Lists,unix1)
Subject: RE: [vrf] DLL runtime error

> Function was not loadable: startupXgd

The issue is the function is not called startupXgd. It will of course depend on exactly what the project settings are in VS for this dll, but my first guess would be "_startupXgd@0".

To prevent guessing, run dumpbin /exports <dllname>. If you don't have ready access to dumpbin, you can use Depends and look for the function name.
ftp://ftp.vrfarchive.com/pub/Depends.zip

Using "extern C" isn't good enough, as _stdcall function names are always decorated. The easy way to generate absolute names for export is to use a .def file with an EXPORTS section.
-SHAWN-


---
You are currently subscribed to vrf as: ming_meng@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
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".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".

Outcomes