Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Greek in CEdit control Pin
ThatsAlok1-Sep-06 0:46
ThatsAlok1-Sep-06 0:46 
Questionicon files!! Pin
harsha_123431-Aug-06 20:34
harsha_123431-Aug-06 20:34 
QuestionRe: icon files!! Pin
Programm3r31-Aug-06 20:37
Programm3r31-Aug-06 20:37 
AnswerRe: icon files!! Pin
PJ Arends31-Aug-06 21:12
professionalPJ Arends31-Aug-06 21:12 
AnswerRe: icon files!! Pin
Hamid_RT31-Aug-06 22:16
Hamid_RT31-Aug-06 22:16 
AnswerRe: icon files!! Pin
MayankT1-Sep-06 1:10
MayankT1-Sep-06 1:10 
QuestionRegistry Entries Pin
Programm3r31-Aug-06 20:24
Programm3r31-Aug-06 20:24 
AnswerRe: Registry Entries Pin
Stephen Hewitt31-Aug-06 20:46
Stephen Hewitt31-Aug-06 20:46 
Using MFC? Straight Win32?

Here's an example using straight Win32 calls. As you can see using a wrapper class as provided by MFC of ATL (and no doubt many others) would make things a lot simpler.

--------------------

// Create or open the key.
HKEY hKey;
LONG res = RegCreateKeyEx(
HKEY_CURRENT_USER,
_T("Software\\My Company\\My Product"),
0,
NULL,
REG_OPTION_NON_VOLATILE,
KEY_ALL_ACCESS,
NULL,
&hKey,
NULL
);
if (res==ERROR_SUCCESS)
{
// Now write a value in the key we opened/created.
DWORD Value = 5; // Value to write to registry.
res = RegSetValueEx(
hKey,
_T("My value"),
0,
REG_DWORD,
reinterpret_cast<const BYTE*>(&Value),
sizeof(Value)
);

// Close the key.
RegCloseKey(hKey);
}


Steve
GeneralRe: Registry Entries Pin
Programm3r31-Aug-06 20:47
Programm3r31-Aug-06 20:47 
GeneralRe: Registry Entries Pin
ThatsAlok1-Sep-06 0:47
ThatsAlok1-Sep-06 0:47 
AnswerRe: Registry Entries Pin
Hamid_RT31-Aug-06 22:23
Hamid_RT31-Aug-06 22:23 
GeneralRe: Registry Entries Pin
Programm3r31-Aug-06 22:33
Programm3r31-Aug-06 22:33 
QuestionSDI appplication without border(Frame)? Pin
kiranin31-Aug-06 18:47
kiranin31-Aug-06 18:47 
AnswerRe: SDI appplication without border(Frame)? Pin
prasad_som31-Aug-06 22:36
prasad_som31-Aug-06 22:36 
GeneralRe: SDI appplication without border(Frame)? Pin
kiranin31-Aug-06 22:45
kiranin31-Aug-06 22:45 
GeneralRe: SDI appplication without border(Frame)? Pin
prasad_som31-Aug-06 22:52
prasad_som31-Aug-06 22:52 
GeneralRe: SDI appplication without border(Frame)? Pin
kiranin1-Sep-06 1:11
kiranin1-Sep-06 1:11 
GeneralRe: SDI appplication without border(Frame)? Pin
prasad_som1-Sep-06 1:26
prasad_som1-Sep-06 1:26 
GeneralRe: SDI appplication without border(Frame)? Pin
kiranin1-Sep-06 1:41
kiranin1-Sep-06 1:41 
GeneralRe: SDI appplication without border(Frame)? Pin
prasad_som1-Sep-06 1:49
prasad_som1-Sep-06 1:49 
GeneralRe: SDI appplication without border(Frame)? Pin
kiranin1-Sep-06 2:43
kiranin1-Sep-06 2:43 
GeneralRe: SDI appplication without border(Frame)? Pin
prasad_som1-Sep-06 2:52
prasad_som1-Sep-06 2:52 
GeneralRe: SDI appplication without border(Frame)? Pin
kiranin1-Sep-06 2:46
kiranin1-Sep-06 2:46 
GeneralRe: SDI appplication without border(Frame)? Pin
prasad_som1-Sep-06 2:50
prasad_som1-Sep-06 2:50 
QuestionHow can I read from a dxf file format Pin
georgekjolly31-Aug-06 18:06
georgekjolly31-Aug-06 18:06 

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.