Click here to Skip to main content
15,904,416 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: multitask progress and process ??? Pin
Mughi26-Sep-04 19:22
Mughi26-Sep-04 19:22 
GeneralAdding a menu to dialog bar. Pin
ledallam23-Sep-04 18:43
ledallam23-Sep-04 18:43 
GeneralRe: Adding a menu to dialog bar. Pin
BAIJUMAX24-Sep-04 0:47
professionalBAIJUMAX24-Sep-04 0:47 
GeneralRe: Adding a menu to dialog bar. Pin
ledallam24-Sep-04 2:17
ledallam24-Sep-04 2:17 
GeneralHelp! for wmstub.lib Pin
Member 64430923-Sep-04 18:13
Member 64430923-Sep-04 18:13 
QuestionCan you help me ! Pin
TQN23-Sep-04 18:09
TQN23-Sep-04 18:09 
GeneralSyntax Error Pin
tramimaus23-Sep-04 17:48
tramimaus23-Sep-04 17:48 
GeneralRe: Syntax Error Pin
Ravi Bhavnani23-Sep-04 18:00
professionalRavi Bhavnani23-Sep-04 18:00 
You're missing the argument to static_cast. Btw, the code looks very suspect. Why do you have a nested if when all you really need to do (imho) is:
if ((riid == IID_IUnknown) ||
    (riid == IID_IX) ||
    (riid == IID_IY))
   *ppvObject = static_cast(this);
else {
   ppvObject = NULL;
   hr = E_NOINTERFACE;
   ...
}
/ravi

My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com

GeneralRe: Syntax Error Pin
Guoguor23-Sep-04 22:36
Guoguor23-Sep-04 22:36 
Questiondefault child window size in vc++ mdi application??? Pin
vc-programmer-23-Sep-04 17:32
vc-programmer-23-Sep-04 17:32 
GeneralGetDefaultPrinter Pin
sixiang23-Sep-04 16:57
sixiang23-Sep-04 16:57 
Generalie side bar want to add a tree Pin
NotoriousBIG_PJ23-Sep-04 16:26
NotoriousBIG_PJ23-Sep-04 16:26 
GeneralThe introduction in detail ! Pin
Guoguor23-Sep-04 16:07
Guoguor23-Sep-04 16:07 
GeneralRe: The introduction in detail ! Pin
Roger Wright23-Sep-04 20:41
professionalRoger Wright23-Sep-04 20:41 
GeneralBeginner Windows C++ GUI question Pin
Indrawati23-Sep-04 15:58
Indrawati23-Sep-04 15:58 
GeneralRe: Beginner Windows C++ GUI question Pin
Christian Graus23-Sep-04 16:42
protectorChristian Graus23-Sep-04 16:42 
GeneralRe: Beginner Windows C++ GUI question Pin
Ravi Bhavnani23-Sep-04 18:04
professionalRavi Bhavnani23-Sep-04 18:04 
GeneralTo Michael Dunn Pin
Guoguor23-Sep-04 15:50
Guoguor23-Sep-04 15:50 
GeneralRe: To Michael Dunn Pin
Tim Smith23-Sep-04 16:01
Tim Smith23-Sep-04 16:01 
GeneralRe: To Michael Dunn Pin
Guoguor23-Sep-04 16:09
Guoguor23-Sep-04 16:09 
GeneralRe: To Michael Dunn Pin
Bob Stanneveld24-Sep-04 0:08
Bob Stanneveld24-Sep-04 0:08 
GeneralRe: To Michael Dunn Pin
Antony M Kancidrowski24-Sep-04 3:38
Antony M Kancidrowski24-Sep-04 3:38 
QuestionWhere and when to initialize them? Pin
Guoguor23-Sep-04 15:09
Guoguor23-Sep-04 15:09 
AnswerRe: Where and when to initialize them? Pin
Michael Dunn23-Sep-04 15:15
sitebuilderMichael Dunn23-Sep-04 15:15 
GeneralHelp writing a function Pin
NietzscheDisciple23-Sep-04 12:11
NietzscheDisciple23-Sep-04 12:11 

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.