Click here to Skip to main content
15,922,325 members
Home / Discussions / COM
   

COM

 
GeneralRe: What does this code do? Pin
Nick Parker5-Apr-02 10:02
protectorNick Parker5-Apr-02 10:02 
GeneralRe: What does this code do? Pin
Michael Dunn5-Apr-02 16:20
sitebuilderMichael Dunn5-Apr-02 16:20 
QuestionWhat does this code do? Pin
Gerald Schwab1-Apr-02 16:52
Gerald Schwab1-Apr-02 16:52 
AnswerRe: What does this code do? Pin
czer4-Apr-02 3:05
czer4-Apr-02 3:05 
GeneralCComBSTR objects Pin
Madmaximus1-Apr-02 10:40
Madmaximus1-Apr-02 10:40 
GeneralRe: CComBSTR objects Pin
Michael Dunn1-Apr-02 17:04
sitebuilderMichael Dunn1-Apr-02 17:04 
GeneralRe: CComBSTR objects Pin
Madmaximus2-Apr-02 1:54
Madmaximus2-Apr-02 1:54 
GeneralATL Control Containment problem Pin
31-Mar-02 7:57
suss31-Mar-02 7:57 
I'm trying to build a library similar to the common dialog controls library. It works, mostly. I have a class CHostWindow:

class ATL_NO_VTABLE CHostWindow :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CHostWindow, &CLSID_HostWindow>,
public IDispatchImpl<IHostWindow, &IID_IHostWindow, &LIBID_BTS_DLGHELPERLib>,
public CWindowImpl<CHostWindow>


In my Win32 application, I invoke HostWindow, pass to it an interface to the control I want to host, and the window works as you'd expect.

if (SUCCEEDED(Result = iHost.CreateInstance(CLSID_HostWindow)))
{
iHost->Host((PDWORD)&CLSID_DlgFieldProperties, (IUnknown**)&iFieldProps);
iHost->Show(SW_SHOW);
}


This is fine when the control contains basic window elements like pushbuttons and edit boxes but when the composite control contains another control (like the list control in the Resource Editor), the app crashes with an access violation, and according to the stack trace the program is recursively running through the composite control's property list until it runs out of stack space.

I've spent too much time trying to figure this out and now need help! I'm using CAxWindow (memory leak and all) to do the hosting. Can someone explain to me what I might be missing, or point me to some relevant, working, code?

Thanks
Matt

QuestionBuild a CA ??? Pin
dlhson31-Mar-02 3:48
dlhson31-Mar-02 3:48 
AnswerRe: Build a CA ??? Pin
Jon Newman31-Mar-02 4:04
Jon Newman31-Mar-02 4:04 
GeneralRe: Build a CA ??? Pin
dlhson31-Mar-02 4:10
dlhson31-Mar-02 4:10 
GeneralRe: Build a CA ??? Pin
Jon Newman31-Mar-02 4:12
Jon Newman31-Mar-02 4:12 
Generalactivex control problem Pin
29-Mar-02 15:22
suss29-Mar-02 15:22 
GeneralNon-client area messages Pin
29-Mar-02 13:15
suss29-Mar-02 13:15 
QuestionHow can i interact an applet with COM? Pin
t800t829-Mar-02 6:50
t800t829-Mar-02 6:50 
GeneralAdd interface to existing class Pin
29-Mar-02 5:21
suss29-Mar-02 5:21 
GeneralRe: Add interface to existing class Pin
Mazdak29-Mar-02 6:45
Mazdak29-Mar-02 6:45 
GeneralRe: Add interface to existing class Pin
31-Mar-02 22:58
suss31-Mar-02 22:58 
GeneralBinary Behavior Pin
Gerosa28-Mar-02 6:30
Gerosa28-Mar-02 6:30 
GeneralExcel Automation Pin
moredip28-Mar-02 6:29
moredip28-Mar-02 6:29 
GeneralNT Service DCOM server always return 0x80070424 Pin
Krouer28-Mar-02 4:50
Krouer28-Mar-02 4:50 
GeneralRe: NT Service DCOM server always return 0x80070424 Pin
Krouer1-Apr-02 21:59
Krouer1-Apr-02 21:59 
GeneralRe: NT Service DCOM server always return 0x80070424 Pin
Krouer2-Apr-02 1:56
Krouer2-Apr-02 1:56 
GeneralPassing a IDispatch reference between two COM+ Components Pin
Rohit28-Mar-02 3:57
Rohit28-Mar-02 3:57 
GeneralRe: Passing a IDispatch reference between two COM+ Components Pin
soptest29-Mar-02 14:20
soptest29-Mar-02 14:20 

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.