|
If you are that unsure, why not create a few dummy keys and values, and work on deleting those instead?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
To delete those keys is not a problem (im deleting them manually to check another things, like configuration through a *.ini), the dll will always create them, every time I run it.
My problem is that I prefer not to play with the registry just making "dummy" tries and errors, and less in a computer that is not mine.
what I am unsure about is if my code is dangerous for the registry or not.
Because of that I have asked if the code would make a safelly deletion.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Nelek wrote: what I am unsure about is if my code is dangerous for the registry or not.
Because of that I have asked if the code would make a safelly deletion.
Try it and see.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
No errors by compiling but either no results, it opens but doesn't deletes. Any tip?
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Have you stepped through the code to see which method is failing? Why have you not tried:
if (rkMyRegKey.Open(HKEY_LOCAL_MACHINE, "SOFTWARE") == ERROR_SUCCESS)
{
if (rkMyRegKey.RecurseDeleteKey("FOLDER_1") == ERROR_SUCCESS)
...
}
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Because I was searching info before doing more tests. I was now reading:
A set of template classes for working with the registry
By Daniel Andersson
and
Another registry class
By SteveKing
But I will try it.
Seeing what you have writen I guess that I was uncorrectly using the functions. I thought I had to give the path till the last point you don't want to be deleted. And it just is to open to that point and use the delete with the first folder that has to be erased.
I'm checking it in a minute
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Yes, It was because of what I said in the previous message.
I was trying to open the FOLDER_1 to ensure the existance before deleting but if it doesn't exist, the RecurseDeleteKey will make nothing and return a 2 (LONG ERROR_FILE_NOT_FOUND), before I was having 5 (ERROR_ACCESS_DENIED) because I was using a wrong relative path.
Thanks david
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Hello all,
I have made a application by name abc now i want to make it as xyz. How can i rename my workplace.
Can anybody help me in this.
Thanks in advance
|
|
|
|
|
why not simply renaming the output file abc.exe into xyz.exe ?
you can have this into the project settings...
|
|
|
|
|
|
Guys,
My kid brother has asked me to suggest a website that has a decent reference of the standard libraries and their contents that are available to C++.
TBH I could use it myself!
Anyone know of one?
TIA
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
"There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib
|
|
|
|
|
|
y'know, sometimes I could just slap myself...
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
"There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib
|
|
|
|
|
|
Hello,
while reading event Log records, I need to read generated time of Event Log.
If Log Records are generated with Date before than 2038 year then those are getting read properly but for the records having date later than 2038 are not getting read. I am using CTime and Highest Range of CTime is 2038 only.
Use of COleDateTime is not possible.
Please suggest if there is any solution for this.
Abhijeet
|
|
|
|
|
CTime used to be limited as you mentioned - 2038, however (at least with VS2005) that has been modified and now allows dates from 1/1/1970 to 12/31/3000. See MSDN[^] for more info.
Sounds like you need to upgrade since you say you can't use COleDateTime.
Hope that helps.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
Abhijeet Rajput wrote: Use of COleDateTime is not possible.
Why not?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Why you cant use of COleDate?
|
|
|
|
|
can anyone tell how to do job scheduling in vc++
|
|
|
|
|
WTF have you tried so far to achieve this ?
|
|
|
|
|
See
ITask
IScheduledWorkItem
ITaskScheduler
and related interfaces
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
can anybody tell me how to connect ms access with mfc dialog in vc++
thanks in advance.
|
|
|
|
|
what have you tried so far to achieve this ?
|
|
|
|
|
an usual way is to do this via a ODBC connection. Prepare in Access some stored procedures to fetch the needed data.
Learn to use the "Search" Box!!!
Greetings from Germany
|
|
|
|