Click here to Skip to main content
15,902,938 members
Home / Discussions / COM
   

COM

 
AnswerRe: Fire event from thread on ATL COM server (VC2003)... Pin
Roger Stoltz8-Nov-07 2:51
Roger Stoltz8-Nov-07 2:51 
GeneralRe: Fire event from thread on ATL COM server (VC2003)... Pin
achainard8-Nov-07 4:40
achainard8-Nov-07 4:40 
GeneralRe: Fire event from thread on ATL COM server (VC2003)... Pin
Roger Stoltz8-Nov-07 5:13
Roger Stoltz8-Nov-07 5:13 
GeneralRe: Fire event from thread on ATL COM server (VC2003)... [modified] Pin
achainard8-Nov-07 6:49
achainard8-Nov-07 6:49 
Question.NET c# HowTo overload a COM class/interface ? Pin
FriendOfAsherah6-Nov-07 4:55
FriendOfAsherah6-Nov-07 4:55 
AnswerRe: .NET c# HowTo overload a COM class/interface ? Pin
Nathan Holt at EMOM9-Nov-07 5:44
Nathan Holt at EMOM9-Nov-07 5:44 
GeneralRe: .NET c# HowTo overload a COM class/interface ? Pin
FriendOfAsherah9-Nov-07 9:05
FriendOfAsherah9-Nov-07 9:05 
GeneralRe: .NET c# HowTo overload a COM class/interface ? Pin
Nathan Holt at EMOM9-Nov-07 11:27
Nathan Holt at EMOM9-Nov-07 11:27 
FriendOfAsherah wrote:
Yes, but away from defining about 40 properties,functions get/set I dont know how to write them becouse:

The Interface class shows only the definitions like:
[DispId(0)]
string _Name { get; set; }

The CoClass similar like:
[DispId(0)]
public virtual string _Name { get; set; }

Which code to write into the class which inherits from the Interface ???
public class CMyClass : ICOMClass
{
public virtual string _Name { get { ??? }; set{ ??? }; }
....
I cannot leave the get/set empty but I dont have any parameters
Or how can I put something like a DispatchId and a dispatch pointer there ??


My guess is it would be:

public class CMyClass : IComClass
{
    private IComClass m_Inner;

    public virtual string _Name
    {
        get {return m_Inner._Name;}
        set{m_Inner._Name = value}
    }

...


and the constructor would set m_Inner to a new instance of ComClass, or use one provided to it.

Nathan
GeneralRe: .NET c# HowTo overload a COM class/interface ? Pin
FriendOfAsherah9-Nov-07 18:57
FriendOfAsherah9-Nov-07 18:57 
QuestionCOM event firing to multiple targets Pin
eero_p5-Nov-07 23:34
eero_p5-Nov-07 23:34 
AnswerRe: COM event firing to multiple targets Pin
Hubert Mayer9-Nov-07 3:00
Hubert Mayer9-Nov-07 3:00 
GeneralRe: COM event firing to multiple targets Pin
Rajasekharan Vengalil10-Nov-07 13:01
Rajasekharan Vengalil10-Nov-07 13:01 
GeneralRe: COM event firing to multiple targets Pin
eero_p12-Nov-07 20:59
eero_p12-Nov-07 20:59 
Questionwmi ---WBEM_E_INVALID_METHOD_PARAMETERS Pin
Hanks_Compal5-Nov-07 5:31
Hanks_Compal5-Nov-07 5:31 
QuestionREGTLB Pin
hiajay4-Nov-07 22:38
hiajay4-Nov-07 22:38 
AnswerRe: REGTLB Pin
User 2155975-Nov-07 0:18
User 2155975-Nov-07 0:18 
GeneralRe: REGTLB Pin
hiajay5-Nov-07 0:31
hiajay5-Nov-07 0:31 
GeneralRe: REGTLB Pin
User 2155975-Nov-07 0:41
User 2155975-Nov-07 0:41 
QuestionLearning COM Pin
vipin_nvk30-Oct-07 22:54
vipin_nvk30-Oct-07 22:54 
AnswerRe: Learning COM Pin
CPallini30-Oct-07 23:12
mveCPallini30-Oct-07 23:12 
AnswerRe: Learning COM Pin
Hakan Bulut1-Nov-07 5:11
Hakan Bulut1-Nov-07 5:11 
JokeRe: Learning COM Pin
CPallini1-Nov-07 22:06
mveCPallini1-Nov-07 22:06 
GeneralRe: Learning COM Pin
Hakan Bulut1-Nov-07 23:29
Hakan Bulut1-Nov-07 23:29 
GeneralNOT competitive! Pin
CPallini1-Nov-07 23:39
mveCPallini1-Nov-07 23:39 
JokeRe: NOT competitive! [modified] Pin
Hakan Bulut2-Nov-07 8:11
Hakan Bulut2-Nov-07 8:11 

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.