Click here to Skip to main content
15,908,013 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralSingle Application Instance Pin
retro_coder16-Jun-05 18:58
retro_coder16-Jun-05 18:58 
GeneralRe: Single Application Instance Pin
Jack Puppy16-Jun-05 19:08
Jack Puppy16-Jun-05 19:08 
GeneralRe: Single Application Instance Pin
retro_coder16-Jun-05 21:47
retro_coder16-Jun-05 21:47 
GeneralRe: Single Application Instance Pin
Jack Puppy17-Jun-05 2:13
Jack Puppy17-Jun-05 2:13 
GeneralRe: Single Application Instance Pin
retro_coder19-Jun-05 15:21
retro_coder19-Jun-05 15:21 
Generalgeneric file streams Pin
RChin15-Jun-05 0:54
RChin15-Jun-05 0:54 
GeneralRe: generic file streams Pin
Joaquín M López Muñoz15-Jun-05 11:00
Joaquín M López Muñoz15-Jun-05 11:00 
GeneralRe: generic file streams Pin
rhdunn22-Jun-05 10:38
rhdunn22-Jun-05 10:38 
ifstream and wifstream (like all C++ stream and string classes) are char and wchar_t variants of
basic_ifstream< CharT, CharTraits = std::char_traits< CharT > >,
where CharT is the character type and CharTraits is a specialization of std::char_traits< CharT >, or a compatible class.

Therefore, you can have:
typedef std::basic_string< TCHAR > _tstring; // TCHAR string!
typedef std::basic_ifstream< TCHAR > _tifstream; // TCHAR input file stream
class std::char_traits< Unicode >{ ... }; // pseudo-code
typedef std::basic_ifstream< Unicode > uifstream; // Unicode input file stream
or
class UnicodeTraits{ ... }; // char_traits-like class
typedef std::basic_ifstream< Unicode, UnicodeTraits > uifstream2;

Note that the file path is const char *, so this will not support wide/Unicode paths.

HTH

Reece Haston Dunn
Software Engineer, Sophos

Web: www.sophos.com
Sophos - protecting businesses against viruses and spam
GeneralCreating a COM instance Pin
dittygrail13-Jun-05 18:49
dittygrail13-Jun-05 18:49 
GeneralRe: Creating a COM instance Pin
sherton14-Jun-05 15:56
sherton14-Jun-05 15:56 
GeneralRe: Creating a COM instance Pin
reachjsk24-Jun-05 0:51
reachjsk24-Jun-05 0:51 
GeneralCom object Pin
dittygrail13-Jun-05 18:46
dittygrail13-Jun-05 18:46 
GeneralATL Maps Pin
Anonymous12-Jun-05 23:38
Anonymous12-Jun-05 23:38 
GeneralRe: ATL Maps Pin
Kevin McFarlane21-Jun-05 9:07
Kevin McFarlane21-Jun-05 9:07 
Generalold db provider in vc++ by ATL Pin
sherton10-Jun-05 22:12
sherton10-Jun-05 22:12 
Generalproblem with CRichEditCtrl Pin
nadilie9-Jun-05 8:51
nadilie9-Jun-05 8:51 
General.NET porting Pin
Anushan Tennakoon9-Jun-05 2:20
Anushan Tennakoon9-Jun-05 2:20 
GeneralRe: .NET porting Pin
Christian Graus14-Jun-05 16:06
protectorChristian Graus14-Jun-05 16:06 
GeneralTrying to change http header by BHO Pin
Member 19838628-Jun-05 6:14
Member 19838628-Jun-05 6:14 
GeneralNeed Help .... Tree Control Pin
7-Jun-05 6:11
suss7-Jun-05 6:11 
GeneralRe: Need Help .... Tree Control Pin
Michael Dunn9-Jun-05 6:59
sitebuilderMichael Dunn9-Jun-05 6:59 
Generalsync. probelm for ATL Pin
Prakash Sonani7-Jun-05 5:19
Prakash Sonani7-Jun-05 5:19 
Generalsync. probelm for ATL Pin
Prakash Sonani7-Jun-05 5:18
Prakash Sonani7-Jun-05 5:18 
GeneralRe: sync. probelm for ATL Pin
Anonymous11-Jun-05 11:50
Anonymous11-Jun-05 11:50 
GeneralSTDMETHOD Pin
Anand for every one5-Jun-05 21:58
Anand for every one5-Jun-05 21:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.