RE: newbie... Trying to use .NET class library from VB6/COM

From: jqpdev (jqpdev_at_discussions.microsoft.com)
Date: 02/18/05


Date: Fri, 18 Feb 2005 05:39:02 -0800

I tried having the class library in the same folder and a separate folder.
Also, I suspect that you have both VB6 and VS.NET (2002/2003) installed on
the same partition. I was able to get the app. to work in the VM/partition
where VS.NET 2003 resides. I fired up the dll from a vbs file.

The GAC install is still an issue because on the VB6 VM/partition there is
no gacutil.exe. A real test of the client and server working together is to
deploy the server (.NET exe/dll) to a client app. environment that is
completely separate from the development environment.

I'm heading into my office in a little while. I suspect that my .NET class
library (server) is not being registered properly so it can't be found.
Partial registrations are a pain in the caboose.

Please let me know if you come up with any other ideas or suggestions.
Thanks in advance.

"savoy" wrote:

> I was getting the same error in a similar situation, trying to access .Net
> dll from VB6. Problem went away for me when I added the .Net dll to the
> global assembly cache. Although it should work by just putting the dll in the
> same folder as the VB6 app (or a sub-folder of the app), for me it didn't.



Relevant Pages

  • Re: Possible to distribute without dotnet framework?
    ... have to explictly select this bloated install wich nobody does if he ... chance is even higher that the framework is not installed if the company ... AFAIK you can use DirectX in VB6 so i do not get your point ... XCopy a VB6 app? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: VB6 does not work in Windows Vista Business
    ... I had similar issues when I first installed VB6. ... After you install it you then need to enable the ActiveX installer service and restart the machine. ... it popup with an error "Error accessing system registry" and from ... 'ComDlg32.OCX' or one of its dependencies not correctly registered: ...
    (microsoft.public.vb.controls)
  • Re: VB6 does not work in Windows Vista Business
    ... VB6 seems to run fine now, but still it randomly comes up with "Error ... accessing system registry" which is rather weird. ... Install it from add windows components. ... 'mscomm32.ocx' or one of its dependencies not correctly registered:...." ...
    (microsoft.public.vb.controls)
  • Re: Forcing a VB6 application to run with administrative privileges
    ... I find manifest files work fine for my VB6 apps. ... Has anyone figured out how to have a VB6 application forced to run with administrative privileges yet? ... Microsoft talks about adding a manifest, a small piece of code, but that is for .Net based applications built with Visual Studio.Net and involves adding code to the web.config file and the resource table. ... As part of my install there is an AutoInstall program that takes up to six arguments. ...
    (microsoft.public.vb.general.discussion)
  • Re: Rootkit Revealer
    ... It did find some suspect files, but only gave me a list of them which I ... Does anyone here have any guidance as to what to do with rootkit ... I/O driver that they dynamically install when you run the program). ... This utility will also report embedded nulls in registry key names. ...
    (microsoft.public.security.virus)