IMG Archives
Archives  News  Oliver on Civ IV Tech  

Friday, March 10, 2006

Click to enlarge
Oliver on Civ IV Tech
8:20 AM | Marcus Albers | Comment on this story

Our favorite Mac coder Brad Oliver takes a break while the latest build of Civilization IV compiles to pontificate on the travails of porting windows code to the Mac. Those who know nothing of coding, beware: what follows is not for the faint of heart.

Things get weird when you use the wchar variants, like wprintf. The standard states that, essentially, wprintf takes the same formatting tokens as the printf case: %s for char strings, %ls or %S for wchar strings. Visual Studio, however, does the exact opposite. in wprintf, it uses %s to represent wchar strings, and %S to represent regular char strings. Worse, they've added the notion of %hs to also represent regular char strings in a wprintf statement.
It's true Brad style all the way. For the full scoop, head over to The Brad Hole and take in the whole post.

The Brad Hole
Civilization IV
Buy Civilization IV

Other Mac Games News for Friday, March 10, 2006

Macgamestore: Garden Dreams, Mah Jong Medley Now Available2:01 PM
A New MMORPG Lurks In Hidden Waters8:20 AM
Call Of Duty 2 Reviewed8:20 AM
Custer Digs Up Another Desktop8:20 AM
Hearts of Iron II Updated8:20 AM
• Oliver on Civ IV Tech8:20 AM
SketchFighter 4000 Alpha Progress8:20 AM
Windows On Intel Mac Page Debuts8:20 AM
IMG Podcast Episode 17 Released6:00 AM
View all of the Mac games news for Friday, March 10, 2006 on one page

Mac Games News for Thursday, March 9, 2006

Macgamestore: C&C Generals Deluxe, GameHouse Sudoku!2:03 PM
Apple Posts Latest Hot Deals1:08 PM
Tuncer's Blog: Don't Fear The Reaper12:11 PM
MacWorld reviews Intel Mac Mini11:48 AM
Blue Takes You To School: A Review8:09 AM
Minions of Mirth Q&A8:09 AM
New WoW: Ahn'Qiraj Gameplay Footage8:09 AM
View all of the Mac games news for Thursday, March 9, 2006 on one page

Recent Mac Games News

Wednesday, March 8, 2006
Tuesday, March 7, 2006
Monday, March 6, 2006
Friday, March 3, 2006
Thursday, March 2, 2006

Search for other Mac games news stories or browse our Mac Games News Archive.

Archives  News  Oliver on Civ IV Tech