C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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 14th, 2002, 12:51 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
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, 01: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: 8
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, 02: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, 02: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: 8
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, 02: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, 04: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: 8
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


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




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek