C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 13th, 2002, 11:51 PM
majglow majglow is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 3 majglow User rank is Private First Class (20 - 50 Reputation Level)majglow User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ascii / Unicode

Hello,

How important is it for me to learn how to use UNICODE with the Win32 API? cauze it's kind of confusing, and I don't like it....


Should I bother?

-cARL
Comments on this post
JimmyGosling agrees!

Reply With Quote
  #2  
Old February 14th, 2002, 12:38 AM
jonsagara's Avatar
jonsagara jonsagara is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: USA
Posts: 286 jonsagara User rank is Private First Class (20 - 50 Reputation Level)jonsagara User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 7 m 23 sec
Reputation Power: 12
Depends on how much programming you intend to do. If you are only a hobbyist and you are directing your programs toward the Win9x platform, then you don't need to use UNICODE. But if your programs are going to run on NT/2k/XP, you need to use UNICODE (this isn't entirely true - ASCII characters will still work, but programs that use them are less efficient than those that use UNICODE).

Also, if you plan to localize your programs (translate them to different languages), then UNICODE is essential.

One of the easiest ways to deal with having both types of strings is to use TCHARs with the _T() or TEXT() macros.
Comments on this post
JimmyGosling agrees!
__________________
Jon Sagara

"Me fail English? That's unpossible!"

Reply With Quote
  #3  
Old February 14th, 2002, 01:16 AM
majglow majglow is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 3 majglow User rank is Private First Class (20 - 50 Reputation Level)majglow User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ok, all those macros, functions, data types, just confused me....

like vsprintf(), and the like..

and TCHAR (am I getting this right)

I mean, I get it more or less, but it's really really fuzzy, and I couldn't use it on my own.


Also, in the Programming windows fifth edition book by Petzold, he uses all those macros, and says he made all the examples as unicode as possible.

Did he use the best "real world" method of doing it?

thanks,
-cARL

Reply With Quote
  #4  
Old February 14th, 2002, 01:42 AM
jonsagara's Avatar
jonsagara jonsagara is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: USA
Posts: 286 jonsagara User rank is Private First Class (20 - 50 Reputation Level)jonsagara User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 7 m 23 sec
Reputation Power: 12
IMHO, yes. That's more or less how I program at work (excepting the fact that we use a proprietary string class).

Reply With Quote
  #5  
Old February 14th, 2002, 01:50 AM
majglow majglow is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 3 majglow User rank is Private First Class (20 - 50 Reputation Level)majglow User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
What does IMHO stand for? Is this some kind of obscure data type? or macro? (I'm joking around although I do wonder what IMHO stands for, I see it used everywhere on forums)

Are my dumb questions getting annoying to you elite coders? (just wondering cauze I have a lot of them, don't expect them to stop coming either )

-cARL

Reply With Quote
  #6  
Old February 14th, 2002, 03:33 AM
jonsagara's Avatar
jonsagara jonsagara is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: USA
Posts: 286 jonsagara User rank is Private First Class (20 - 50 Reputation Level)jonsagara User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 7 m 23 sec
Reputation Power: 12
IMHO = In My Humble Opinion

There are no dumb questions. You have to start somewhere, and I know this stuff can be daunting at first, so ask away!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > Ascii / Unicode

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap