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).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.