Click here to Skip to main content
15,897,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionQuestion regarding MFC Pin
tasumisra3-Apr-12 17:40
tasumisra3-Apr-12 17:40 
AnswerRe: Question regarding MFC Pin
_AnsHUMAN_ 3-Apr-12 18:03
_AnsHUMAN_ 3-Apr-12 18:03 
AnswerRe: Question regarding MFC Pin
Chandrasekharan P3-Apr-12 20:06
Chandrasekharan P3-Apr-12 20:06 
GeneralRe: Question regarding MFC Pin
tasumisra3-Apr-12 20:34
tasumisra3-Apr-12 20:34 
GeneralRe: Question regarding MFC Pin
Chandrasekharan P3-Apr-12 20:42
Chandrasekharan P3-Apr-12 20:42 
Questionerrors adding to windows form creator Pin
Member 79972643-Apr-12 11:20
Member 79972643-Apr-12 11:20 
AnswerRe: errors adding to windows form creator Pin
Richard Andrew x643-Apr-12 12:29
professionalRichard Andrew x643-Apr-12 12:29 
GeneralRe: errors adding to windows form creator Pin
Member 79972643-Apr-12 15:10
Member 79972643-Apr-12 15:10 
It got rid of most of the errors I was looking at but now I have some more.

1>------ Build started: Project: TestForms, Configuration: Debug Win32 ------
1>  TestForms.cpp
1>c:\users\steve\documents\visual studio 2010\projects\testforms\testforms\Form1.h(149): error C2664: 'strcmp' : cannot convert parameter 2 from 'WCHAR [260]' to 'const char *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\users\steve\documents\visual studio 2010\projects\testforms\testforms\Form1.h(149): error C2664: 'strcmp' : cannot convert parameter 2 from 'WCHAR [260]' to 'const char *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\users\steve\documents\visual studio 2010\projects\testforms\testforms\Form1.h(152): error C2679: binary '+=' : no operator found which takes a right-hand operand of type 'WCHAR [260]' (or there is no acceptable conversion)
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xstring(777): could be 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator +=(const std::basic_string<_Elem,_Traits,_Ax> &)'
1>          with
1>          [
1>              _Elem=char,
1>              _Traits=std::char_traits<char>,
1>              _Ax=std::allocator<char>
1>          ]
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xstring(782): or       'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator +=(const _Elem *)'
1>          with
1>          [
1>              _Elem=char,
1>              _Traits=std::char_traits<char>,
1>              _Ax=std::allocator<char>
1>          ]
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xstring(787): or       'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator +=(_Elem)'
1>          with
1>          [
1>              _Elem=char,
1>              _Traits=std::char_traits<char>,
1>              _Ax=std::allocator<char>
1>          ]
1>          while trying to match the argument list '(std::string, WCHAR [260])'
1>c:\users\steve\documents\visual studio 2010\projects\testforms\testforms\Form1.h(160): error C2679: binary '+=' : no operator found which takes a right-hand operand of type 'WCHAR [260]' (or there is no acceptable conversion)
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xstring(777): could be 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator +=(const std::basic_string<_Elem,_Traits,_Ax> &)'
1>          with
1>          [
1>              _Elem=char,
1>              _Traits=std::char_traits<char>,
1>              _Ax=std::allocator<char>
1>          ]
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xstring(782): or       'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator +=(const _Elem *)'
1>          with
1>          [
1>              _Elem=char,
1>              _Traits=std::char_traits<char>,
1>              _Ax=std::allocator<char>
1>          ]
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xstring(787): or       'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator +=(_Elem)'
1>          with
1>          [
1>              _Elem=char,
1>              _Traits=std::char_traits<char>,
1>              _Ax=std::allocator<char>
1>          ]
1>          while trying to match the argument list '(std::string, WCHAR [260])'
1>c:\users\steve\documents\visual studio 2010\projects\testforms\testforms\Form1.h(161): error C2065: 'cout' : undeclared identifier
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Any idea how to fix this?
AnswerRe: errors adding to windows form creator Pin
Richard Andrew x643-Apr-12 15:16
professionalRichard Andrew x643-Apr-12 15:16 
GeneralRe: errors adding to windows form creator Pin
Member 79972643-Apr-12 17:25
Member 79972643-Apr-12 17:25 
AnswerRe: errors adding to windows form creator Pin
Wes Aday3-Apr-12 15:23
professionalWes Aday3-Apr-12 15:23 
GeneralRe: errors adding to windows form creator Pin
Member 79972643-Apr-12 17:50
Member 79972643-Apr-12 17:50 
GeneralRe: errors adding to windows form creator Pin
Wes Aday4-Apr-12 1:48
professionalWes Aday4-Apr-12 1:48 
Questiondelete pointer Pin
ITISAG3-Apr-12 11:03
ITISAG3-Apr-12 11:03 
AnswerRe: delete pointer Pin
Chuck O'Toole3-Apr-12 11:19
Chuck O'Toole3-Apr-12 11:19 
GeneralRe: delete pointer Pin
ITISAG3-Apr-12 11:21
ITISAG3-Apr-12 11:21 
AnswerRe: delete pointer Pin
Chuck O'Toole3-Apr-12 11:31
Chuck O'Toole3-Apr-12 11:31 
GeneralRe: delete pointer Pin
ITISAG3-Apr-12 11:26
ITISAG3-Apr-12 11:26 
AnswerRe: delete pointer Pin
Chuck O'Toole3-Apr-12 11:34
Chuck O'Toole3-Apr-12 11:34 
GeneralRe: delete pointer Pin
Richard MacCutchan3-Apr-12 22:00
mveRichard MacCutchan3-Apr-12 22:00 
GeneralRe: delete pointer Pin
ggggfjeicfh5-Apr-12 16:26
ggggfjeicfh5-Apr-12 16:26 
GeneralRe: delete pointer Pin
ggggfjeicfh5-Apr-12 16:40
ggggfjeicfh5-Apr-12 16:40 
QuestionmousePress crash 64 bit mfc application Pin
appollosputnik3-Apr-12 8:11
appollosputnik3-Apr-12 8:11 
QuestionSocket Alive Pin
john56323-Apr-12 2:20
john56323-Apr-12 2:20 
QuestionRe: Socket Alive Pin
Code-o-mat3-Apr-12 4:51
Code-o-mat3-Apr-12 4:51 

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.