Click here to Skip to main content
16,017,069 members
Home / Discussions / COM
   

COM

 
GeneralRe: Help...stuck on error MIDL2020 : error generating type library : LayOut failed : IVSSItemOld Pin
Stephane Rodriguez.7-May-03 20:47
Stephane Rodriguez.7-May-03 20:47 
GeneralRe: Help...stuck on error MIDL2020 : error generating type library : LayOut failed : IVSSItemOld Pin
RGTx8-May-03 10:09
RGTx8-May-03 10:09 
GeneralRe: Help...stuck on error MIDL2020 : error generating type library : LayOut failed : IVSSItemOld Pin
Vi27-May-03 22:52
Vi27-May-03 22:52 
GeneralRe: Help...stuck on error MIDL2020 : error generating type library : LayOut failed : IVSSItemOld Pin
RGTx8-May-03 10:10
RGTx8-May-03 10:10 
GeneralCD Burning Pin
TekProfessional7-May-03 13:30
TekProfessional7-May-03 13:30 
GeneralRe: CD Burning Pin
Michael Dunn7-May-03 15:12
sitebuilderMichael Dunn7-May-03 15:12 
GeneralAPI/Control -> AuthenTec FingerLogic USB Scanner Pin
Kramins7-May-03 10:35
Kramins7-May-03 10:35 
GeneralEmbedding word documents in OLE Container Pin
rajandpayal4-May-03 17:52
rajandpayal4-May-03 17:52 
Hi All

I have a Active X container application which implements the following
interfaces


IDataObject
IDispatch
IOleContainer
IOleInPlaceActiveObject
IOleInPlaceObject
IOleItemContainer
IOleObject
IOleWindow

among others . I have got this info from OLEVIEW..

The source code for this container application is not under my control. I
just have the .exe.. The internals are also hidden. I have only

the required header files..

Now my requirement is to come up with a ActiveX control (a simple dialog
with 2 buttons controls).

The click event of one of these button controls should embed a word
document/excel document in the container....

Now I am not able to make this work....

I was just wondering that with the interfaces the container exe supports,
whether it's at all possible to do such a thing.. Is it necessary for the
container app to implement IOleDocument. It's not doing that. I got this
info through OleView...

If not then how should I approach.

I am trying to do the following way. I have this code in OnCreate function
of my Active X controll...


IOleClientSite* pCSite = GetClientSite();

IDispatch *ptr = NULL;

//pCSite-QueryInterface(&ptr);

//IOleObject *pObject;
//pCSite-QueryInterface(&pObject);

IOleContainer* pOleContainer = NULL;
pCSite-GetContainer(&pOleContainer);

IOleInPlaceActiveObject *ptr1 = NULL;

pOleContainer-QueryInterface(&ptr);

ptr-QueryInterface(&ptr1);

IOleObject* ptr2 = NULL;

ptr1-QueryInterface(&ptr2);

IMoniker *pMon;

CLSID clsid;

CLSIDFromProgID(L"Word.Application",&clsid);

CreateClassMoniker(clsid,&pMon);

ptr2-SetMoniker(OLEWHICHMK_CONTAINER, pMon);

MSG msg;

CWnd* parent;

parent = GetParent();

m_parentWnd = parent-m_hWnd;

parent-GetClientRect(&(m_aClientRect));

pSite-DoVerb(OLEIVERB_INPLACEACTIVATE,
&msg,m_CSite,0,m_parentWnd,&m_aClientRect);


I have come up with code with my own intuition. I am not very sure whether
I have understood the functionality of SetMoniker properly..

Any suggestions will be of great help..

Regards

Rajdeep


Rajdeep
GeneralPleas help me with IConnectionPoint::Advise() Pin
faberge3-May-03 2:01
faberge3-May-03 2:01 
QuestionAdd toolbar to IE? Pin
Jim Howard30-Apr-03 8:50
Jim Howard30-Apr-03 8:50 
AnswerRe: Add toolbar to IE? Pin
J. Dunlap3-May-03 8:09
J. Dunlap3-May-03 8:09 
GeneralGetActiveObject fails with IE Pin
rdautel30-Apr-03 5:15
rdautel30-Apr-03 5:15 
GeneralRe: GetActiveObject fails with IE Pin
Stephane Rodriguez.3-May-03 19:54
Stephane Rodriguez.3-May-03 19:54 
GeneralCO_E_SERVER_EXEC_FAILURE Pin
Jamie Hale29-Apr-03 5:07
Jamie Hale29-Apr-03 5:07 
GeneralError reading key Pin
GWENJi29-Apr-03 4:09
GWENJi29-Apr-03 4:09 
GeneralGet [source] interface DISPID (id) Pin
Abebe28-Apr-03 22:47
Abebe28-Apr-03 22:47 
GeneralRe: Get [source] interface DISPID (id) Pin
Abebe29-Apr-03 1:30
Abebe29-Apr-03 1:30 
QuestionWhats the use for DECLARE_DISPATCH_MAP and DECLARE_OLECREATE_EX?? Pin
safee ullah28-Apr-03 22:35
safee ullah28-Apr-03 22:35 
GeneralCOM Voodoo Pin
vlvl28-Apr-03 21:06
vlvl28-Apr-03 21:06 
GeneralRe: COM Voodoo Pin
safee ullah29-Apr-03 0:56
safee ullah29-Apr-03 0:56 
GeneralRe: COM Voodoo Pin
Stephane Rodriguez.7-May-03 20:49
Stephane Rodriguez.7-May-03 20:49 
QuestionADO events biased to COM memory model? Pin
Chopper28-Apr-03 9:31
Chopper28-Apr-03 9:31 
GeneralCOM interop to Outlook -- BeforeFolderSwitch Pin
rkiesler27-Apr-03 3:57
rkiesler27-Apr-03 3:57 
GeneralRe: COM interop to Outlook -- BeforeFolderSwitch Pin
Stephane Rodriguez.7-May-03 20:52
Stephane Rodriguez.7-May-03 20:52 
GeneralRe: COM interop to Outlook -- BeforeFolderSwitch Pin
rkiesler9-May-03 5:32
rkiesler9-May-03 5:32 

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.