memory allocation/dll interface (OpenInsight 32-Bit)
At 13 AUG 2002 02:34:23PM Jeff Warvel wrote:
In our AREV application we have numerous Assembly Language and C routines. Several of these routines would get memory allocated from (AREV) for strings, fill the strings with data, and then return those strings as parameters.
In 32-bit OpenInsight is this possible? I've rewritten several routines as "C++" dll's, but have not found a way to "dynamically" allocate the space for the strings like I could in the "arev world".
At 13 AUG 2002 02:54PM Oystein Reigem wrote:
Jeff,
Is there nothing you can use in Chapter 7: Calling DLL Functions from BASIC+ (Programmer's Reference Help, available from System Editor)?
- Oystein -
At 13 AUG 2002 03:03PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
Jeff
Normally we just set side aside space by assigning the variable to receive the data. For example using the 16 bit OemToAnsi
In=Here's the string" : \00\
Out=' : \00\
Call OeMToAnsi(In,Out)
would retrieve a null OUT but
In=Here's the string" : \00\
Out=In
Call OemToAnsi(In,Out)
would retrieve the result correctly as Out has preallocated space.
World Leaders in all things RevSoft
At 14 AUG 2002 12:18PM Jeff Warvel wrote:
Unfortunatly, that would require you to know ahead of time how much space to allocate. In many cases, we don't know that ahead of time.