Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strings with embedded nulls
Message
From
23/09/1998 03:01:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Strings with embedded nulls
Miscellaneous
Thread ID:
00139717
Message ID:
00139717
Views:
55
Hello All,

Is there anybody that can show me how I can return a string with embedded nulls from C to Visual FoxPro?

I know that I am supposed to use the _RetVal() function, but I never succeeded returning anything worth it.

What's the problem with this code ?

int test( ParamBlk *Parm )
{
TCHAR *Buffer;
TCHAR *StrConst="Hello";
Value val;

val.ev_type = 'C';
val.ev_handle = _AllocHand( sizeof(StrConst) );
Buffer = _HandToPtr( val.ev_handle );
wsprintf( Buffer,StrConst );
_RetVal( val );
_FreeHand( val.ev_handle );
}
Next
Reply
Map
View

Click here to load this message in the networking platform