Access VB6 Module's Methods in C#

  • Thread starter Thread starter me
  • Start date Start date
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.
 
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.
 
Back
Top