Re: Wos goin on ere den?
- From: "Mike Williams" <mike@xxxxxxxxxxxxxxxxx>
- Date: Mon, 12 Mar 2007 12:17:00 -0000
"J French" <erewhon@xxxxxxxxxx> wrote in message
news:45f53854.4169309@xxxxxxxxxxxxxxxxxxxxxxx
On Mon, 12 Mar 2007 10:51:11 -0000, "Mike Williams"
Careful Mike, a String passed ByVal to an API /can/ be
modified - or did I misunderstand what you said?
Nope. You didn't misunderstand me Jerry. I made a mistake :-)
But using the DT_MODIFYSTRING flag does cause the DrawText API to behave
properly in respect of the issues mentioned, so you need to do it anyway,
and contrary to the help files it does not seem to actually modify the
string to the same as the displayed one with the ellipses (although it would
probably be best to play it safe on that one and pass it a string that
doesn't mind being modified). By the way, I do of course know about the
standard byVal behaviour for ordinary VB Subs and Functions, but I never
quite got the hang of the byVal behaviour for API functions. Something to do
with the string being converted to and from unicode on the way in and the
way out, I believe. Any chance you can run through it for me?
Mike
.
- Follow-Ups:
- Re: Wos goin on ere den?
- From: J French
- Re: Wos goin on ere den?
- References:
- Wos goin on ere den?
- From: Ivar
- Re: Wos goin on ere den?
- From: Mike Williams
- Re: Wos goin on ere den?
- From: J French
- Wos goin on ere den?
- Prev by Date: Re: Wos goin on ere den?
- Next by Date: Re: real time parallel port input
- Previous by thread: Re: Wos goin on ere den?
- Next by thread: Re: Wos goin on ere den?
- Index(es):
Relevant Pages
|