How can I return a string in a Purebasic dll as a pchar value to Delphi?
Any suggestions are welcome.
Purebasic dll return string as pchar to Delphi application
-
- User
- Posts: 56
- Joined: Tue May 16, 2006 3:52 pm
-
- User
- Posts: 45
- Joined: Mon Mar 27, 2006 5:44 am
From what I read online pchar is basically a pointer to a bit of memory allocated for string use. Try adding an @ in front of the variable when you pass it to your procedure and see if it works.
Code: Select all
procedure.. ( param1, @string.s )