CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: COM

  1. #1
    Join Date
    Apr 1999
    Posts
    7

    COM

    I have a MDI Application with Use Interfaces. I want to put the User Interfaces in COM components. My mainframe is in the exe acting as a client for these components. I want to make a call to the COM components through my mainframe in the exe and to create a view, but it gives me an assertion failure.
    Can anybody help me out?
    Thanks...


  2. #2
    Join Date
    Apr 1999
    Posts
    31

    Re: COM

    Your COM is DLL(in-porcess) or EXE(out-of-process) ? You need to marshal (if they are not the same
    process). Give more details about your problem.


  3. #3
    Guest

    Re: COM

    for kanwardeep:

    The COM component is an In-Process component. As I wrote in my earlier mail I have the mainframe class in the exe. I want my view from the component to hook onto the Appframework(Mainframe ) of my client.
    What happens is. In trying to create the view it goes and fetches the main window handle using the App pointer in the MFC lib calls if the parent window is not defined.
    But when I tried to pass the mainwindow pointer to the COM object , then deep inside the MFC calls it does a type checking to see whether this mainwindow is the same as of the same thread as the COM component and it fails.


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

Featured