problem with atlbase
-
hello, well I have the following problem...in my MFC project I am using atlbase.h, because I am working with CRegKey class. On my computer the .exe works just fine, but on a friend's of mine, it doesn't...and I created this project as a statically linked project... this is the error :wtf: after the first error, this is what appears
-
hello, well I have the following problem...in my MFC project I am using atlbase.h, because I am working with CRegKey class. On my computer the .exe works just fine, but on a friend's of mine, it doesn't...and I created this project as a statically linked project... this is the error :wtf: after the first error, this is what appears
-
hello, well I have the following problem...in my MFC project I am using atlbase.h, because I am working with CRegKey class. On my computer the .exe works just fine, but on a friend's of mine, it doesn't...and I created this project as a statically linked project... this is the error :wtf: after the first error, this is what appears
Junyor wrote: this is the error These type of error occcur, when there is problem of permission,have you done proper error handlling for registry code. like.
CRegKey key;
if(key.Open(HKEY_LOCAL_MACHINE,"Software\\cp")==ERROR_SUCCESS)
{
................
key.Close();
}else
{
MessageBox("Faliure in opening registry");
}"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
maybe he is not allowed to enter the registry or the key is not found where you are looking for it!?
-
Junyor wrote: this is the error These type of error occcur, when there is problem of permission,have you done proper error handlling for registry code. like.
CRegKey key;
if(key.Open(HKEY_LOCAL_MACHINE,"Software\\cp")==ERROR_SUCCESS)
{
................
key.Close();
}else
{
MessageBox("Faliure in opening registry");
}"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
well I tried this and still, on my computer works, on a friend's computer works, but on 2 other friend's of mine it shows the same error If you have a dream, follow it, because it might just become true. :)
Junyor wrote: but on 2 other friend's of mine it shows the same error I believe, You are not checking CRegKey State before Writing or reading data. I too using CregKey from Long time, and this type is error usually arise due to permission or Security
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
well I tried this and still, on my computer works, on a friend's computer works, but on 2 other friend's of mine it shows the same error If you have a dream, follow it, because it might just become true. :)
That ASSERT is only invoked in atlbase.h when you try to delete a subkey or value, close a subkey or set a value in a subkey where the subkey is still null. In other words somewhere you tried to create or open a subkey which failed and you ignored the failure and proceded to try to set, delete or close that subkey. There is no other explanation. IF you are really checking the success of opening the subkey before setting the value then you are probably still trying to close or delete the invalid key somewhere later. Steve T