Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Graphics in vc++ Pin
kk.tvm7-May-06 22:25
kk.tvm7-May-06 22:25 
QuestionHow to change the default registry root Pin
Sarvan AL7-May-06 21:14
Sarvan AL7-May-06 21:14 
AnswerRe: How to change the default registry root Pin
Nibu babu thomas7-May-06 21:18
Nibu babu thomas7-May-06 21:18 
GeneralRe: How to change the default registry root Pin
Sarvan AL7-May-06 21:31
Sarvan AL7-May-06 21:31 
GeneralRe: How to change the default registry root Pin
Michael Dunn7-May-06 21:35
sitebuilderMichael Dunn7-May-06 21:35 
GeneralRe: How to change the default registry root Pin
Nibu babu thomas7-May-06 21:37
Nibu babu thomas7-May-06 21:37 
GeneralRe: How to change the default registry root Pin
Sarvan AL7-May-06 23:11
Sarvan AL7-May-06 23:11 
GeneralRe: How to change the default registry root Pin
Nibu babu thomas7-May-06 23:19
Nibu babu thomas7-May-06 23:19 
The root is hard coded. So it will be fixed. One option is to override the GetAppRegistryKey function of CWinApp. The root key is hard coded here. So overriding it and returning a valid key (i.e. your key) will help.

Note: From here on this will be the default key for the application.

The function signature is as follows:

HKEY GetAppRegistryKey();


This is the function that returns the valid key to the application. Only problem being that it's not a virtual function. Frown | :( So if you start using it from a derived class casted to a base class it won't work.

So calls like AfxGetApp()->WriteProfileString(...) won't work as it will call CWinApp implementation. Cast it to appropriate class and use it.


Nibu thomas
Software Developer

Faqs by Michael dunn

GeneralRe: How to change the default registry root Pin
Sarvan AL8-May-06 0:08
Sarvan AL8-May-06 0:08 
GeneralRe: How to change the default registry root Pin
Nibu babu thomas8-May-06 0:15
Nibu babu thomas8-May-06 0:15 
GeneralRe: How to change the default registry root Pin
Sarvan AL8-May-06 0:58
Sarvan AL8-May-06 0:58 
GeneralRe: How to change the default registry root Pin
Nibu babu thomas8-May-06 1:03
Nibu babu thomas8-May-06 1:03 
AnswerRe: How to change the default registry root Pin
Ganesh_T7-May-06 22:13
Ganesh_T7-May-06 22:13 
QuestionSet msflexgrid cells WordWrap Pin
zeus_master7-May-06 20:55
zeus_master7-May-06 20:55 
AnswerRe: Set msflexgrid cells WordWrap Pin
zeus_master7-May-06 22:01
zeus_master7-May-06 22:01 
GeneralRe: Set msflexgrid cells WordWrap Pin
Nibu babu thomas7-May-06 22:12
Nibu babu thomas7-May-06 22:12 
GeneralRe: Set msflexgrid cells WordWrap Pin
zeus_master7-May-06 23:35
zeus_master7-May-06 23:35 
QuestionAdding Items ti List control Pin
parichaybp7-May-06 20:26
parichaybp7-May-06 20:26 
AnswerRe: Adding Items ti List control Pin
voorugonda prashanth7-May-06 20:44
voorugonda prashanth7-May-06 20:44 
GeneralRe: Adding Items ti List control Pin
parichaybp7-May-06 20:50
parichaybp7-May-06 20:50 
GeneralRe: Adding Items ti List control Pin
voorugonda prashanth7-May-06 23:37
voorugonda prashanth7-May-06 23:37 
GeneralRe: Adding Items ti List control Pin
parichaybp7-May-06 23:39
parichaybp7-May-06 23:39 
GeneralRe: Adding Items ti List control Pin
voorugonda prashanth7-May-06 23:43
voorugonda prashanth7-May-06 23:43 
AnswerRe: Adding Items ti List control Pin
Hamid_RT7-May-06 20:46
Hamid_RT7-May-06 20:46 
GeneralRe: Adding Items ti List control Pin
parichaybp7-May-06 20:48
parichaybp7-May-06 20:48 

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.