|
Rajesh R Subramanian wrote: On a serious note, see CRegKey[^] and Registry Functions[^]
Are you being facetious?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Why, yes. That was best reply I could give to a lazy person like him.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
|
This is wrapper class but I want a simple win32 API to change the key name
|
|
|
|
|
ASAIK, there is no rename function. You have to delete the existing key and add new one...
|
|
|
|
|
The key also have many subkeys So it is not possible for me to do so, Is there any alternate to rename the same key without deleting.
|
|
|
|
|
Use RegCopyTree to copy the whole registry tree (Key & its Subkeys) to a dummy key and then delete the original tree.Then try creating a new Key(using RegCreateKeyEx ) with "New Name" and add the whole subtree to the "New Name" Key.
Regards,
Rane
|
|
|
|
|
MPTP wrote: The key also have many subkeys So it is not possible for me to do so...
It's certainly possible. You just have to be willing to put forth effort to do it.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
How can I read files datewise from a directory . I used FindFirstFile function,but it is reading files by namewise. Is there any other function which helps to solve the problem, anybody please help me???
haneesh
|
|
|
|
|
Don't know of an API that would do this directly, but here is one approach:
1. Use WIN32_FIND_DATA to get the creation date/time.
2. Maintain a structure of some sort that would store the name and creation date/time of the file.(You can get this by using FindFirstFile/FindNextFile)
3. Sort the structure in any order now based on time/date of file creation.
Hope this helps or you can wait for someone else to answer your query
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hello everyone,
In an ATL project, are there any easier way, i.e. wizard based GUI or something to add an interface?
Currently, I always add a new interface in IDL, then manually add related C++ code, like COM_MAP and coclass declaration. I am always finding some time saving ways.
thanks in advance,
George
|
|
|
|
|
Make sure you can see the "Workspace View" inside the VC++ IDE. You can do this by clicking the "View" menu, then choosing "Workspace". There will be three tabs, click on the "ClassView" tab. You should see "Simple_ATL Classes". Right click on this and choose "New ATL Object" from the popup menu. You will see a window with various options.
The ATL Object Wizard
The default choice (Simple Object) is what we want. Click the next button and you will be in the "ATL Object Wizard Properties" window. In the "Short Name" textbox, enter "IPreferThis".
Hope this is relevant to your query...
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi AnShUmAn,
I always use the wizard before. But it is used for creating a new com component and its exposed interface.
My purpose is, I already have a com component and I want to make the component implements from one more interface. Then how to easily add the code to make the com component implement one more interface in ATL framework.
Any ideas?
regards,
George
|
|
|
|
|
I have developed a software used in engineering calculation fields.In my software,
every funtion is activated by clicking a menu item.Now I have a problem that I don't know how to Execute several tasks simultaneity by clicking differet menu items continuously.
IF you can help me solve this question please message me or post your solution to my
e-mail:toschl@yeah.net.
Thanks for your help sincerely.
|
|
|
|
|
Dont need to show your mail(do you like spam!? )
Do you want to run some actions at same time?
|
|
|
|
|
|
I think you can use of multithreading if you like to use it see these exmpales:
here[^] and here[^].
|
|
|
|
|
you should be reading Multithreading[^]then
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
While you could certainly put each task in its own thread, those threads will only run in parallel if you have more than one processor.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi to all,
any testing tool is available for testing MFC(VC++) application
varun
|
|
|
|
|
Does your program has any bug or leak memory or etc?
|
|
|
|
|
Hi friends,
Since you know, when "Windows + F1" is pressed, Windows-Help dialog will be shown.
I would like to disable this HotKey in my application.
By the way, when "Windows + F1" is pressed, no messages will be sent to my application.
Truely yours.
|
|
|
|
|
You must be override OnHelpInfo(ON_WM_HELPINFO).
modified on Tuesday, September 16, 2008 2:46 AM
|
|
|
|
|
Thanks for your answer, but I did it and nothing happened.
Apparently, this is not a correct answer.
|
|
|
|
|
Why it doesnt work for you while it works ?
ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
void CWinApp::OnHelp()
{
MessageBox(GetFocus(),_T("1"),_T("1"),MB_OK);
}
|
|
|
|