| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Returning long strings t |
In a message dated 12-18-98, Mads Orbesen Troest said to All about "Returning long strings to" Hi Mads, MT>The REXX reference states that in order to return - from an MT>extension DLL - data longer than the pre-allocated 256 MT>chars of the default return string, one has to allocate MT>room for it using DosAllocMem. MT>Just to be on the safe side: This /does/ mean that as MT>control is returned to REXX, REXX will, by itself, clean up MT>this allocated memory when required? Yes. REXX notices that the returned area is not the one it supplied and cleans up using the DosFreeMem() API. MT>Can I, by the way, use a standard C memory allocation MT>function rather than calling DosAllocMem explicitly? No, not under any circumstances. You must use DosAllocMem() for your allocation of memory to communicate with REXX. BTW, there is another echo where REXX-related discussions are the specialist topic. ... ;-) Regards Dave ___ * MR/2 2.25 #353 * No Windows, no cry --- Maximus/2 3.01* Origin: DoNoR/2,Woking UK (44-1483-717904) (2:440/4) SEEN-BY: 396/1 632/0 371 633/260 262 267 270 371 635/444 506 728 639/252 SEEN-BY: 670/218 @PATH: 440/4 255/1 251/25 396/1 633/260 635/506 728 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.