Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Objects from NetExpress 3.0 for VB

Status
Not open for further replies.

Nagrom

Programmer
Jan 28, 2002
234
US
How can I create objects for use by a VB6 program in NetExpress 3.0? I have followed all the documentation I can find on the subject, but VB always says "Can't Create Object" on the final product.
 
Answered my own question after a day of struggling with it. You have to use the syntax "Dim objNewObject As New clsObject.whatever". If you just try to declare it and then use the "CreateObject" function it fails everytime. It also fails if you just declare it and try to use the "Set objNewObject = New..." syntax. You have to create the object when you declare it. Basically, it's a quirk with VB, not how you create it in NetExpress (just use the wizard to create the class as an InProc server).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top