CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    NH, USA
    Posts
    47

    Run-time Error 91 w/ vb client, c++ server

    I have a C++ server exe and I'm trying to make a vb app that talks to it. I have globally (or at least in the scope of my form) defined the server object, and now I'm trying to call a method. When the method is called, I get the error:

    Run-time error '91': Object variable or With block variable not set.

    How do I solve this?




  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Run-time Error 91 w/ vb client, c++ server

    You say that you have a 'Globally' defined object pointing to your server. I bet that you haven't instantiated that object, ie.


    '
    set yourglobalobject = new YourCPlusPlusServer.ExposedObject
    '




    You'll need to put some error handling in your routine (program ?) to track down the error though, but I'd imagine that this is where the problem lies.

    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

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