Solved

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

Posted on 2007-04-05
1
239 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
[X]
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
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

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

752 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