http://qs1969.pair.com?node_id=655768


in reply to Calling .NET Assemblies with Win32::OLE

Thanks for this, its clear and explained well, the example works. I am guessing from my experimentation though that there are some serious limitations to this method. I have a dll, that is comprised of multiple classes, and uses Reflection and and System.Diagnostics to gather information from the calling program, it also uses the IDisposable interface. Needless to say I could not quite get it to work with perl...yet at least. If you have any examples of more comples C# dll's I would appreciate the information. Thanks again great post :-)
  • Comment on Re: Calling .NET Assemblies with Win32::OLE

Replies are listed 'Best First'.
Re^2: Calling .NET Assemblies with Win32::OLE
by srirajpaul (Initiate) on May 12, 2008 at 13:03 UTC
    There is no need to put the assembly in GAC for perl to use it. While registering using regasm.exe use the option /codebase.
    e.g.  regasm hello.dll /codebase
    Then perl will take the library from the path where it is.
      Thanks that worked...!!!