Results 1 to 6 of 6

Thread: COM Confusion. Please help me with some answers.

  1. #1

    Thread Starter
    Addicted Member SidCMC's Avatar
    Join Date
    Jan 2008
    Location
    Mumbai, India
    Posts
    166

    Question COM Confusion. Please help me with some answers.


    Please help me with COM concepts. Following is the matter taken
    from MSDN(double quoted) :-

    "Referring to an object implementing an interface means that the object uses code that implements each method of the interface and provides COM binary-compliant pointers to those functions to the COM library. COM then makes those functions available to any client who asks for a pointer to the interface, whether the client is inside or outside of the process that implements those functions."
    Here are some of my questions ::

    1)Does the object implementing the interface belong to the class which
    contains the interface ?

    2) What is this theory that states pointers to functions being stored
    in COM libraries.

    3) Let us consider the above points to be true. Now if an object
    belonging to some other process wants to use our COM object.
    How does this object store the function pointers contained
    in our library.

    It has all got messed up in my head. Would you please throw some light
    on this?

  2. #2

    Thread Starter
    Addicted Member SidCMC's Avatar
    Join Date
    Jan 2008
    Location
    Mumbai, India
    Posts
    166

    Question Re: COM Confusion. Please help me with some answers.

    Please help me with the above question.
    It is a bit theoritical but would certainly clarify
    many things...
    Thanks in advance.

  3. #3
    New Member
    Join Date
    Jan 2008
    Posts
    4

    Re: COM Confusion. Please help me with some answers.

    hi,

    Let me share what I am working on.Hope this will help you.
    I have asp webapplication.That uses the com components.
    It reads the excel file.Using public function readexcel().I have to call the class and add the reference to it in vs2003. Supose I have class aExl .I create an object of it and all the avilable functions are listed in it .

    So this way I am using it.We have multiple classes and multiple functions inside it.

    Hope this understanding helps you.

    regards

  4. #4

    Thread Starter
    Addicted Member SidCMC's Avatar
    Join Date
    Jan 2008
    Location
    Mumbai, India
    Posts
    166

    Re: COM Confusion. Please help me with some answers.

    Thanks Sumit,
    But the problem I am facing right now is as follows ::
    When I create a .NET classlibrary and try to reference it
    in VB 6.0 which is COM based, I can reference the .dll file
    successfully but there are no functions and members which
    I have defined in the original class library.
    It just shows up as an emply class. Why does that happen?
    Regards,
    Sid.
    THE BEST WAY TO THANK A HELPFUL POST IS TO RATE IT!!!!
    Take up one idea. Make that one idea your life - think of it, dream of it, live on that idea. Let the brain, muscles, nerves, every part of your body, be full of that idea, and just leave every other idea alone.

  5. #5
    New Member
    Join Date
    Jan 2008
    Posts
    4

    Re: COM Confusion. Please help me with some answers.

    I don't have much time at present .But can you please go through the link
    Hope it will helps.
    http://msdn2.microsoft.com/En-US/library/ms973802.aspx
    http://www.codeproject.com/dotnet/cominterop.asp

  6. #6

    Thread Starter
    Addicted Member SidCMC's Avatar
    Join Date
    Jan 2008
    Location
    Mumbai, India
    Posts
    166

    Re: COM Confusion. Please help me with some answers.

    Ok .. I will try.
    THE BEST WAY TO THANK A HELPFUL POST IS TO RATE IT!!!!
    Take up one idea. Make that one idea your life - think of it, dream of it, live on that idea. Let the brain, muscles, nerves, every part of your body, be full of that idea, and just leave every other idea alone.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width