|
-
September 29th, 2003, 12:31 AM
#1
OCX return a string value to VB
hi
I have a VC++ 6.0 OCX which is used by a VB 6.0 program.
I need to send a string as a argument and have the OCX change
the string's value, how can I do that?
The function looks something like this :
void MyClass::changeStringValue(String_Pointer str1, String_Pointer str2)
{
char *c = "anything 2";
*str1 = "anything";
strcpy(str2, c...
memcpy(str2, c....
//neither copy function worked
}
This method worked for double and long values, it won't work
for strings(i don't know how to declare a String_Pointer in OCX
functions that are visible to VB)
thanks
awni
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|