Home > Software engineering >  Excuse me, ladies and gentlemen, I'd like to do in MFC save EDIT the content of the input and t
Excuse me, ladies and gentlemen, I'd like to do in MFC save EDIT the content of the input and t

Time:11-17

As title, newcomer to do the final assignment, thank you

CodePudding user response:

The contents to a file, open the software to read

CodePudding user response:

If it is a simple text save directly to the registration table then start to read while the good I write such is the key to keep
Hkeys hkeys=nullptr;
DWORD dwSize;
If (ERROR_SUCCESS==: : RegOpenKeyEx (HKEY_CURRENT_USER, TEXT (" SoftWare \ \ MiniTool "), NULL, KEY_READ, & amp; Hkeys))
{
: : RegQueryValueEx (hkeys, "Path", NULL, NULL, LPBYTE strPath, & amp; DwSize);
SetDlgItemText (IDC_EDIT3 strKey);
}
The else
{
: : RegCreateKey (HKEY_CURRENT_USER, TEXT (" SoftWare \ \ MiniTool "), & amp; Hkeys);
}

If it is a long text directly to a file

CodePudding user response:

Save the registry is not desirable, one thousand have what kill soft couple don't friendly, it is better to file

CodePudding user response:

The application wizard to generate a based on the SDI not just yao CEditView, don't have to write one line of code...
  • Related