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

Thread: Automation

  1. #1
    Join Date
    Apr 1999
    Posts
    3

    Automation

    I created an automation server using VC++6.0(NT4.0). The Server's ProgID is "testserver.document". I use VB6.0 code as client to test server. When VB CreateObject("testserver.document") is used, it will create the object, but if I start the server and use VB GetObject(, "testserver.document") function to get a reference of server object, it will always fail.
    Does anyone know what is going on?

    Thanks


  2. #2
    Join Date
    Apr 1999
    Posts
    11

    Re: Automation

    The problem is you are not registering your object with the ROT. Use RegisterActiveObject. Your VB automation controller is not seeing your object.


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