Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Passing Strings from MFC DLL to DBPro

Author
Message
Ninja
21
Years of Service
User Offline
Joined: 15th Oct 2002
Location:
Posted: 22nd Oct 2002 04:40
I am having a hard time figuring out how to pass a string from a MFC DLL written in C++ to DBPro... And solutions out there?

Thanks,
Joe
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 22nd Oct 2002 11:25
I think (I need to try it properly), you can do a :

char *test(void)
{

}

and

Yes, I really am THAT good...
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 22nd Oct 2002 11:26
that'll return the character string back.

A better way would be to return it into a memory location (which is passed into it) :

int test(char *addr)
{
strcpy(test,"...");
return (1);
}

Yes, I really am THAT good...

Login to post a reply

Server time is: 2024-04-26 11:25:31
Your offset time is: 2024-04-26 11:25:31