Home > Archive > Clarion > August 2006 > garbled data from Delphi DLL
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
garbled data from Delphi DLL
|
|
| alienatewd@hotmail.com 2006-08-10, 3:55 am |
| Hi there!
I am experimenting with Delphi Dll's in Clarion...
I have created the Dll and successfully linked it with my Clarion App,
but when I call a function with a String return, it returns the string
garbled...
All I get back is a couple of weird ASCII characters.
Is there any reason this might happen?
The return type of my Delphi Function is PChar and I defined it in
Clarion as *CString with RAW.
Please let me know if I should supply more info.
Thanx in advance!
Willie.
| |
| ChaosKCW 2006-08-14, 6:55 pm |
| If your using a newer delphi your strings are more than likly in
UNICODE.
Make sure you convert them to ASCII before returning them from your
function. Check your delpi help file ot has a lot on the subject.
alienatewd@hotmail.com wrote:
> Hi there!
>
> I am experimenting with Delphi Dll's in Clarion...
> I have created the Dll and successfully linked it with my Clarion App,
> but when I call a function with a String return, it returns the string
> garbled...
>
> All I get back is a couple of weird ASCII characters.
>
> Is there any reason this might happen?
>
> The return type of my Delphi Function is PChar and I defined it in
> Clarion as *CString with RAW.
>
> Please let me know if I should supply more info.
>
> Thanx in advance!
> Willie.
|
|
|
|
|