Watch, Follow, &
Connect with Us

The Oracle at Delphi













Older Stuff



Archive for January, 2008

Meanwhile, back at the (Unicode) ranch

 
I use the TStrings.ReadFromFile/WriteToFile methods all the time to read/write text files and manipulate them.  Does this mean all these files are now Unicode and I can’t read/write the files in the old format?
I’ve gotten this specific question a few times recently, so I figured I’d address it directly.  The bottom line here is that [...]

Posted by Allen Bauer on January 28th, 2008 under CodeGear | 35 Comments »

Taking a big PByte of pointer math

Many of you have done it.  We here have done it.  It is just so danged convenient and satisfying.  Sure, it is not regarded as a "safe" thing to do.  Without the proper precautions, you can easily get into some serious trouble.  But, hey, the C/C++ programmers do it all the time!  What is "it"?  [...]

Posted by Allen Bauer on January 24th, 2008 under CodeGear | 18 Comments »

Breaking the rules

Sometimes you just have to break the rules in order to learn something new.  It is inherent in everyone, from the first time you ignored your parents about getting burned by the hot stove, to doing 10+ over the speed limit because "you can."  Even though I mentioned in this post that you should never [...]

Posted by Allen Bauer on January 22nd, 2008 under CodeGear, Delphi, Parallel Programming | 5 Comments »

Simmering Unicode, bring DPL to a boil (Part 2)

As promised, I’ll be covering the next group of methods on the TMonitor class.  Wait, Pulse, and PulseAll.  Before I do that, I want to quickly cover the spin-lock section of the Enter method from this post.  (UPDATE: For the record, the TInterlocked class does not exist yet in any shipping VCL.  You can simply [...]

Posted by Allen Bauer on January 18th, 2008 under CodeGear, Delphi, Parallel Programming | 7 Comments »

Simmering Unicode, bring DPL to a boil

Now that most of the ingredients are in the Unicode pot, I’m going to move it to the back burner and turn it down to a low simmer.  We’ll come back to it later and give it a few stirs and make sure the seasoning is right.  Meanwhile I want to start work in the [...]

Posted by Allen Bauer on January 17th, 2008 under CodeGear, Delphi, Parallel Programming | 28 Comments »

Unicode Character Categorization.

Another very common item that will hit many folks is how do you easily determine what category a particular Unicode code-point belongs to.  In the simpler time of ASCII (American Standard Code for Information Interchange) and even the slightly more enlightened period of ISO-8859-x most folks would just assume that if a code-point fell between [...]

Posted by Allen Bauer on January 11th, 2008 under CodeGear | 11 Comments »

And now the $100,000 question.

Will there be a switch to control when string = UnicodeString?
The current assumption about that is, no.  Let me explain why.
DCU compatibility and linking problems - Suppose you built unit A with the switch to Unicode mode.  Then you built unit B with it off.  You can not link Unit A with B because of [...]

Posted by Allen Bauer on January 10th, 2008 under CodeGear | 49 Comments »

More FAQs about Unicode in Tiburón

Based on some of the comments I’ve already received, here are a few more common questions folks have:
Why not just provide a new set of controls for Unicode?
Because Unicode is not just about displaying characters.  If Unicode were relegated only to the display surface, and all the rest of the program were left alone, you’re [...]

Posted by Allen Bauer on January 9th, 2008 under CodeGear | 23 Comments »

DPL & Unicode - a toss up.

So far it’s looking like a toss-up between folks wanting more information on the Delphi Parallel Library and those wanting more information about the shift to Unicode.  I think both are extremely important and it is no surprise given the feedback.  Since it is still not clear whether or not DPL will make it into [...]

Posted by Allen Bauer on January 9th, 2008 under CodeGear | 42 Comments »

A new year and a fresh start

I’ve been wrestling throughout the past week with what direction I should be taking this blog in the coming year.  There’s a lot of cool stuff coming down the pike for Delphi & C++Builder. I’m just not sure where to start.  There are all the Unicode changes, parameterized types (Generics) for Win32, some VCL enhancements, [...]

Posted by Allen Bauer on January 7th, 2008 under CodeGear | 57 Comments »

Server Response from: BLOGS2