Click here to Skip to main content
15,886,873 members
Home / Discussions / COM
   

COM

 
AnswerRe: Please help. Problem with including .idl file Pin
Steve S19-Jul-06 21:59
Steve S19-Jul-06 21:59 
GeneralRe: Please help. Problem with including .idl file Pin
Kiran Pinjala19-Jul-06 23:47
Kiran Pinjala19-Jul-06 23:47 
Questionhow to use activeX inside ActiveX [modified] Pin
Chetan Sheladiya19-Jul-06 19:38
professionalChetan Sheladiya19-Jul-06 19:38 
AnswerRe: how to use activeX inside ActiveX Pin
Prakash Nadar1-Aug-06 1:18
Prakash Nadar1-Aug-06 1:18 
Questionhow to login Pin
With_problem19-Jul-06 17:48
With_problem19-Jul-06 17:48 
Questionstarting problem with Netmeeting sdk program Pin
Kiran Pinjala19-Jul-06 2:28
Kiran Pinjala19-Jul-06 2:28 
Questionstarting problem with Netmeeting sdk program Pin
Kiran Pinjala19-Jul-06 2:43
Kiran Pinjala19-Jul-06 2:43 
Questiona way around constructor arguments Pin
nikhil_ag198518-Jul-06 21:07
nikhil_ag198518-Jul-06 21:07 
Hi All,
My requirements needs me to pass an instance of a class xyz in a third party component(OCX) to my dll in ATL COM. how do i go about this?

We all know that passing parameters in the constructors of the exposed atl classes/objects is literally impossible unless i write my own atl library(oops sorry bad joke!).

That means the only option i have is to pass this third party component
instance to a method, i hope this is possible, even if it is, how do i define
the 'xyz' data type in the idl file?
<br />
import "oaidl.idl";<br />
import "ocidl.idl";	<br />
	[<br />
		object,<br />
		uuid(AB375A74-76CB-4BBC-BFED-141791262B38),<br />
		dual,<br />
		helpstring("IExposedATLClass Interface"),<br />
		pointer_default(unique),<br />
		oleautomation<br />
	]<br />
	interface IExposedATLClass : IDispatch<br />
	{<br />
               [id(1), helpstring("method GetInstance")] HRESULT GetInstance([in] Ixyz *instance);<br />
	};<br />
<br />
[<br />
	uuid(3C9EB277-EC91-4E42-8CD7-34F918490B69),<br />
	version(1.0),<br />
	helpstring("MYDLL 1.0 Type Library")<br />
]<br />
library MYDLLLib<br />
{<br />
	importlib("stdole32.tlb");<br />
	importlib("stdole2.tlb");<br />
	importlib("thirdpartycomponent.tlb");<br />
<br />
	<br />
	[<br />
		uuid(4DC3999A-797D-4F9A-8955-812E87E4B6D0),<br />
		helpstring("ExposedATLClass Class")<br />
	]<br />
	coclass ExposedATLClass<br />
	{<br />
		[default] interface IExposedATLClass;<br />
	};<br />
};<br />

the compiler doesnt recognize the xyz data type...

i import the component(OCX) in my stdafx.h file, my idl file imports the midl compiler generated .tlb file in my library namespace, after all this when i try importing the component's idl file in my idl
<br />
import "oaidl.idl";<br />
import "ocidl.idl";	<br />
import "thirdpartycomponent.idl";<br />

the compiler reports ambiguous symbols.

what should i do?
I'd really appreciate any kind of help/suggestion here.
nikhil
QuestionProblem in debugging COM+ DLL Pin
Findingnimmo18-Jul-06 20:37
Findingnimmo18-Jul-06 20:37 
QuestionDifficulty in creating object of IMAPI Pin
kanduripavan18-Jul-06 18:48
kanduripavan18-Jul-06 18:48 
AnswerRe: Difficulty in creating object of IMAPI Pin
Steve S18-Jul-06 21:48
Steve S18-Jul-06 21:48 
GeneralRe: Difficulty in creating object of IMAPI Pin
kanduripavan19-Jul-06 20:22
kanduripavan19-Jul-06 20:22 
QuestionPING using WMI Pin
abhiramsss18-Jul-06 18:18
abhiramsss18-Jul-06 18:18 
Questiongreetings Pin
PatrickDGreat18-Jul-06 16:06
PatrickDGreat18-Jul-06 16:06 
AnswerRe: greetings Pin
RRRB20-Jul-06 0:25
RRRB20-Jul-06 0:25 
QuestionBrowser Helper Object (BHO) not loading on some machines Pin
alianyn18-Jul-06 3:49
alianyn18-Jul-06 3:49 
QuestionActivex control and IE Pin
sunita ramesh18-Jul-06 1:39
sunita ramesh18-Jul-06 1:39 
AnswerRe: Activex control and IE Pin
Mike Dimmick18-Jul-06 6:35
Mike Dimmick18-Jul-06 6:35 
QuestionGood online tutorial please Pin
Kiran Pinjala17-Jul-06 18:45
Kiran Pinjala17-Jul-06 18:45 
AnswerRe: Good online tutorial please Pin
Steve S18-Jul-06 1:26
Steve S18-Jul-06 1:26 
GeneralRe: Good online tutorial please Pin
Kiran Pinjala19-Jul-06 2:35
Kiran Pinjala19-Jul-06 2:35 
Questionhelp Pin
With_problem17-Jul-06 16:48
With_problem17-Jul-06 16:48 
QuestionCompiling IDL with MIDL Pin
Mark F.17-Jul-06 3:38
Mark F.17-Jul-06 3:38 
AnswerRe: Compiling IDL with MIDL Pin
Steve S17-Jul-06 4:58
Steve S17-Jul-06 4:58 
GeneralRe: Compiling IDL with MIDL Pin
Mark F.17-Jul-06 5:07
Mark F.17-Jul-06 5:07 

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.