Click here to Skip to main content
16,016,204 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralChanging resolution Pin
Hans Ruck23-May-02 23:21
Hans Ruck23-May-02 23:21 
GeneralRe: Changing resolution Pin
Matt Gullett24-May-02 0:40
Matt Gullett24-May-02 0:40 
GeneralChange background colour of CEdit Ctrl Pin
Nnamdi Onyeyiri23-May-02 23:16
Nnamdi Onyeyiri23-May-02 23:16 
GeneralRe: Change background colour of CEdit Ctrl Pin
Nish Nishant23-May-02 23:33
sitebuilderNish Nishant23-May-02 23:33 
GeneralRe: Change background colour of CEdit Ctrl Pin
Nnamdi Onyeyiri24-May-02 0:34
Nnamdi Onyeyiri24-May-02 0:34 
GeneralSample code snippet Pin
Nish Nishant23-May-02 23:36
sitebuilderNish Nishant23-May-02 23:36 
GeneralRe: Sample code snippet Pin
Nnamdi Onyeyiri23-May-02 23:48
Nnamdi Onyeyiri23-May-02 23:48 
GeneralCompiling error when access registry table. Pin
George Ma23-May-02 22:52
George Ma23-May-02 22:52 
Hi, pals!

I copy some codes from a book dealing with registry table.
But I meet with the following errors when compiling. The compiler
says, CRegKey is an undeclared identifier. Here is the following
codes, how to fix the trouble?


CRegKey reg;
char KeyName[]="Software\\Microsoft\\Internet Explorer\\Extensions\\{06926B30-424E-4f1c-8EE3-543CD96573DC}";
TCHAR PathName[MAX_PATH];
TCHAR IconPathName[MAX_PATH];
TCHAR HotIconPathName[MAX_PATH];
GetModuleFileName(0,PathName,MAX_PATH);
strcpy(IconPathName,PathName);
strcpy(HotIconPathName,PathName);
strcat(HotIconPathName,",131");
strcat(IconPathName,",129");
reg.Create(HKEY_LOCAL_MACHINE,KeyName);
reg.SetValue("{1FBA04EE-3024-11D2-8F1F-0000F87ABD16}","CLSID");
reg.SetValue("Yes","Default Visible");
reg.SetValue("VC Knowledge Base","ButtonText");
reg.SetValue(IconPathName,"Icon");
reg.SetValue(HotIconPathName,"HotIcon");
reg.SetValue("http://www.vckbase.com/","Exec");

Best regards,
George Ma
GeneralRe: Compiling error when access registry table. Pin
Nish Nishant23-May-02 23:04
sitebuilderNish Nishant23-May-02 23:04 
GeneralRe: Compiling error when access registry table. Pin
George Ma23-May-02 23:28
George Ma23-May-02 23:28 
GeneralRe: Compiling error when access registry table. Pin
Nish Nishant23-May-02 23:33
sitebuilderNish Nishant23-May-02 23:33 
GeneralRe: Compiling error when access registry table. Pin
George Ma23-May-02 23:42
George Ma23-May-02 23:42 
GeneralRe: Compiling error when access registry table. Pin
Nish Nishant23-May-02 23:48
sitebuilderNish Nishant23-May-02 23:48 
GeneralLock NT WorkStation Pin
23-May-02 22:58
suss23-May-02 22:58 
GeneralRe: Lock NT WorkStation Pin
Mike Nordell24-May-02 8:34
Mike Nordell24-May-02 8:34 
GeneralRe: Lock NT WorkStation Pin
26-May-02 18:02
suss26-May-02 18:02 
QuestionWhere can I get MSI installer? Pin
George Ma23-May-02 22:45
George Ma23-May-02 22:45 
AnswerRe: Where can I get MSI installer? Pin
Nish Nishant23-May-02 23:05
sitebuilderNish Nishant23-May-02 23:05 
GeneralRe: Where can I get MSI installer? Pin
George Ma23-May-02 23:36
George Ma23-May-02 23:36 
GeneralMeeting troubles when using DeskBands. Pin
George Ma23-May-02 22:36
George Ma23-May-02 22:36 
GeneralRe: Meeting troubles when using DeskBands. Pin
Nish Nishant23-May-02 22:41
sitebuilderNish Nishant23-May-02 22:41 
GeneralRe: Meeting troubles when using DeskBands. Pin
George Ma23-May-02 22:48
George Ma23-May-02 22:48 
GeneralRe: Meeting troubles when using DeskBands. Pin
Nish Nishant23-May-02 23:03
sitebuilderNish Nishant23-May-02 23:03 
GeneralRe: Meeting troubles when using DeskBands. Pin
George Ma23-May-02 23:18
George Ma23-May-02 23:18 
GeneralRe: Meeting troubles when using DeskBands. Pin
Nish Nishant23-May-02 23:24
sitebuilderNish Nishant23-May-02 23:24 

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.