Click here to Skip to main content
15,926,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDialogBar in a DLL? Please help! Pin
Exe026-Oct-04 7:27
Exe026-Oct-04 7:27 
GeneralA method to collapse code in the IDE Pin
NietzscheDisciple26-Oct-04 7:17
NietzscheDisciple26-Oct-04 7:17 
GeneralRe: A method to collapse code in the IDE Pin
BlackDice26-Oct-04 10:03
BlackDice26-Oct-04 10:03 
GeneralMenu on CFormView Derived Pin
aman200626-Oct-04 6:27
aman200626-Oct-04 6:27 
GeneralKnowing resource ID Pin
0v3rloader26-Oct-04 6:02
0v3rloader26-Oct-04 6:02 
Generallong compile time ... vs.net 2003 ... Pin
Maximilien26-Oct-04 5:57
Maximilien26-Oct-04 5:57 
GeneralRe: long compile time ... vs.net 2003 ... Pin
Blake Miller26-Oct-04 6:02
Blake Miller26-Oct-04 6:02 
Questionwhere am i mistaking here? Pin
Natural_Demon26-Oct-04 5:35
Natural_Demon26-Oct-04 5:35 
BOOL Cfirstw32mfcApp::InitInstance()
{
SetRegistryKey(_T("Natural_Demon"));
...
..
..
}


this works perfect ...

the data retrieved from the registry is nicely update in the GUI
BOOL Cfirstw32mfcDlg::OnInitDialog()
{
..
...
...
..
EDIT1 = AfxGetApp()->GetProfileString("Settings", "email", "your login");
EDIT2 = AfxGetApp()->GetProfileString("Settings", "password", "details here..");
return FALSE; // return TRUE unless you set the focus to a control
}

this works perfectly ...

HRESULT Cfirstw32mfcDlg::OnButtonOK(IHTMLElement* /*pElement*/)
{
AfxGetApp()->WriteProfileString("Settings", "email", "hi");
AfxGetApp()->WriteProfileString("Settings", "password", "do");
return NULL;
}

but why doesn't this work ...?
HRESULT Cfirstw32mfcDlg::OnButtonOK(IHTMLElement* /*pElement*/)
{
UpdateData(FALSE);
AfxGetApp()->WriteProfileString("Settings", "email", EDIT1);
AfxGetApp()->WriteProfileString("Settings", "password", EDIT2);
return NULL;
}


if i do this ...
UpdateData();, UpdateData(FALSE); or this UpdateDialogControls(this, FALSE);
nothing works
EDIT1 en EDIT2 are empty and the registry get's updated with empty values.

where am i mistaking here?

thnx in advance.

kind regards,

marco
AnswerRe: where am i mistaking here? Pin
Blake Miller26-Oct-04 6:09
Blake Miller26-Oct-04 6:09 
GeneralRe: where am i mistaking here? Pin
Natural_Demon26-Oct-04 8:23
Natural_Demon26-Oct-04 8:23 
GeneralRe: where am i mistaking here? Pin
Blake Miller27-Oct-04 4:45
Blake Miller27-Oct-04 4:45 
GeneralGet Row & Column for a listCtrl Pin
sweep12326-Oct-04 4:37
sweep12326-Oct-04 4:37 
GeneralRe: Get Row & Column for a listCtrl Pin
David Crow26-Oct-04 5:07
David Crow26-Oct-04 5:07 
GeneralRe: Get Row & Column for a listCtrl Pin
sweep12326-Oct-04 6:23
sweep12326-Oct-04 6:23 
GeneralRe: Get Row & Column for a listCtrl Pin
Rage26-Oct-04 7:10
professionalRage26-Oct-04 7:10 
GeneralRe: Get Row & Column for a listCtrl Pin
Grahamfff26-Oct-04 9:38
Grahamfff26-Oct-04 9:38 
Questionhow can i have only client area of window Pin
efanHarris26-Oct-04 4:35
efanHarris26-Oct-04 4:35 
AnswerRe: how can i have only client area of window Pin
David Crow26-Oct-04 4:42
David Crow26-Oct-04 4:42 
GeneralRe: how can i have only client area of window Pin
efanHarris26-Oct-04 20:16
efanHarris26-Oct-04 20:16 
GeneralRe: how can i have only client area of window Pin
David Crow27-Oct-04 10:30
David Crow27-Oct-04 10:30 
GeneralIs there any free Modem Simulator which can tell Call States or some other way to debug Modem application with Modem Pin
Kapoor Vikrant26-Oct-04 4:28
Kapoor Vikrant26-Oct-04 4:28 
GeneralRe: Is there any free Modem Simulator which can tell Call States or some other way to debug Modem application with Modem Pin
Blake Miller26-Oct-04 6:14
Blake Miller26-Oct-04 6:14 
QuestionHow to dump information into text file which I got from _CrtDumpMemoryLeaks() ? Pin
Amarelia26-Oct-04 4:24
Amarelia26-Oct-04 4:24 
GeneralBuilding Wizards Pin
shevi202726-Oct-04 2:57
shevi202726-Oct-04 2:57 
GeneralRe: Building Wizards Pin
Blake Miller26-Oct-04 6:17
Blake Miller26-Oct-04 6:17 

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.