Click here to Skip to main content
15,902,862 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Minimize to sys tray when someone tries to close the dialog? Pin
User 66589-Aug-03 8:25
User 66589-Aug-03 8:25 
GeneralEncrypting and decrypting objects Pin
Vassilis Papoulidis9-Aug-03 6:51
Vassilis Papoulidis9-Aug-03 6:51 
GeneralRe: Encrypting and decrypting objects Pin
Michael Dunn9-Aug-03 7:49
sitebuilderMichael Dunn9-Aug-03 7:49 
QuestionDocking toolbars / windows without mfc? Pin
gri9-Aug-03 5:05
gri9-Aug-03 5:05 
Generalvideo stream Pin
mr pier9-Aug-03 3:34
mr pier9-Aug-03 3:34 
Generaltrouble in ATL Pin
novachen9-Aug-03 3:07
novachen9-Aug-03 3:07 
GeneralRe: trouble in ATL Pin
Michael Dunn9-Aug-03 6:31
sitebuilderMichael Dunn9-Aug-03 6:31 
GeneralRe: trouble in ATL Pin
novachen9-Aug-03 17:07
novachen9-Aug-03 17:07 
In fact, in my test project, Apple can be a class without any method or property.
I just don't know how to create a simple object with COM interface in another object's method inside COM DLL.

the idl of apple is
interface IApple : IDispatch{
};

and idl of banana is
interface IBanana : IDispatch{
[id(1), helpstring("GetApple")] HRESULT GetApple([out,retval] IApple** apple);
};

And i try to implement the GetApple as
#include "stdafx.h"
#include "Banana.h"
#include "Apple.h"

// CBanana


STDMETHODIMP CBanana::GetApple(IApple** apple)
{
*apple = new CApple();
return S_OK;
}

VC7 said the CApple is abstract class, so can't be created.
Any idea?
GeneralRe: trouble in ATL Pin
Michael Dunn9-Aug-03 17:22
sitebuilderMichael Dunn9-Aug-03 17:22 
GeneralRe: trouble in ATL Pin
novachen9-Aug-03 22:33
novachen9-Aug-03 22:33 
GeneralProblem in RiechEdit..!! Pin
boonshajayan9-Aug-03 1:37
boonshajayan9-Aug-03 1:37 
QuestionHow to delete my temporary file? Pin
HansonDavid9-Aug-03 1:00
HansonDavid9-Aug-03 1:00 
AnswerRe: How to delete my temporary file? Pin
HansonDavid9-Aug-03 1:16
HansonDavid9-Aug-03 1:16 
GeneralRe: How to delete my temporary file? Pin
igor196011-Aug-03 19:24
igor196011-Aug-03 19:24 
AnswerRe: How to delete my temporary file? Pin
boonshajayan9-Aug-03 1:32
boonshajayan9-Aug-03 1:32 
AnswerRe: How to delete my temporary file? Pin
PJ Arends9-Aug-03 5:38
professionalPJ Arends9-Aug-03 5:38 
GeneralRe: How to delete my temporary file? Pin
HansonDavid10-Aug-03 0:32
HansonDavid10-Aug-03 0:32 
QuestionWhat is different from DLL, Static Lib, Dynamic Lib Pin
HansonDavid9-Aug-03 0:49
HansonDavid9-Aug-03 0:49 
AnswerRe: What is different from DLL, Static Lib, Dynamic Lib Pin
valikac9-Aug-03 4:23
valikac9-Aug-03 4:23 
GeneralRe: What is different from DLL, Static Lib, Dynamic Lib Pin
HansonDavid10-Aug-03 0:28
HansonDavid10-Aug-03 0:28 
GeneralRe: What is different from DLL, Static Lib, Dynamic Lib Pin
valikac10-Aug-03 6:25
valikac10-Aug-03 6:25 
GeneralRe: What is different from DLL, Static Lib, Dynamic Lib Pin
HansonDavid10-Aug-03 18:24
HansonDavid10-Aug-03 18:24 
GeneralHandling Events Pin
cberam9-Aug-03 0:17
cberam9-Aug-03 0:17 
GeneralRe: Handling Events Pin
Giles9-Aug-03 1:23
Giles9-Aug-03 1:23 
GeneralRe: Handling Events Pin
cberam11-Aug-03 2:00
cberam11-Aug-03 2:00 

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.