Click here to Skip to main content
15,896,502 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: passin a variable from another class Pin
Christian Graus31-Oct-04 9:05
protectorChristian Graus31-Oct-04 9:05 
GeneralRe: passin a variable from another class Pin
Natural_Demon31-Oct-04 10:10
Natural_Demon31-Oct-04 10:10 
GeneralRe: passin a variable from another class Pin
Christian Graus31-Oct-04 10:14
protectorChristian Graus31-Oct-04 10:14 
GeneralRe: passin a variable from another class Pin
Natural_Demon31-Oct-04 10:16
Natural_Demon31-Oct-04 10:16 
GeneralRe: passin a variable from another class Pin
Christian Graus31-Oct-04 10:20
protectorChristian Graus31-Oct-04 10:20 
GeneralRe: passin a variable from another class Pin
Natural_Demon31-Oct-04 10:41
Natural_Demon31-Oct-04 10:41 
GeneralRe: passin a variable from another class Pin
Christian Graus31-Oct-04 10:51
protectorChristian Graus31-Oct-04 10:51 
GeneralRe: passin a variable from another class Pin
Natural_Demon31-Oct-04 11:03
Natural_Demon31-Oct-04 11:03 
i tried to cast like this...
CAddzonename* m_Zonename;
//CString m_Zonename2 = m_Zonename;

and it returns this ...
j:\Visual Studio Projects\win32\firstw32mfc2\firstw32mfcDlg.cpp(222) : error C2440: 'initializing' : cannot convert from 'CAddzonename *' to 'ATL::CStringT<basetype,stringtraits>'
with
[
BaseType=char,
StringTraits=StrTraitMFC<char>
]
if i do this ...

CString m_Zonename2;
CAddzonename* m_Zonename;
m_Zonename2 = m_Zonename;

j:\Visual Studio Projects\win32\firstw32mfc2\firstw32mfcDlg.cpp(222) : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'CAddzonename *' (or there is no acceptable conversion)
...................................................................

CAddzonename* m_Zonename;
//m_Zonename2 = m_Zonename;

//if(m_Zonename)
//{
AfxGetApp()->WriteProfileString("Settings", "Zonename", m_Zonename);
}

this will return ...
j:\Visual Studio Projects\win32\firstw32mfc2\firstw32mfcDlg.cpp(226) : error C2664: 'CWinApp::WriteProfileStringA' : cannot convert parameter 3 from 'CAddzonename *' to 'LPCTSTR'


Bad = knowing 2 much
GeneralRe: passin a variable from another class Pin
Christian Graus31-Oct-04 11:41
protectorChristian Graus31-Oct-04 11:41 
Generalhtml dialog Pin
Natural_Demon31-Oct-04 3:56
Natural_Demon31-Oct-04 3:56 
GeneralRe: html dialog Pin
Michael Dunn31-Oct-04 8:55
sitebuilderMichael Dunn31-Oct-04 8:55 
GeneralRe: html dialog Pin
Natural_Demon31-Oct-04 9:00
Natural_Demon31-Oct-04 9:00 
GeneralRe: html dialog Pin
faroqtam31-Oct-04 10:44
faroqtam31-Oct-04 10:44 
GeneralRe: html dialog Pin
Christian Graus31-Oct-04 12:44
protectorChristian Graus31-Oct-04 12:44 
General_beginthreadex and WaitForSingleObject Pin
Bob Stanneveld31-Oct-04 3:50
Bob Stanneveld31-Oct-04 3:50 
GeneralRe: _beginthreadex and WaitForSingleObject Pin
valikac31-Oct-04 6:41
valikac31-Oct-04 6:41 
GeneralRe: _beginthreadex and WaitForSingleObject Pin
Bob Stanneveld31-Oct-04 6:45
Bob Stanneveld31-Oct-04 6:45 
GeneralRe: _beginthreadex and WaitForSingleObject Pin
valikac31-Oct-04 8:19
valikac31-Oct-04 8:19 
GeneralRe: _beginthreadex and WaitForSingleObject Pin
Michael Dunn31-Oct-04 8:59
sitebuilderMichael Dunn31-Oct-04 8:59 
GeneralRe: _beginthreadex and WaitForSingleObject Pin
Bob Stanneveld31-Oct-04 10:07
Bob Stanneveld31-Oct-04 10:07 
GeneralSolved! Pin
Bob Stanneveld31-Oct-04 10:23
Bob Stanneveld31-Oct-04 10:23 
GeneralEval Logical Expression Pin
Mathias S.31-Oct-04 0:58
Mathias S.31-Oct-04 0:58 
GeneralBitBlt not working for printer Pin
Anorexic Tribble31-Oct-04 0:29
Anorexic Tribble31-Oct-04 0:29 
GeneralRe: BitBlt not working for printer Pin
faroqtam31-Oct-04 10:14
faroqtam31-Oct-04 10:14 
GeneralRe: BitBlt not working for printer Pin
Roger Allen1-Nov-04 3:06
Roger Allen1-Nov-04 3:06 

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.