Click here to Skip to main content
15,912,204 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSelf destructing exe Pin
17-Feb-01 18:18
suss17-Feb-01 18:18 
GeneralRe: Self destructing exe Pin
l a u r e n18-Feb-01 4:53
l a u r e n18-Feb-01 4:53 
GeneralRe: Self destructing exe Pin
19-Feb-01 9:03
suss19-Feb-01 9:03 
GeneralRe: clown chips Pin
l a u r e n19-Feb-01 11:04
l a u r e n19-Feb-01 11:04 
GeneralRe: Self destructing exe Pin
Jason De Arte19-Feb-01 8:23
Jason De Arte19-Feb-01 8:23 
GeneralRe: Self destructing exe Pin
19-Feb-01 9:08
suss19-Feb-01 9:08 
GeneralSelf destructing exe Pin
17-Feb-01 18:15
suss17-Feb-01 18:15 
GeneralHRESULT and SetLastError Pin
PJ Arends17-Feb-01 16:09
professionalPJ Arends17-Feb-01 16:09 
Is there a function or macro to convert an HRESULT to a win32 error code that can be set with SetLastError()? or can I just use the HRESULT value as the error code?

BOOL CMyWrapperClass::WrapperFunction()
{
HRESULT hr = IInterface.Function();
if (hr == S_OK) return TRUE;
DWORD error_code = Some_conversion_function(hr);
SetLastError(error_code);
return FALSE;
}
Confused | :confused:
GeneralRe: HRESULT and SetLastError Pin
Ancient Dragon17-Feb-01 17:26
Ancient Dragon17-Feb-01 17:26 
GeneralRe: HRESULT and SetLastError Pin
Tim Deveaux18-Feb-01 4:12
Tim Deveaux18-Feb-01 4:12 
GeneralRe: HRESULT and SetLastError Pin
PJ Arends19-Feb-01 6:41
professionalPJ Arends19-Feb-01 6:41 
GeneralRe: HRESULT and SetLastError Pin
Tim Deveaux19-Feb-01 13:10
Tim Deveaux19-Feb-01 13:10 
QuestionHow does..... Pin
17-Feb-01 12:47
suss17-Feb-01 12:47 
AnswerRe: How does..... Pin
Tim Deveaux17-Feb-01 13:15
Tim Deveaux17-Feb-01 13:15 
QuestionEnumerate Toolbars? Pin
17-Feb-01 11:01
suss17-Feb-01 11:01 
AnswerRe: Enumerate Toolbars? Pin
Tim Deveaux17-Feb-01 13:29
Tim Deveaux17-Feb-01 13:29 
Generalcomparison code not working ... Pin
17-Feb-01 6:56
suss17-Feb-01 6:56 
GeneralRe: comparison code not working ... Pin
Anders Molin17-Feb-01 7:43
professionalAnders Molin17-Feb-01 7:43 
GeneralRe: comparison code not working ... Pin
17-Feb-01 13:04
suss17-Feb-01 13:04 
GeneralRe: comparison code not working ... Pin
17-Feb-01 13:04
suss17-Feb-01 13:04 
QuestionHow can I get the host's name and it's workgroup name by it's ip address? under windows2k Pin
17-Feb-01 6:29
suss17-Feb-01 6:29 
GeneralExit Application Function - HELP! Pin
James Bird17-Feb-01 5:49
James Bird17-Feb-01 5:49 
GeneralRe: Exit Application Function - HELP! Pin
l a u r e n17-Feb-01 5:58
l a u r e n17-Feb-01 5:58 
GeneralRe: Exit Application Function - HELP! Pin
Tim Deveaux17-Feb-01 13:50
Tim Deveaux17-Feb-01 13:50 
GeneralActiveX ArdioButton Control Pin
17-Feb-01 0:15
suss17-Feb-01 0:15 

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.