|
suganforu wrote: and when i press F5 it says, "..path\\release\mypgmname.exe not found"
Does it actually exist?
"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
|
|
|
|
|
suganforu wrote: But when i run my pgm it says, "can't exectute" :
How are you executing it ? And what is the exact error message ?
suganforu wrote: and when i press F5 it says, "..path\\release\mypgmname.exe not found"
What kind of project is it ? A dll ? Or a plain executable ? Again, what is the exact message (with the correct path) ?
|
|
|
|
|
Use "Rebuild All..." in the menu and confirm if asked. Then use another time the "run" button.
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
|
|
|
|
|
the error it shows .... " my file path\\Release\\mypgmname.exe" file not found....
i haven't used "Release file" in my pgm .. is there anything i could change in "project settings" ..? ?
|
|
|
|
|
when i rebulid all the follwing error happens....
" fatal error C1083: Cannot open precompiled header file: 'Release/acs.pch': No such file or directory"
same error in all my ".cpp" files..
|
|
|
|
|
By the way, if it displays two '\' then it means that you did something wrong in the configuration. For the path in the configuration, you should only supply one '\' (you will never have escape sequences in a path).
That is probably your problem.
|
|
|
|
|
@Cédric Moonen
noo that wasn't the problem...
|
|
|
|
|
suganforu wrote: noo that wasn't the problem...
what path did you set (because it still shouldn't show \\ anywhere in a path) ?
|
|
|
|
|
Hi,
one third party DLL that I'm using to configurate and test the connection to a plc is writing some datas into the registry in HKEY_LOCAL_MACHINE\SOFTWARE\FOLDER_1\Folder2\Device0
I want to code the deletion of FOLDER_1, Folder2, Device0 and all the values that are at the end of the path, but only when they exists. I have though using this code (Windows XP, VC++ 6.0 ), but before calling any code about the registry I want to be sure that it is not dangerous for the registry itselfs (it's my first try).
BOOL bDeleted = FALSE;
CRegKey rkMyRegKey;
if (rkMyRegKey.Open (HKEY_LOCAL_MACHINE, "SOFTWARE\\FOLDER_1") == ERROR_SUCCESS)
{ if (rkMyRegKey.RecurseDeleteKey ("SOFTWARE\\FOLDER_1") == ERROR_SUCCESS)
{ rkMyRegKey.Close ();
return MY_MSG_OK;
}
rkMyRegKey.Close ();
}
return MY_MSG_ERROR;
would it work?
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
|
|
|
|
|
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
|
|
|
|