Re: Testing Delphi DLL crashes VB6 IDE
- From: "Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 15 Oct 2008 08:33:14 +0200
"Bruce M. Axtens" <bruce.axtens@xxxxxxxxx> wrote in message
news:gd3qtj$j5u$1@xxxxxxxxxxxxxxxxxxxxxxx
Rob Kennedy wrote:
You've taken a WideString and told the compiler that it's really a
pointer to a WideString. You're lying to the compiler. It doesn't
care, but the caller of this function probably does.
I stand corrected. And apologies to you, as you sound a little annoyed
with my naivete.
I don't think you should read that into it. If he were, you'd know.
'Lying to the compiler' is just a figure of speech - although, compilers
being involved, there is a case for taking things litterally. The
compiler always does. But generally, 'lying to the compiler' is just
a way to say that you did a typecast... and were wrong. Had you been
right, that would have been perfectly fine. Typecasts are a way of
telling the compiler that you know better than it, and that really is
possible. Just remember not to make mistakes.
And what you have said works a treat.
Of course it does. This is Rob. He's one of those always-right types.
(It comes from only speaking when he knows what he's saying. Oh, and
being very, very good at stuff he speaks about.)
Groetjes,
Maarten Wiltink
.
- 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
- Testing Delphi DLL crashes VB6 IDE
- Prev by Date: Re: Testing Delphi DLL crashes VB6 IDE
- Next by Date: Re: Testing Delphi DLL crashes VB6 IDE
- Previous by thread: Re: Testing Delphi DLL crashes VB6 IDE
- Next by thread: Newbie questions about Delphi...
- Index(es):
Relevant Pages
|