Message 1 of 3
Function result PChar in Delphi. Empty string.

Not applicable
11-25-1999
04:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I'm currently writing a DLL using Delphi 5.
When I try to return an empty string as a function result, Result :=
PChar(''), the
result in VBA is not an empty string, but a string with length 4096
containing rubbish.
I'm using the PChar type for all string parameters and function types that
have
anythin to do with strings.
Can anyone help?
Thanks in advance.
Guido Rooms.
I'm currently writing a DLL using Delphi 5.
When I try to return an empty string as a function result, Result :=
PChar(''), the
result in VBA is not an empty string, but a string with length 4096
containing rubbish.
I'm using the PChar type for all string parameters and function types that
have
anythin to do with strings.
Can anyone help?
Thanks in advance.
Guido Rooms.