Click here to Skip to main content
15,905,616 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to hook system API under windows 9x? Pin
User 665831-Oct-04 8:25
User 665831-Oct-04 8:25 
GeneralRe: How to hook system API under windows 9x? Pin
jedyking1-Nov-04 5:28
jedyking1-Nov-04 5:28 
AnswerRe: How to hook system API under windows 9x? Pin
ThatsAlok31-Oct-04 17:29
ThatsAlok31-Oct-04 17:29 
GeneralRe: How to hook system API under windows 9x? Pin
jedyking1-Nov-04 5:27
jedyking1-Nov-04 5:27 
GeneralTAPI givin link error Pin
asif m@hmood31-Oct-04 5:46
asif m@hmood31-Oct-04 5:46 
GeneralRe: TAPI givin link error Pin
Michael P Butler31-Oct-04 6:18
Michael P Butler31-Oct-04 6:18 
Questionhow to enable... Pin
Natural_Demon31-Oct-04 4:19
Natural_Demon31-Oct-04 4:19 
Generalpassin a variable from another class Pin
Natural_Demon31-Oct-04 4:13
Natural_Demon31-Oct-04 4:13 
HRESULT Cfirstw32mfcDlg::OnButtonOK(IHTMLElement* /*pElement*/)
{
UpdateData(TRUE);

if(( EDIT1 == "" )&&( EDIT2 == "" ))
{
AfxMessageBox("You must provide a username and a password or click Cancel",MB_ICONSTOP);
return NULL;
}

AfxGetApp()->WriteProfileString("Settings", "email", EDIT1);
AfxGetApp()->WriteProfileString("Settings", "password", EDIT2);

//CAddzonename* m_Zonename;
//LPCTSTR m_Zonename = m_Zonename;
/*
if(m_Zonename)
{
AfxGetApp()->WriteProfileString("Settings", "Zonename", m_Zonename);
}
*/
return 0;
}
.......................................................
// CAddzonename dialog header file

class CAddzonename : public CDialog
{
DECLARE_DYNAMIC(CAddzonename)

public:
// global variable
CString m_Zonename;
.......................................................

i have tried this this ...

CAddzonename* m_Zonename;
CString m_Zonename2 = m_Zonename;

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

and return 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>
]
No constructor could take the source type, or constructor overload resolution was ambiguous


what am i doing wrong?

kind regards,

marco
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 
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 

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.