Click here to Skip to main content
15,917,320 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: TB_GETMAXSIZE Pin
Shog925-Apr-02 17:58
sitebuilderShog925-Apr-02 17:58 
GeneralRe: TB_GETMAXSIZE Pin
Joao Vaz25-Apr-02 18:16
Joao Vaz25-Apr-02 18:16 
GeneralRe: TB_GETMAXSIZE Pin
Shog925-Apr-02 18:24
sitebuilderShog925-Apr-02 18:24 
GeneralRe: TB_GETMAXSIZE Pin
Joao Vaz25-Apr-02 18:27
Joao Vaz25-Apr-02 18:27 
GeneralDeleting a registry key Pin
dazinith25-Apr-02 9:24
dazinith25-Apr-02 9:24 
GeneralRe: Deleting a registry key Pin
Albert Pascual25-Apr-02 10:27
sitebuilderAlbert Pascual25-Apr-02 10:27 
GeneralRe: Deleting a registry key Pin
dazinith25-Apr-02 10:33
dazinith25-Apr-02 10:33 
GeneralRe: Deleting a registry key Pin
Albert Pascual25-Apr-02 10:44
sitebuilderAlbert Pascual25-Apr-02 10:44 
You could open the registry with:

LONG RegOpenKeyEx(
HKEY hKey, // handle to open key
LPCTSTR lpSubKey, // subkey name
DWORD ulOptions, // reserved
REGSAM samDesired, // security access mask
PHKEY phkResult // handle to open key
);

And the delete it with:

DWORD SHDeleteKey(
HKEY hkey,
LPCTSTR pszSubKey
);

Or:
LONG DelRegTree(
HKEY hParentKey,
const CString& strKeyName
);

However yoiu need the HKEY you can open it to get the HKEY with the SubKey from WriteProfileString()

Oh! Are you asking in MC++? You see I don't know if this question is for MC++ or C++ because we don't have a MC++ forum ... yet

Poke tongue | ;-P

So if you are using MC++ remember to
[DllImport("user32.dll")]
Poke tongue | ;-P

Joke a part, hope this help. That's all I know about the registry, somebody else may be able to help
GeneralRe: Deleting a registry key Pin
Joaquín M López Muñoz25-Apr-02 10:35
Joaquín M López Muñoz25-Apr-02 10:35 
GeneralRe: Deleting a registry key Pin
dazinith25-Apr-02 10:44
dazinith25-Apr-02 10:44 
GeneralRe: Deleting a registry key Pin
Albert Pascual25-Apr-02 10:50
sitebuilderAlbert Pascual25-Apr-02 10:50 
GeneralRe: Deleting a registry key Pin
Joaquín M López Muñoz25-Apr-02 10:55
Joaquín M López Muñoz25-Apr-02 10:55 
GeneralRe: Deleting a registry key Pin
dazinith25-Apr-02 11:37
dazinith25-Apr-02 11:37 
GeneralRe: Deleting a registry key Pin
Joaquín M López Muñoz25-Apr-02 11:54
Joaquín M López Muñoz25-Apr-02 11:54 
GeneralRe: Deleting a registry key Pin
Joaquín M López Muñoz25-Apr-02 20:16
Joaquín M López Muñoz25-Apr-02 20:16 
GeneralRe: Deleting a registry key Pin
dazinith26-Apr-02 3:52
dazinith26-Apr-02 3:52 
Generalado Pin
Drawil25-Apr-02 8:05
Drawil25-Apr-02 8:05 
GeneralRe: ado Pin
Mazdak25-Apr-02 9:03
Mazdak25-Apr-02 9:03 
GeneralRe: ado Pin
Philip Patrick25-Apr-02 9:14
professionalPhilip Patrick25-Apr-02 9:14 
GeneralTransfer the data between PropertyPage Pin
Eugene Pustovoyt25-Apr-02 7:51
Eugene Pustovoyt25-Apr-02 7:51 
GeneralRe: Transfer the data between PropertyPage Pin
Joaquín M López Muñoz25-Apr-02 8:32
Joaquín M López Muñoz25-Apr-02 8:32 
GeneralRe: Transfer the data between PropertyPage Pin
Eugene Pustovoyt25-Apr-02 18:55
Eugene Pustovoyt25-Apr-02 18:55 
GeneralRe: Transfer the data between PropertyPage Pin
lucy25-Apr-02 8:49
lucy25-Apr-02 8:49 
GeneralRe: Transfer the data between PropertyPage Pin
Eugene Pustovoyt25-Apr-02 18:34
Eugene Pustovoyt25-Apr-02 18:34 
GeneralVisual Studio .NET Academic version HELP!! Pin
Rickard Andersson2025-Apr-02 7:37
Rickard Andersson2025-Apr-02 7:37 

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.