Re: Testing Delphi DLL crashes VB6 IDE
- From: "Bruce M. Axtens" <bruce.axtens@xxxxxxxxx>
- Date: Thu, 16 Oct 2008 10:52:27 +0800
Rob Kennedy wrote:
I think my suggestion was to change _all_ the PWideChar types to WideString. That would include the return type of foo. Then the implementation is very simple:Interestingly, this gave me an error (error '0' in the VB6 IDE):
Result := 'My dog''s got fleas';
function foo() : WideString;
begin
result := 'My cat''s on fire';
end;
So I went back to this, which works nicely. But are we now reverting to the "works but actually broken" situation?
function foo() : PWideChar;
begin
result := 'My cat''s on fire';
end;
If it matters, I'm using Turbo Delphi Explorer.
Kind regards,
Bruce.
begin:vcard
fn:Bruce M. Axtens
n:Axtens;Bruce
org:The Protium Project
adr:;;;;;;Australia
email;internet:bruce.axtens@xxxxxxxxx
title:Software Engineer
x-mozilla-html:FALSE
url:http://www.protiumblue.com
version:2.1
end:vcard
- References:
- Testing Delphi DLL crashes VB6 IDE
- From: Bruce M. Axtens
- Re: Testing Delphi DLL crashes VB6 IDE
- From: Rob Kennedy
- Re: Testing Delphi DLL crashes VB6 IDE
- From: Bruce M. Axtens
- Re: Testing Delphi DLL crashes VB6 IDE
- From: Rob Kennedy
- Re: Testing Delphi DLL crashes VB6 IDE
- From: Bruce M. Axtens
- Re: Testing Delphi DLL crashes VB6 IDE
- From: Rob Kennedy
- Testing Delphi DLL crashes VB6 IDE
- Prev by Date: Re: Testing Delphi DLL crashes VB6 IDE
- Next by Date: Re: System.pas error
- Previous by thread: Re: Testing Delphi DLL crashes VB6 IDE
- Next by thread: Re: Testing Delphi DLL crashes VB6 IDE
- Index(es):
Relevant Pages
|