Click here to Skip to main content
16,018,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: negative values for char Pin
micutzu21-Feb-07 2:32
micutzu21-Feb-07 2:32 
GeneralRe: negative values for char Pin
Naveen21-Feb-07 2:43
Naveen21-Feb-07 2:43 
GeneralRe: negative values for char Pin
micutzu21-Feb-07 3:00
micutzu21-Feb-07 3:00 
GeneralRe: negative values for char Pin
Naveen21-Feb-07 16:14
Naveen21-Feb-07 16:14 
GeneralRe: negative values for char Pin
Nemanja Trifunovic21-Feb-07 4:00
Nemanja Trifunovic21-Feb-07 4:00 
GeneralRe: negative values for char Pin
toxcct21-Feb-07 2:33
toxcct21-Feb-07 2:33 
GeneralRe: negative values for char Pin
Naveen21-Feb-07 2:45
Naveen21-Feb-07 2:45 
GeneralRe: negative values for char Pin
toxcct21-Feb-07 2:52
toxcct21-Feb-07 2:52 
Naveen R wrote:
but CString have both constructors


this is not acceptable argument, because, if the application is not defining UNICODE macro, even if you initialize your CString with a LPCWSTR, the string will be casted into ANSI string.

BTW, i doubt of this information. actually, CString gets a LPCTSTR, which is transformed into LPCSTR or LPCWSTR depending on unicode definition

Naveen R wrote:
Any way I did so because he said( in his previous post) his project is UNICODE define...


yes, but then prefer using CStringW. imagine the case when someone else has to maintain the application, or develop the dual possibility of having the application running both ansi and unicode... your code must be flexible, not only "aware"


GeneralRe: negative values for char Pin
Naveen21-Feb-07 16:08
Naveen21-Feb-07 16:08 
AnswerRe: negative values for char Pin
kakan21-Feb-07 1:41
professionalkakan21-Feb-07 1:41 
AnswerRe: negative values for char Pin
Nemanja Trifunovic21-Feb-07 1:58
Nemanja Trifunovic21-Feb-07 1:58 
QuestionHow to make a combo box readonly? Pin
reza matinnejad21-Feb-07 0:10
reza matinnejad21-Feb-07 0:10 
AnswerRe: How to make a combo box readonly? Pin
Garth J Lancaster21-Feb-07 0:17
professionalGarth J Lancaster21-Feb-07 0:17 
GeneralRe: How to make a combo box readonly? Pin
reza matinnejad21-Feb-07 0:21
reza matinnejad21-Feb-07 0:21 
AnswerRe: How to make a combo box readonly? Pin
David Crow21-Feb-07 3:25
David Crow21-Feb-07 3:25 
AnswerRe: How to make a combo box readonly? Pin
ThatsAlok21-Feb-07 5:57
ThatsAlok21-Feb-07 5:57 
QuestionReconnecting a dead Network Connection Pin
GeeBru20-Feb-07 23:45
GeeBru20-Feb-07 23:45 
AnswerRe: Reconnecting a dead Network Connection Pin
Garth J Lancaster21-Feb-07 0:13
professionalGarth J Lancaster21-Feb-07 0:13 
GeneralRe: Reconnecting a dead Network Connection Pin
GeeBru21-Feb-07 0:16
GeeBru21-Feb-07 0:16 
GeneralRe: Reconnecting a dead Network Connection Pin
Garth J Lancaster21-Feb-07 0:21
professionalGarth J Lancaster21-Feb-07 0:21 
AnswerRe: Reconnecting a dead Network Connection Pin
James R. Twine21-Feb-07 1:14
James R. Twine21-Feb-07 1:14 
QuestionAbout File Extension Pin
siddharthsan20-Feb-07 23:38
siddharthsan20-Feb-07 23:38 
AnswerRe: About File Extension Pin
GeeBru21-Feb-07 0:07
GeeBru21-Feb-07 0:07 
AnswerRe: About File Extension Pin
David Crow21-Feb-07 3:26
David Crow21-Feb-07 3:26 
AnswerRe: About File Extension Pin
ThatsAlok21-Feb-07 5:58
ThatsAlok21-Feb-07 5: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.