|
So the question is whether or not string literals (or const strings) in Delphi 2009/2010 can be directly cast as PAnsiChar's or do they need an additional cast to AnsiString first for this to work?
The background is that I am calling functions in a legacy...
Started by velumenous on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Things like:
const FRED = 'Frédérick';
I'm pretty sure Delphi 2009/2010 will either issue charset.
|
|
I have to convert a large legacy application to Delphi 2009 which uses strings, AnsiStrings, WideStrings and UTF8 data all over the place and I have a hard time to understand how the new string types work and how they should be used.
The application fully...
Started by DR on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
One pitfall is that the default ....
See Delphi and Unicode , a white paper written by Marco Cantù and I guess The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!) , written by Joel .
|
|
Hello,
I have the following method in C#:
public T Read<T>() { T[] t = new T[1]; int s = Marshal.SizeOf(typeof(T)); if (index + s > size) throw new Exception("Error 101 Celebrity"); GCHandle handle = GCHandle.Alloc(t, GCHandleType.Pinned); Marshal...
Started by John on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Function TReader.Read <T>: T; begin if FIndex + SizeOf (T) > Length (FDataRead) then raise Exception.Create ('Error 101 Celebrity'); Move (FDataRead[FIndex], Result... .
A similar question was asked about Delphi Generics, you may want to take a look .
|
Ask your Facebook Friends
|
I'm slowly converting my existing code into Delphi 2010 and read several of the articles on Embarcaedro web site as well as Marco Cantú whitepaper.
There are still some things I haven't understood, so here are two functions to exemplify my question:
function...
Started by smartins on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
I think....
When you're done, you can encode everything as UTF-8 again .
Decode them into a saner representation first, and then operate on them .
That's almost always a bad idea.
Guessing from your problem description, you seem to process UTF8-encoded strings .
|
|
If you've purchased the Software Assurance, can you please share your experience? Was it worthwhile?
I vaguely remember reading some negative comments about SA maybe 1 or 2 years ago.
Started by Pato Moschcovich on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If you normally upgrade each time a new version of Delphi is... .
I think it makes it worth it for me, as I have less to think about and get the software when it comes out .
I bought SA for D2007, renewed twice, and have had D2009 and D2010 for my troubles .
|
|
JUZA-BabyFace NBA season 2009/2010 Final RELEASE
Thanx to: Soul13, Alzaga, KEN-FLY, Jinling, bodboy52, WebberF1 and special for flam1ngn1nja11 and his team for their AWESOME CF!!!!
THE BEST GAMEPLAY EVER - THANX to JUZA!!!! - Stats in Assosiation: 30+...
Started by BabyFace on
, 50 posts
by 23 people.
Answer Snippets (Read the full thread at nba-live):
: : :!: BabyFace NBA season 2009/2010 with ALL 1st round rookies and much more...
|
|
I've read a few threads about upgrading a Mac Pro with a ATI 6870 card and flashing it. I have a few lingering questions.
1. What current bugs and issues are there with a flashed 6870 on a 2009/2010 Mac Pro (assume 2009 was updated with 2010 EFI). I initially...
Started by Avenger on
, 19 posts
by 7 people.
Answer Snippets (Read the full thread at macrumors):
However....
The top DVI port doesn't work after flashing and in my 2009 Mac Pro, both the Sapphire 6870 and the XFX 6870 Dual Fan cause the PCI-E fan (the fan in the card area, not the fan on the graphics card) to spin at high rpm, making my Mac Pro very noisy .
|
|
Potential Cyclones:
Bom have issued their first watch for the 2009/2010 Australian season
At 3:30 pm CST a developing Tropical Low, 1002 hPa, was located in the Arafura
Sea, near 10.2S 134.0E, about 170 kilometres north northeast of Goulburn Island.
The...
Started by Colin Maitland on
, 15 posts
by 6 people.
Answer Snippets (Read the full thread at australiasevereweather):
The earlier forecast maps had the low staying well north of Darwin - funny how it ended up right on Darwin! Wind gusts have... .
Predicted track map for the tropical low that is expected to turn into a Cat 1 storm by the 14th of Dec 09 (if not earlier) .
|
|
2009/2010 OHL Thread
time for a new thread, summer is just about over and the OHL has started up with Windsor as the #1 ranked team in the CHL. Unfortunately, that wont last very long, as they brought a Memorial Cup hangover into the first week, with ...
Started by Kdoogie24 on
, 40 posts
by 6 people.
Answer Snippets (Read the full thread at motownsports):
Will be home for a week in October but because I am going to the Red Wings-Kings on the Thursday night, the Saturday Kingston @ Sarnia game is... .
I'll add some comments on the Sarnia Sting and Vancouver Giants/WHL once I have something intelligent to add .
|
|
Looking for 2009/2010 stock exhaust cam looking for exhaust cam for my 09 busa dropped it and broke the ear off thanks for any help
Started by kawman67 on
, 7 posts
by 4 people.
Answer Snippets (Read the full thread at hayabusa):
Re: Looking for 2009/2010 stock exhaust cam Originally Posted by kawman67 looking for exhaust cam cam or can? gscales Re: Looking for 2009/2010 stock exhaust cam assumin you're talkin about the stock mine if needed, not sure how much it ....
|