SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Call arguments, string is always by ref.

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Call arguments, string is always by ref.
Author Message
Drew Hurst



Joined: 28 Sep 2000
Posts: 1

Post Call arguments, string is always by ref. Reply with quote

Why are the string and double parameters always by ref when using the call function to access DLLs? The DLLs I need to access want these by val.

Thu Sep 28, 2000 5:39 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6499

Post Re: Call arguments, string is always by ref. Reply with quote

The CALL statement supports only parameters that allocate 4 or less bytes in the stack. This is bound by the supported stack size and the memory management mechanism inside 24x7.

Note that strings can have virtually unlimited size and doubles take 8 bytes, where pointers (by ref) take just 4 bytes each. If you are dealing with VB based code note that VB "by value" is realy a pointer and not a value itself.

: Why are the string and double parameters always by ref when using the call
: function to access DLLs? The DLLs I need to access want these by val.

Thu Sep 28, 2000 5:56 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
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, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.