Click here to Skip to main content
15,895,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A thread problem Pin
iayd20-Jun-07 4:12
iayd20-Jun-07 4:12 
GeneralRe: A thread problem Pin
JudyL_MD21-Jun-07 2:32
JudyL_MD21-Jun-07 2:32 
AnswerRe: A thread problem Pin
Roger Stoltz20-Jun-07 4:04
Roger Stoltz20-Jun-07 4:04 
QuestionVisualization and Modelling Tools Pin
od@ananzi.co.za20-Jun-07 2:11
od@ananzi.co.za20-Jun-07 2:11 
AnswerRe: Visualization and Modelling Tools Pin
led mike20-Jun-07 5:16
led mike20-Jun-07 5:16 
GeneralRe: Visualization and Modelling Tools Pin
Matthew Faithfull20-Jun-07 23:41
Matthew Faithfull20-Jun-07 23:41 
GeneralRe: Visualization and Modelling Tools Pin
od@ananzi.co.za21-Jun-07 2:27
od@ananzi.co.za21-Jun-07 2:27 
QuestionProblem in deleting the windows registery key and it's sub key Pin
Neeraj Sinha20-Jun-07 2:06
Neeraj Sinha20-Jun-07 2:06 
Hi I have again some problem regarding windows registery.
I am trying to delete a key and it's sub keys and all
the corressponding values.
Here is the code which I am using:

HKEY m_htKey;
LONG res;
const char* lpSubNsKey = "SOFTWARE\\N K Product";
res = RegOpenKeyEx(HKEY_CURRENT_USER ,lpSubNsKey,0,KEY_ALL_ACCESS,&m_htKey);

if (res == ERROR_SUCCESS)
{
//res = RegDeleteKey(m_htKey,lpSubNsKey);
LONG status = SHDeleteKey( m_htKey,lpSubNsKey);
RegCloseKey(m_htKey);
}

In the above code,the RegOpenKeyEx() is returning 0 means registery is getting
opened but the SHDeleteKey() is returning 2 i.e. it's error code message is "The system cannot find the file specified".
But the key name is available there in the registery.

So,can you please suggest me what could be the problem?

With Regards

Neeraj Sinha

AnswerRe: Problem in deleting the windows registery key and it's sub key Pin
Mike Dimmick20-Jun-07 2:40
Mike Dimmick20-Jun-07 2:40 
GeneralRe: Problem in deleting the windows registery key and it's sub key Pin
Neeraj Sinha20-Jun-07 3:33
Neeraj Sinha20-Jun-07 3:33 
Questionveryurgent : perfect tool to convert coff format lib to omf format Pin
rjkg20-Jun-07 2:00
rjkg20-Jun-07 2:00 
AnswerRe: veryurgent : perfect tool to convert coff format lib to omf format Pin
toxcct20-Jun-07 2:06
toxcct20-Jun-07 2:06 
GeneralRe: veryurgent : perfect tool to convert coff format lib to omf format Pin
rjkg20-Jun-07 2:20
rjkg20-Jun-07 2:20 
AnswerRe: veryurgent : perfect tool to convert coff format lib to omf format Pin
Mark Salsbery20-Jun-07 5:40
Mark Salsbery20-Jun-07 5:40 
JokeRe: veryurgent : perfect tool to convert coff format lib to omf format Pin
Hamid_RT20-Jun-07 9:24
Hamid_RT20-Jun-07 9:24 
GeneralRe: veryurgent : perfect tool to convert coff format lib to omf format Pin
Mark Salsbery20-Jun-07 9:26
Mark Salsbery20-Jun-07 9:26 
QuestionCSocket stoping in PumpMessage (please help) Pin
tomitron20-Jun-07 1:55
tomitron20-Jun-07 1:55 
AnswerRe: CSocket stoping in PumpMessage (please help) Pin
Matthew Faithfull20-Jun-07 2:53
Matthew Faithfull20-Jun-07 2:53 
AnswerRe: CSocket stoping in PumpMessage (please help) Pin
Mike Dimmick20-Jun-07 3:44
Mike Dimmick20-Jun-07 3:44 
AnswerRe: CSocket stoping in PumpMessage (please help) Pin
Roger Stoltz20-Jun-07 4:29
Roger Stoltz20-Jun-07 4:29 
GeneralRe: CSocket stoping in PumpMessage (please help) Pin
led mike20-Jun-07 5:28
led mike20-Jun-07 5:28 
GeneralRe: CSocket stoping in PumpMessage (please help) Pin
Roger Stoltz20-Jun-07 6:21
Roger Stoltz20-Jun-07 6:21 
GeneralRe: CSocket stoping in PumpMessage (please help) Pin
led mike20-Jun-07 6:32
led mike20-Jun-07 6:32 
GeneralRe: CSocket stoping in PumpMessage (please help) Pin
Roger Stoltz20-Jun-07 6:57
Roger Stoltz20-Jun-07 6:57 
GeneralRe: CSocket stoping in PumpMessage (please help) Pin
led mike20-Jun-07 8:43
led mike20-Jun-07 8:43 

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.