Click here to Skip to main content
15,891,657 members
Home / Discussions / COM
   

COM

 
QuestionReturning an array of a userdefined struct via RPC Pin
Mr.Brainley27-Sep-06 3:59
Mr.Brainley27-Sep-06 3:59 
QuestionStarting COM Pin
Suresh H26-Sep-06 19:25
Suresh H26-Sep-06 19:25 
AnswerRe: Starting COM Pin
User 21559726-Sep-06 20:21
User 21559726-Sep-06 20:21 
GeneralRe: Starting COM Pin
Suresh H26-Sep-06 20:39
Suresh H26-Sep-06 20:39 
AnswerRe: Starting COM Pin
ShilpiP27-Sep-06 23:54
ShilpiP27-Sep-06 23:54 
AnswerRe: Starting COM Pin
Hamid_RT4-Oct-06 19:38
Hamid_RT4-Oct-06 19:38 
AnswerRe: Starting COM Pin
Nisamudheen4-Oct-06 23:11
Nisamudheen4-Oct-06 23:11 
QuestionProblem with Interface creation Pin
Sakthiu25-Sep-06 0:57
Sakthiu25-Sep-06 0:57 
Hi all,

I am writing a COM server program. In that I created a interface "MyIDL". Here is the source.,

import "Unknwn.idl";
//My Interface
[
object,
uuid(E0985393-CD6E-4a1f-8737-C250238FC8FC),
helpstring("My Interface"),
pointer_default(unique)
]
interface IX : IUnknown
{
HRESULT Function([out]char *str)=0;
};

When I compile I am getting these errors.
1] error MIDL2311 : statements outside library block are illegal in mktyplib compatability mode : [ Interface 'IX' ]

2] error MIDL2096 : duplicated attribute : [helpstring] [ Interface 'IX' ]

3] error MIDL2096 : duplicated attribute : [uuid] [ Interface 'IX' ]

How can resolve this? I know these questions might be silly. But please anybody help me. So that I could learn COM Components.

QuestionRe: Problem with Interface creation Pin
prasad_som25-Sep-06 1:07
prasad_som25-Sep-06 1:07 
AnswerRe: Problem with Interface creation Pin
Sakthiu25-Sep-06 1:09
Sakthiu25-Sep-06 1:09 
GeneralRe: Problem with Interface creation Pin
prasad_som25-Sep-06 1:15
prasad_som25-Sep-06 1:15 
QuestionProblem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
kschi24-Sep-06 23:23
kschi24-Sep-06 23:23 
AnswerRe: Problem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
Zodiacon25-Sep-06 6:54
Zodiacon25-Sep-06 6:54 
GeneralRe: Problem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
kschi25-Sep-06 20:44
kschi25-Sep-06 20:44 
GeneralRe: Problem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
Zodiacon25-Sep-06 21:24
Zodiacon25-Sep-06 21:24 
GeneralRe: Problem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
kschi26-Sep-06 2:06
kschi26-Sep-06 2:06 
GeneralRe: Problem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
Zodiacon26-Sep-06 2:39
Zodiacon26-Sep-06 2:39 
GeneralRe: Problem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
kschi26-Sep-06 3:19
kschi26-Sep-06 3:19 
QuestionIntercepting file events. Pin
Geron24-Sep-06 21:28
Geron24-Sep-06 21:28 
AnswerRe: Intercepting file events. Pin
User 21559724-Sep-06 21:42
User 21559724-Sep-06 21:42 
GeneralRe: Intercepting file events. Pin
Geron24-Sep-06 22:17
Geron24-Sep-06 22:17 
AnswerRe: Intercepting file events. Pin
User 21559724-Sep-06 22:48
User 21559724-Sep-06 22:48 
QuestionHow do i create COM Interface ? Pin
Sakthiu21-Sep-06 18:53
Sakthiu21-Sep-06 18:53 
AnswerRe: How do i create COM Interface ? Pin
Stephen Hewitt21-Sep-06 18:59
Stephen Hewitt21-Sep-06 18:59 
GeneralRe: How do i create COM Interface ? Pin
ShilpiP28-Sep-06 0:00
ShilpiP28-Sep-06 0: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.