Access VB6 Module's Methods in C#

M

me

hi,

i just want to ask how to access VB6 Module's methods
in c#. i already converted the dll into interop assembly
but i cannot invoke Module's methods thru reflection.
thanks.
 
N

Nicholas Paldino [.NET/C# MVP]

me,

You can not do this. As a matter of fact, methods in a module are only
accessible to the project that the module is included in, nowhere else.

In order to expose these, you will have to create a COM component that
exposes the methods that you want to expose, and then access that through
COM interop.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top