Click to See Complete Forum and Search --> : Run-time Error 91 w/ vb client, c++ server


Brad Younie
January 5th, 2000, 10:01 AM
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?

Chris Eastwood
January 5th, 2000, 03:22 PM
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