AnsweredAssumed Answered

vrf VEE with .dll's

Question asked by reiner.schlieker on Oct 6, 2003
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><META content="MSHTML 5.50.4916.2300" name=GENERATOR></HEAD><BODY bgColor=#ffffff><DIV><SPAN class=572532619-06102003><FONT face=Arial color=#0000ff size=2>Hello all,</FONT></SPAN></DIV><DIV><SPAN class=572532619-06102003><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV><DIV><SPAN class=572532619-06102003><FONT face=Arial color=#0000ff size=2>I'm just delving into using a custom .dll with VEE (for the first time).  The .dll was created as a wrapper to another .dll, for myself, by somebody else here that is actually an expert at C programming (unlike myself).  The problem is, the data returned from the .dll is an array of bytes, which are then interpreted as an Int16, Int32, or text, depending on what is being read (prior knowledge of the data type being read is required).  C returns this data as char*.  This works UNTIL I want to read e.g. an Int16 and the value is 0.  The .dll then returns nulls, which VEE truncates and returns as an empty string.  Is there a way around this problem, without resorting to returning larger int types and breaking them down into bytes?</FONT></SPAN></DIV><DIV><SPAN class=572532619-06102003><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV><DIV><SPAN class=572532619-06102003><FONT face=Arial color=#0000ff size=2>Any help would be appreciated.</FONT></SPAN></DIV><DIV><SPAN class=572532619-06102003><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV><DIV><SPAN class=572532619-06102003><FONT face=Arial color=#0000ff size=2>Thanks,</FONT></SPAN></DIV><DIV><SPAN class=572532619-06102003></SPAN><SPAN class=572532619-06102003><FONT face=Arial color=#0000ff size=2><FONT face=Arial size=2>_____________________________________</FONT> <BR><B><FONT face=Arial size=2>Reiner Schlieker</FONT></B> <BR><FONT face=Arial size=2>Test Equipment Designer</FONT> <BR><FONT face=Arial size=2>Siemens Milltronics Process Instruments Inc.</FONT> <BR><FONT face=Arial size=2>Phone: (705) 740-7553</FONT> <BR><FONT face=Arial size=2>Fax:     (705) 740-7692</FONT> <BR><FONT face=Arial size=2>Email:  reiner.schlieker@siemens.com</FONT> <BR><FONT face=Arial size=2>Web:    www.siemens-milltronics.com</FONT> </DIV></FONT></SPAN>---<BR>You are currently subscribed to vrf as: rsb@soco.agilent.com<BR>To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com".  <BR>If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".</BODY></HTML>  

Outcomes