dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: codecheater

Search: Search took 0.34 seconds.

  1. Re: ATL COM DLL - include an object from another ATL COM DLL

    Indeed that works! Not sure what went wrong earlier: either a syntax error or, eventually, I was still referencing the VBA macro to a side-project that was truly setup incompletely. Based on your...
  2. Re: ATL COM DLL - include an object from another ATL COM DLL

    Here is an update, I suceeded as follows:
    1. I created an ATL Class of type IDispatch* to the Main Interface reflected in the Second.idl file:


    interface IMain : IDispatch{
    HRESULT...
  3. Re: ATL COM DLL - include an object from another ATL COM DLL

    Let me try:
    In the First project, Member is a Coclass and FirstMember is an (sub)object of the Test object. In First's idl file FirstMember is declared within the ITest Interface:


    interface...
  4. Re: ATL COM DLL - include an object from another ATL COM DLL

    Hi Igor,
    your attachment is a big help, I appreciate. As far as I saw, it illustrates how to interface the "first"'s Say42() method from out of "second". Both "first" and "second" are separate DLLs....
  5. Re: ATL COM DLL - include an object from another ATL COM DLL

    Hello Igor,
    thank you for your help! So I do this in team.h:


    private:
    CComPtr<IMember> m_pLeader;

    and in Finalconstruct I do this, after importing the "other.tlb":
  6. ATL COM DLL - include an object from another ATL COM DLL

    Hello team,
    this refers to an ATL COM DLL project. I can successfully create a class hierarchy of objects, ie. say, one class is the TEAM, which then holds other objects, say, a leader and a...
  7. Replies
    5
    Views
    1,059

    Re: question regrading "parent"

    any ideas are still welcome..
    R
  8. Replies
    5
    Views
    1,059

    Re: question regrading "parent"

    Hello Arjay,
    so here I am now with a working console application that imports the team's typelibrary. The code goes like this:

    #include <atlhost.h>
    #include "stdafx.h"
    #import "COMTeam.tlb"...
  9. Replies
    5
    Views
    1,059

    Re: question regrading "parent"

    Hello Arjay,
    I will follow your suggestion and get back with the status. But it won't be before monday. I appreciate your assistance!
    Best Regards,
    Ralph
  10. Replies
    5
    Views
    1,059

    question regrading "parent"

    I have a working ATL COM project and it allows to instantiate objects. In my case, this object represents a Team. One of the team's properties is its Name. Eg.

    MyTeam->Name="Winners"

    The COM...
  11. Replies
    3
    Views
    1,062

    Re: Object Viewer / Tree-View

    that's a statement I can work with. Thanks for commenting.
    Best Regards!
    R
  12. Replies
    3
    Views
    1,062

    Object Viewer / Tree-View

    I would like to see the values of all properties of an instanciated object at runtime in an instance tree / tree view. Similar to what we get in the watch-window of VB or VC++ during a Debug session....
  13. Replies
    12
    Views
    1,512

    Re: Can a COM+ Component contain a Class ?

    ok, some further reading gets me to doing the following lines, say, to access the first item of the collection:


    void CBusinessUnit::GetDevCol(IDeveloperCollection* pDevs, long& Cnt)
    {
    ...
  14. Replies
    12
    Views
    1,512

    Re: Can a COM+ Component contain a Class ?

    Hi Igor,
    I appreciate you took a look at this. I understand your approach but unfortunately I am not skilled enough to make it happen. In case you have access to Richard Grime's book and in case you...
  15. Replies
    12
    Views
    1,512

    Re: Can a COM+ Component contain a Class ?

    I finally succeeded in implementing the code for the DeveloperCollection Object in "Beginning ATL3 COM". I refer to Chapter 9, page 410. Using VBA in Excel, I can now create a collection of Objects....
  16. Replies
    12
    Views
    1,512

    Re: Can a COM+ Component contain a Class ?

    Excellent - thanks a lot for suggesting a book title. As you figured from my questions I am new to C++. With so many things to catch up with, finding a starting point for facing the issue looks very...
  17. Replies
    12
    Views
    1,512

    Re: Can a COM+ Component contain a Class ?

    I start to get an idea. To doublecheck, are you saying that at the end of the day, in Excel I will not be able to write:

    Dim MyBird as Bird
    MyBird.Wings.Length_of_Wings=42
    ...
  18. Replies
    12
    Views
    1,512

    Re: Can a COM+ Component contain a Class ?

    Hi Arjay, thanks for getting back.
    But I still do not see how I can make the WINGS become a subclass of the com+ component BIRD ?
    It may be asking for too much but without an example or...
  19. Replies
    12
    Views
    1,512

    Re: Can a COM+ Component contain a Class ?

    Hi Arjan,
    this sounds promising. May I ask for more guidance?

    a) In the quoted sample they created a Bird com+ component. The METHOD fly was implemented through:

    [id(1), helpstring("method...
  20. Replies
    12
    Views
    1,512

    Can a COM+ Component contain a Class ?

    I refer to a Codeguru article:
    "How to Write a COM+ Component"
    http://www.codeguru.com/cpp/com-tech/complus/general/article.php/c16639

    My question is:
    The article illustrates how to create a...
  21. Replies
    4
    Views
    771

    Re: Vector in a DLL

    Paul, I really appreciate your comments yesterday. I also realize that due to my limited c++ skills I may not be capable of keeping up a constructive dialogue. Therefore, below, I am now rather...
  22. Replies
    4
    Views
    771

    Re: Vector in a DLL

    Hello Paul,

    your concerns about using a vector sound convincing to me. I did not see those points before. Now, I realize that my original approach would mean trouble on the future road.

    So you...
  23. Replies
    4
    Views
    771

    Re: Vector in a DLL

    here comes the project. It produces a "Debug Assertion failed" error
  24. Replies
    4
    Views
    771

    Vector in a DLL

    Hi there! I want to create a DLL for later use in an application.

    The DLL must contain a vector.

    (my ultimate goal is to create multiple instances of an object-class. Say: AllTeams>team1,team2,...
Results 1 to 24 of 24


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)