Click here to Skip to main content
15,867,568 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionI am using VC++ coding,Can any one help me? Pin
lucky_122120-Jun-11 21:14
lucky_122120-Jun-11 21:14 
AnswerRe: I am using VC++ coding,Can any one help me? Pin
CPallini20-Jun-11 22:10
mveCPallini20-Jun-11 22:10 
AnswerRe: I am using VC++ coding,Can any one help me? Pin
Cool_Dev20-Jun-11 22:18
Cool_Dev20-Jun-11 22:18 
QuestionConverting char array to CSting Pin
VCProgrammer20-Jun-11 1:43
VCProgrammer20-Jun-11 1:43 
AnswerRe: Converting char array to CSting Pin
Pete O'Hanlon20-Jun-11 1:54
subeditorPete O'Hanlon20-Jun-11 1:54 
GeneralRe: Converting char array to CSting [modified] Pin
Albert Holguin20-Jun-11 4:36
professionalAlbert Holguin20-Jun-11 4:36 
GeneralRe: Converting char array to CSting Pin
Pete O'Hanlon20-Jun-11 6:10
subeditorPete O'Hanlon20-Jun-11 6:10 
AnswerRe: Converting char array to CSting Pin
CPallini20-Jun-11 1:55
mveCPallini20-Jun-11 1:55 
Please let we know the error message ('compiler error' is a bit vague). Anyway I guess you are making a UNICODE build hence the ctor CString::CString(const char *, int) is not available. If the character array is zero-terminated (or you can make it zero-terminated and there aren't other '\0' characters inside) then you could use CString::CString(const char *) instead, namely
C++
CString str(array);

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

AnswerRe: Converting char array to CSting Pin
Rajesh R Subramanian20-Jun-11 3:54
professionalRajesh R Subramanian20-Jun-11 3:54 
Question[Win32]Add context menu to edit control Pin
Member 296547120-Jun-11 1:24
Member 296547120-Jun-11 1:24 
AnswerRe: [Win32]Add context menu to edit control Pin
CPallini20-Jun-11 1:58
mveCPallini20-Jun-11 1:58 
AnswerRe: [Win32]Add context menu to edit control Pin
వేంకటనారాయణ(venkatmakam)20-Jun-11 2:23
వేంకటనారాయణ(venkatmakam)20-Jun-11 2:23 
GeneralRe: [Win32]Add context menu to edit control Pin
Member 296547120-Jun-11 3:07
Member 296547120-Jun-11 3:07 
GeneralRe: [Win32]Add context menu to edit control Pin
Mark Salsbery20-Jun-11 10:16
Mark Salsbery20-Jun-11 10:16 
AnswerRe: [Win32]Add context menu to edit control Pin
User 742933821-Jun-11 1:04
professionalUser 742933821-Jun-11 1:04 
QuestionSendMessage Pin
Sakhalean19-Jun-11 23:36
Sakhalean19-Jun-11 23:36 
AnswerRe: SendMessage Pin
xrg_soft@163.com19-Jun-11 23:49
xrg_soft@163.com19-Jun-11 23:49 
GeneralRe: SendMessage Pin
Sakhalean20-Jun-11 0:00
Sakhalean20-Jun-11 0:00 
AnswerRe: SendMessage Pin
Albert Holguin20-Jun-11 4:42
professionalAlbert Holguin20-Jun-11 4:42 
Questiondoubi in vc++ Pin
Remya.pv19-Jun-11 18:24
Remya.pv19-Jun-11 18:24 
AnswerRe: doubi in vc++ Pin
Richard MacCutchan19-Jun-11 21:49
mveRichard MacCutchan19-Jun-11 21:49 
AnswerRe: doubi in vc++ Pin
Chandrasekharan P19-Jun-11 21:55
Chandrasekharan P19-Jun-11 21:55 
AnswerRe: doubi in vc++ Pin
Mark Salsbery20-Jun-11 11:05
Mark Salsbery20-Jun-11 11:05 
Questionabout "windows belonging to different processes are mixed in a single window hierarchy" Pin
xrg_soft@163.com19-Jun-11 17:40
xrg_soft@163.com19-Jun-11 17:40 
AnswerRe: about "windows belonging to different processes are mixed in a single window hierarchy" Pin
Mark Salsbery19-Jun-11 18:11
Mark Salsbery19-Jun-11 18:11 

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.