Solved

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

Posted on 2007-04-05
1
220 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
A short film showing how OnPage and Connectwise integration works.

932 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now