Click here to Skip to main content
16,006,474 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Orphaned mutexes--how to release? Pin
Blake Miller4-Jun-04 14:05
Blake Miller4-Jun-04 14:05 
GeneralRe: Orphaned mutexes--how to release? Pin
dandy727-Jun-04 7:40
dandy727-Jun-04 7:40 
QuestionHow to use CInternetFile::WriteString() Pin
brdavid4-Jun-04 4:13
brdavid4-Jun-04 4:13 
Questionhow to use control in a dialog Pin
laia4-Jun-04 3:20
laia4-Jun-04 3:20 
AnswerRe: how to use control in a dialog Pin
toxcct4-Jun-04 5:54
toxcct4-Jun-04 5:54 
GeneralRe: how to use control in a dialog Pin
laia4-Jun-04 6:15
laia4-Jun-04 6:15 
GeneralSetWindowLong Returns negative Value. Pin
Abhi Lahare4-Jun-04 2:56
Abhi Lahare4-Jun-04 2:56 
GeneralRe: SetWindowLong Returns negative Value. Pin
toxcct4-Jun-04 3:05
toxcct4-Jun-04 3:05 
From the MSDN :

"Return Value
If the function succeeds, the return value is the previous value of the specified 32-bit integer.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
If the previous value of the specified 32-bit integer is zero, and the function succeeds, the return value is zero, but the function does not clear the last error information. This makes it difficult to determine success or failure. To deal with this, you should clear the last error information by calling SetLastError(0) before calling SetWindowLong. Then, function failure will be indicated by a return value of zero and a GetLastError result that is nonzero.
"

so, your call seems to be correct...Big Grin | :-D



TOXCCT >>> GEII power


QuestionHow to get record from a table in Access Pin
yingkou4-Jun-04 1:51
yingkou4-Jun-04 1:51 
GeneralConvert MDI to SDI application Pin
Salvador Dali4-Jun-04 0:52
Salvador Dali4-Jun-04 0:52 
GeneralRe: Convert MDI to SDI application Pin
Johan Rosengren4-Jun-04 3:27
Johan Rosengren4-Jun-04 3:27 
GeneralRe: Convert MDI to SDI application Pin
Salvador Dali4-Jun-04 3:56
Salvador Dali4-Jun-04 3:56 
GeneralRe: Convert MDI to SDI application Pin
Johan Rosengren4-Jun-04 5:07
Johan Rosengren4-Jun-04 5:07 
General[Q] layered image application Pin
Choi Wanho4-Jun-04 0:46
Choi Wanho4-Jun-04 0:46 
GeneralRe: [Q] layered image application Pin
basementman4-Jun-04 6:04
basementman4-Jun-04 6:04 
QuestionHow to use MFC classes in WinAPI app Pin
lapenkov3-Jun-04 23:46
lapenkov3-Jun-04 23:46 
AnswerRe: How to use MFC classes in WinAPI app Pin
toxcct3-Jun-04 23:49
toxcct3-Jun-04 23:49 
AnswerRe: How to use MFC classes in WinAPI app Pin
Diddy3-Jun-04 23:50
Diddy3-Jun-04 23:50 
GeneralRe: How to use MFC classes in WinAPI app Pin
lapenkov4-Jun-04 0:00
lapenkov4-Jun-04 0:00 
GeneralRe: How to use MFC classes in WinAPI app Pin
toxcct4-Jun-04 0:04
toxcct4-Jun-04 0:04 
GeneralRe: How to use MFC classes in WinAPI app Pin
Diddy4-Jun-04 0:05
Diddy4-Jun-04 0:05 
GeneralRe: How to use MFC classes in WinAPI app Pin
John M. Drescher4-Jun-04 5:45
John M. Drescher4-Jun-04 5:45 
GeneralRe: How to use MFC classes in WinAPI app Pin
Rodrigo Pinto Pereira de Souza4-Jun-04 7:21
Rodrigo Pinto Pereira de Souza4-Jun-04 7:21 
GeneralInvalidate() Pin
cruschy3-Jun-04 23:34
cruschy3-Jun-04 23:34 
GeneralRe: Invalidate() Pin
Diddy3-Jun-04 23:43
Diddy3-Jun-04 23: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.