Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: boost::named_mutex not released after process abort Pin
Chuck O'Toole26-Jan-11 23:42
Chuck O'Toole26-Jan-11 23:42 
QuestionNeed interface index for recvd UDP packets Pin
Dave_25-Jan-11 3:50
Dave_25-Jan-11 3:50 
AnswerRe: Need interface index for recvd UDP packets Pin
HimanshuJoshi25-Jan-11 5:43
HimanshuJoshi25-Jan-11 5:43 
QuestionSet AutoRun fail under win 7 [modified][solved] Pin
yu-jian25-Jan-11 2:57
yu-jian25-Jan-11 2:57 
AnswerRe: Set AutoRun fail under win 7 Pin
Code-o-mat25-Jan-11 3:17
Code-o-mat25-Jan-11 3:17 
AnswerRe: Set AutoRun fail under win 7 Pin
CPallini25-Jan-11 3:20
mveCPallini25-Jan-11 3:20 
AnswerRe: Set AutoRun fail under win 7 Pin
Hans Dietrich25-Jan-11 3:47
mentorHans Dietrich25-Jan-11 3:47 
AnswerRe: Set AutoRun fail under win 7 Pin
Richard MacCutchan25-Jan-11 4:47
mveRichard MacCutchan25-Jan-11 4:47 
yu-jian wrote:
Is it the Priviledge problem?


No it's the coding problem. In both of your Open() statements you are checking if the return code is not equal to ERROR_SUCCESS, and proceeding if it is not. These tests should be reversed so you only proceed if the return is equal to ERROR_SUCCESS. Also you should capture the returned value as it will help you to diagnose what has gone wrong.
I must get a clever new signature for 2011.

GeneralRe: Set AutoRun fail under win 7 Pin
yu-jian25-Jan-11 6:28
yu-jian25-Jan-11 6:28 
AnswerRe: Set AutoRun fail under win 7 Pin
yu-jian25-Jan-11 6:13
yu-jian25-Jan-11 6:13 
Questionshadow copy, deep copy and bitwie copy by constructor Pin
aesthetic.crazy25-Jan-11 2:26
aesthetic.crazy25-Jan-11 2:26 
AnswerRe: shadow copy, deep copy and bitwie copy by constructor Pin
CPallini25-Jan-11 2:44
mveCPallini25-Jan-11 2:44 
AnswerRe: shadow copy, deep copy and bitwie copy by constructor Pin
T210225-Jan-11 2:59
T210225-Jan-11 2:59 
AnswerRe: shadow copy, deep copy and bitwie copy by constructor Pin
Nemanja Trifunovic25-Jan-11 5:03
Nemanja Trifunovic25-Jan-11 5:03 
AnswerRe: shadow copy, deep copy and bitwie copy by constructor Pin
Andrew Brock25-Jan-11 5:11
Andrew Brock25-Jan-11 5:11 
QuestionDialogBar in SDI in MDI applcatiion Pin
Anu_Bala24-Jan-11 22:37
Anu_Bala24-Jan-11 22:37 
QuestionHow can i delete History and Cookies Directory in Internet explorer? Pin
yogish29324-Jan-11 19:18
yogish29324-Jan-11 19:18 
AnswerRe: How can i delete History and Cookies Directory in Internet explorer? Pin
KingsGambit24-Jan-11 20:18
KingsGambit24-Jan-11 20:18 
AnswerRe: How can i delete History and Cookies Directory in Internet explorer? Pin
T210224-Jan-11 21:59
T210224-Jan-11 21:59 
QuestionBreak point not hit error in VS2005 Pin
Jia10024-Jan-11 17:28
Jia10024-Jan-11 17:28 
AnswerRe: Break point not hit error in VC2005 Pin
T210224-Jan-11 17:51
T210224-Jan-11 17:51 
GeneralMessage Removed Pin
24-Jan-11 19:09
Jia10024-Jan-11 19:09 
GeneralRe: Break point not hit error in VC2005 Pin
T210224-Jan-11 19:50
T210224-Jan-11 19:50 
GeneralMessage Removed Pin
24-Jan-11 20:07
Jia10024-Jan-11 20:07 
GeneralRe: Break point not hit error in VS2005 Pin
T210224-Jan-11 22:51
T210224-Jan-11 22:51 

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.