BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SICL

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
Tomasz Rygulski
Guest





PostPosted: Tue Dec 30, 2003 9:43 am    Post subject: SICL Reply with quote



Hi,

From a moth I've been writing a program (under Delphi 5.0) which could
operate Agilent Analyzer. I use sicl32.dll and vbsicl32.dll and I've
got i big problem. I can drive the device but I can't read from it!
Maybe has someone got the SICL32.PAS?

I've written down the summary of my problem:

Here You are a sample of declaration in Visual Basic that i've read in
the programmer's manual (also in sicl32.bas library):

Declare Function vb_iwrite Lib "vbsicl32.dll" (ByVal which As Integer,
ByVal id As Integer, ByVal buf As Variant, ByVal datalen As Long,
ByVal endi As Integer, actual As Long) As Integer

Declare Function vb_iread Lib "vbsicl32.dll" (ByVal which As Integer,
ByVal id As Integer, buf As Variant, ByVal bufsize As Long, reason As
Integer, actual As Long) As Integer

My declaration under Delphi:

function vb_iread(which: Smallint; id: Smallint; var buf: OLEVariant;
bufsize: Integer; reason: Smallint; var actual: Integer): SmallInt;
stdcall; external 'vbsicl32.dll';

function vb_iwrite(which: Smallint; id: Smallint; buf: OLEVariant;
datalen: Integer; endi: Smallint; var actual: Integer): SmallInt;
stdcall; external 'vbsicl32.dll';

Conclusion:

vb_iread - works well
vb_iwrite - returns invalid type parameter. I think that the type of
"buf" is wrong.

Help me, please :)

Best regards
Tomasz Rygulski
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.