I wrote a dll in vb.net that calls a web service, consumes the data returned then passes results back to the calling program. I originally wrote in in VS 2008, on windows 7 (x64). Tested it in a vb 6 program also written on windows 7 and everything worked. The vb6 program got the data and I could move on.
The real world for me though is to use this dll inside another dll written in vb 6. I get the error "ActiveX component can't create object" when I get to the code
Dim myWebService as webService.ComClass1
Set myWebService = New webService.ComClass1
I've recompiled my code on windowsXP (x86) and recopied over the .dll and .tbl.
When I try to register the dll I get an error: 'DllRegisterServer entry point was not found'. The .tbl seems to register fine in VB as far as adding a reference to it and the intellesense works too.
Does anyone have any ideas what I need to do to get this working?
I was just coming by to say I got it figured out. The problem is that you need to register the dll/tlb differently then normal. You need to first sign the dll in .net, then run regasm with the /tlb and /codebase options on the machine you're deploying on. Those programs are located in %WIN%/Microsoft.Net/Framework/v.xxxOldest.Version