CodePudding user response:
The contents to a file, open the software to readCodePudding 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 keepHkeys 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 fileCodePudding 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...