Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Calling .NET Assemblies with Win32::OLE

by dawook (Initiate)
on Dec 07, 2007 at 22:52 UTC ( #655768=note: print w/replies, xml ) Need Help??


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...!!!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://655768]
help
Chatterbox?
[perldigious]: I didn't want to tie up memory unecessarily basically, I wanted to "delete" it specifically to free it up, and wasn't sure I was even accomplishing that.
[stevieb]: perldigious You should start by writing some unit tests. That'll ensure current functionality doesn't break with changes.
[choroba]: unit tests++
[choroba]: The only problem you can't solve by adding more tests is the problem of having too many tests.
[stevieb]: choroba Been there, done that :) Better too many than not enough though!

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-07-21 20:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (335 votes). Check out past polls.