Re: Access VB6 Module's Methods in C#

From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 05/07/04


Date: Fri, 7 May 2004 10:23:40 -0400

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.

-- 
               - Nicholas Paldino [.NET/C# MVP]
               - mvp@spam.guard.caspershouse.com
"me" <itorres@techie.com> wrote in message
news:9d9a01c43439$19b885c0$a301280a@phx.gbl...
> 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.
>


Relevant Pages

  • Re: How can I detect the presense of an optional assembly and call a method within it?
    ... Basically you will need to use Reflection. ... allows you to dynamically create instances at runtime and invoke method. ... > 1- Read a configuration file where the client provides the assembly name ... > (DLL) and the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Memory Cleanup in .NET
    ... I have a COM dll which exposes an object CClient and has the interface ... This COM client is wrapped in a dlland the ... I have modified the code in this wrapper dll to do a SysFreeString(of ...
    (microsoft.public.dotnet.framework.clr)
  • Re: Uses for Screen OCR technology
    ... the DLL itself has a class factory that creates the COM ... ..NET exposes COM in a nice way, much like VB exposes COM in a nice way. ... It's the nicest bridge possible from the app developer to COM. ...
    (microsoft.public.vc.mfc)
  • Interface Design And Scalability
    ... I am "attempting" to develop an ATL COM DLL that exposes a large number of ... I also keep reading that I should group methods with related properties. ... If no...What if I the size of the DLL grows large and I want to use the ...
    (microsoft.public.vc.atl)
  • Problem retrieving object
    ... Each dll is specifically desgined so it exposes ... a third party control as a Control object. ...
    (microsoft.public.vb.winapi)