AnsweredAssumed Answered

vrf Fw: vrf Passing char *value to a DLL

Question asked by VRFuser on Jan 24, 2008
FYI VEE 8.0 does this as well, which has helped me with a recent project.

Reiner

-----Original Message-----
From: David Watling [mailto:watling@IceraSemi.com]
Sent: Thursday, January 24, 2008 5:19 AM
To: VRF
Subject: RE: [vrf] Fw: vrf Passing char *value to a DLL

Yes there is!
You must upgrade to Vee 8.5
It seems that the badgering finally got through.
Otherwise, you have limited options:
* Write a wrapper dll
* If the number of bytes being passed to the dll adds up to an even number, then you can use Vee 7.5 or lower, and play around with the header file to make it fit.
* Any other ideas?

Regards

David Watling


-----Original Message-----
From: Kjeld Alexander [mailto:k.alexander@get2net.dk]
Sent: 24 January 2008 10:09
To: VRF
Subject: [vrf] Fw: vrf Passing char *value to a DLL

Is there a solution to this problem 6 years later ?
I do not have the source code for the dll I try to use!

Best Regards

Kjeld Alexander
----- Original Message -----
From: "Shawn Fessenden" <s_fessenden@hotmail.com>
To: <philmcrevis@hotmail.com>; <vrf@lvld.agilent.com>
Sent: Thursday, May 02, 2002 8:44 PM
Subject: Re: vrf Passing char *value to a DLL


> Hi Phil.
>
>
>>DLLEXPORT int bfEncrypt(char *Data, const int DataLength, char *Key,
int
>>KeySize)
>
> Ok, no prob there.
>
>>From VEE I pass some simple text to *Data (i.e. "Phil") and no
problem.
>>However, VEE complains about the size 16 text array that I attemt to
pass
>>to *Key.  The exact response from VEE is:
>
> Ahhh.. size 16 text *array*. There's the problem. A text scalar is a C

> type char *, but a text array is C type char **. IOW in C you get a
> pointer to an array of pointers to your strings.
>
> Change the def to: ... char **Key, int KeySize)
>
> and iterate the array in C like so:
>
> int  i;
> char *pString;
>
> for(i = 0; i < KeySize; i++) {
>  pString = Key[i];
>  /* pString is now a pointer to the ith string passed from VEE */
> }
>
> -SHAWN-
>
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
> ---------------------------------------------------------------------
> This is the "vrf" maillist, managed by Majordomo.  To send messages to
> this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions
and
> unsubscriptions are done through the address
> "vrf-request@lvld.agilent.com".
> If you need details, just send a message containing the text "help"
> to "vrf-request@lvld.agilent.com".
> ---------------------------------------------------------------------




---
You are currently subscribed to vrf as: watling@icerasemi.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".


--
****************************************************************************
**************
This e-mail (including any attachments) is intended only for the
recipient(s)
named above. It may contain confidential or privileged information and
should
not be read, copied or otherwise used by any other person. If you are not a
named recipient, please contact the sender by telephone (+44-1454-284800)
and destroy the original message.
Any statement and/or opinion not related to this company's business and
expressed in this message is that of the author and does not necessarily
reflect those of Icera. This company does not take any responsibility
for the views of the author in any matter not related to the
company's objective.
****************************************************************************
**************


---
You are currently subscribed to vrf as: reiner.schlieker@siemens.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".


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