Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 697759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:12:04+00:00 2026-05-14T03:12:04+00:00

I have an assembly which I have managed to make visible to VB6 and

  • 0

I have an assembly which I have managed to make visible to VB6 and it works, but having a problem accomplishing the same thing with VB5.

For VB6, I have built the assembly, made it COM-visible, registered it as a COM object etc., and the assembly shows in VB6’s References list, and allows me to use it successfully. The Object Browser also shows the method in the assy. I copied the assembly and its TLB to a virtual workstation used for VB5 development, and ran Regasm, apparently successfully:

C:\>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
\regasm arserviceinterface.dll /tlb:arserviceinterface.tlb
Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.3053
Copyright (C) Microsoft Corporation 1998-2004.  All rights reserved.

Assembly exported to 'C:\Projects\AR\3rd Party\ARService\arserviceinterface.tlb'
, and the type library was registered successfully

Note that the virtual W/S is Win2k and does not have .NET Fx 3.5 on it, just 2.0.

The assembly shows up in the References that can be selected in VB5, but the method of the assembly doesn’t show up in the Object Browser, and it is generally unusable. Either there is a step to do that I haven’t done, or VB5 doesn’t know how to use such a COM object. Note that the VB5 setup is on a virtual workstation, not the same workstation that VB6 is installed on.

Any ideas? One thing that occurred to me is that I might need to generate and use a strong name on the workstation in question, but…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T03:12:04+00:00Added an answer on May 14, 2026 at 3:12 am
    1. Make sure your assembly is not build against and using features from .Net 3.5
    2. Copy the OLE/COM Object Viewer tool (you can get it from a machine with the Windows SDK installed). Run it, go to View All Objects, scroll down the list to your object and right click on it to create an instance.
      2.1 If OLE/COM Object Viewer can’t create an instance, the problem is in how the object is registered on the machine, or how .Net is installed.
      2.2 If OLE/COM Object Viewer can create an instance, then the problem is in how VB5 consumes.
    3. I can’t remember if VB5 actually supports early-binding (IUnknown-based objects) or if supports only late-binding (IDispatch). I have the sneaking suspicion that VB5 only supported dispinterfaces, and it was VB5.5 that introduced support for IUnknown. So that could be your problem.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple managed C++ assembly which I am providing unmanaged wrappers for
Having an assembly which I cannot modify (vendor-supplied) which have a method returning an
I have an Assembly(A) which defines a Managed class which has a public constructor
I have an assembly which should not be used by any application other than
I have an assembly which wraps the functionality of an external live web service.
I have an assembly which I need to GAC on a SharePoint machine I
I have a helper assembly which includes a function to identify object types: namespace
If I have an assembly (A) which references another assembly (B). I want to
I have a set of assembly function which I want to use in C
I have an assembly, written in C++\CLI, which uses some of enumerations, provided by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.