Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

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.

The Sprezzatura Group

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.

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/0f29b65c0f57488285256c140066069d.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1