Click here to Skip to main content
16,008,750 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHelp About Scroll Message of ListView Pin
Leadream16-Jul-01 2:52
Leadream16-Jul-01 2:52 
GeneralHelp About Scroll Message of ListView Pin
Leadream16-Jul-01 2:52
Leadream16-Jul-01 2:52 
Generaldeleting cookies Pin
16-Jul-01 1:21
suss16-Jul-01 1:21 
GeneralBest way to learn MFC Pin
16-Jul-01 1:00
suss16-Jul-01 1:00 
GeneralRe: Best way to learn MFC Pin
Christian Graus16-Jul-01 1:07
protectorChristian Graus16-Jul-01 1:07 
GeneralRich Edit Control Pin
AJ12316-Jul-01 0:49
AJ12316-Jul-01 0:49 
GeneralHRESULT Pin
AJ12316-Jul-01 0:47
AJ12316-Jul-01 0:47 
GeneralRe: HRESULT Pin
Christian Graus16-Jul-01 0:58
protectorChristian Graus16-Jul-01 0:58 
An HRESULT is the only return permitted by COM, excepting a sleight of hand that I believe does not occur under C++, but VB and other languages for people easily confused. It is a complex structure, but in the first instance you can check using two macros, SUCCEDED() and FAILED, as in

HRESULT hr = pISomeINterface->SomeMethod();

if (FAILED(hr))
{
AfxMessageBox("You've stuffed it again !!!!");
return false;
}

Where did the function come from, and why do you want to change the return value ?



Christian

#include "std_disclaimer.h"

People who love sausage and respect the law should never watch either one being made.

The things that come to those who wait are usually the things left by those who got there first.

GeneralRe: HRESULT Pin
16-Jul-01 7:12
suss16-Jul-01 7:12 
GeneralRe: HRESULT Pin
Christian Graus16-Jul-01 13:12
protectorChristian Graus16-Jul-01 13:12 
GeneralRe: HRESULT Pin
16-Jul-01 14:48
suss16-Jul-01 14:48 
GeneralRe: HRESULT Pin
16-Jul-01 7:10
suss16-Jul-01 7:10 
GeneralRe: HRESULT Pin
Ernest Laurentin16-Jul-01 8:00
Ernest Laurentin16-Jul-01 8:00 
GeneralRe: HRESULT Pin
AJ12316-Jul-01 9:29
AJ12316-Jul-01 9:29 
QuestionHow to add Hours to a DATE? Pin
16-Jul-01 0:11
suss16-Jul-01 0:11 
AnswerRe: How to add Hours to a DATE? Pin
Anders Molin16-Jul-01 0:32
professionalAnders Molin16-Jul-01 0:32 
GeneralRe: How to add Hours to a DATE? Pin
16-Jul-01 1:08
suss16-Jul-01 1:08 
GeneralRe: How to add Hours to a DATE? Pin
Anders Molin16-Jul-01 1:24
professionalAnders Molin16-Jul-01 1:24 
AnswerRe: How to add Hours to a DATE? Pin
16-Jul-01 5:08
suss16-Jul-01 5:08 
AnswerRe: How to add Hours to a DATE? Pin
Ben Burnett16-Jul-01 5:53
Ben Burnett16-Jul-01 5:53 
Generalfriend class ain't my friend Pin
D.D. de Kerf15-Jul-01 23:41
D.D. de Kerf15-Jul-01 23:41 
GeneralRe: friend class ain't my friend Pin
D.D. de Kerf16-Jul-01 0:38
D.D. de Kerf16-Jul-01 0:38 
GeneralRe: friend class ain't my friend Pin
Joaquín M López Muñoz16-Jul-01 0:45
Joaquín M López Muñoz16-Jul-01 0:45 
GeneralRe: friend class ain't my friend Pin
Joaquín M López Muñoz16-Jul-01 0:41
Joaquín M López Muñoz16-Jul-01 0:41 
GeneralRe: friend class ain't my friend Pin
D.D. de Kerf16-Jul-01 1:24
D.D. de Kerf16-Jul-01 1:24 

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.