Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Public Variables exposed thru type library in DLL registered for COM interop

Posted on 2007-04-05
1
232 Views
Last Modified: 2010-05-18
Correct me if my nomenclature is off.  We just converted a large VB6 DLL to VB .NET and will be using it in a Visual C++ executable.  When we import the type library in Visual C++, the Global / Public variables in each class are not exposed like they used to be.

Is there any way to have the Public variables exposed through the COM interface like they used to be?  We can’t switch our exe to use managed code (CLR), but any other suggestions are welcome.
0
Comment
Question by:bigsteve87
1 Comment
 
LVL 27

Accepted Solution

by:
VBRocks earned 500 total points
ID: 18862352
Are you using an Interface in your dll?  I think it may be necessary to expose your methods.

Here's a link that discusses this issue:
http://www.15seconds.com/issue/040722.htm

0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JSON  parse help 7 40
How to seperate number and letters from a string 3 22
Updating specific fields only in MVC/Entity controller 2 18
SSIS Start 2 20
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question