Re: Tiburón and FastCode
- From: "Rudy Velthuis [TeamB]" <newsgroups@xxxxxxxxxxxx>
- Date: Sat, 5 Apr 2008 20:50:20 +0200
Rudy Velthuis [TeamB] wrote:
Dennis wrote:
Hi
Perhaps because in the ol'days "string" was all there was?
OK
I am still shuddering at the thought of modifying all the apps I
have coded with plain ol' string. <sigh>
I am not sure it will to hard. CodeGear has probably done a lot of
work to make the transition to Unicode easy.
What if you simply make a search and replace on string -> AnsiString
- will everything just work as before?
Yes, and no. Also Char, PChar etc. must be replaced.
Oh, and if you cast a string to PAnsiChar instead of PChar, you might
be casting a UnicodeString to AnsiChar, which is hardly what you want:
ShellExecuteA(0, PAnsiChar('myfile.txt'), ...);
Since myfile.txt is probably a string, that might cause problems. So
you should do:
ShellExecute(0, PChar('myfile.txt'), ...);
or:
ShellExecuteA(0, PAnsiChar(AnsiString('myfile.txt')), ...);
Note that I used the -A version of ShellExecute for the PAnsiChar cast.
<g>
--
Rudy Velthuis [TeamB] http://www.teamb.com
"Some cause happiness wherever they go; others, whenever they go."
-- Oscar Wilde (1854-1900)
.
- References:
- Tiburón and FastCode
- From: Lee Grissom
- Re: Tiburón and FastCode
- From: Dennis
- Re: Tiburón and FastCode
- From: Q Correll
- Re: Tiburón and FastCode
- From: Dennis
- Re: Tiburón and FastCode
- From: Rudy Velthuis [TeamB]
- Tiburón and FastCode
- Prev by Date: Re: Tiburón and FastCode
- Next by Date: Re: Tiburón and FastCode
- Previous by thread: Re: Tiburón and FastCode
- Next by thread: Re: Tiburón and FastCode
- Index(es):
Relevant Pages
|