Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 1st, 2006, 10:51 AM   #21
lectricpharaoh
SEXY SHOELESS GOD OF WAR!
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,195
Rep Power: 5 lectricpharaoh will become famous soon enough
Unrelated note: you might want to check out this topic on MSDN about generic text mappings. That way, you will be (source-level) portable between ASCII and Unicode Windows variants. If you do this, remember to scale malloc() allocations in terms of sizeof(_TCHAR), because sometimes, it will be 2 instead of 1.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old Oct 1st, 2006, 5:49 PM   #22
Cache
Hobbyist
 
Join Date: Sep 2005
Posts: 266
Rep Power: 4 Cache is on a distinguished road
Quote:
Originally Posted by lectricpharaoh View Post
//...
If you do this, remember to scale malloc() allocations in terms of sizeof(_TCHAR), because sometimes, it will be 2 instead of 1.
Or scrap notions of malloc and use std::basic_string<T> and it's nifty allocator.
Cache is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
When to use the new keyword in C++? titaniumdecoy C++ 28 Mar 16th, 2006 1:36 PM
Which area of memory does new use? aznluvsmc C++ 11 Nov 5th, 2005 8:37 AM
Pointers in C (Part II) Stack Overflow C 2 Apr 29th, 2005 11:39 AM
Pointers in C (Part I) Stack Overflow C 4 Apr 28th, 2005 8:03 PM
memory leak question xaosai C++ 2 Mar 31st, 2005 11:25 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:38 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC