C# DLL

Hi,


Is it possible to call methods stored inside a C# dll from a gadget If so please could someone show me an example of how to make the method call I have seen code for how to register/unregister the dll in the gadget code, but thats all i know.


Thanks,
Jason


Answer this question

C# DLL

  • shp21

    What cache info are you after WMI as a source will probably be out, due to security in Vista.

    You'll need to find another way to get the data, either .NET or a system API.

  • Rick_in_Alpharetta

    Hi peter

    What exactely are you trying to achieve I remember there was a class named PerformanceCounter in the .net Framework. You could simply create a .net component, make it Com Interoperable and then use the data from it in your gadget.

    If this is what you are looking for: I have created a small gadget (my first as well) the past nights. It should be done by tomorrow. It doesn't use the PerformanceCounter class but some other classes, but the rest should be the same.


  • Mateusz Rajca

    i am having similiar issue. i am trying to call the dll from jscript. i think if i could do that, than problem solved...any idea how to do that



  • Davids Learning

    I was playing around with Orcas today, to figure this one out. You need to compile it with the COM Interop.

    Have a look at this thread, it's fairly straight forward.

  • SteveLK

    Hi Jonathan,

    Great network gadget!

    I'm kind of new to gadgets and javascript and am trying to do something similar to what you've done with the netlib.dll. I want to to get cache info from perf monitor. I followed the links you point to but don't really get it. I posted in the asp.net MVP forum and it seems I have to do the activex object like you did to get to the data.

    Could you point me at some resources I could get to I'm putting together a demo for a local community group and am stuck on this.

    Thanks

    Peter Kellner

    http://peterkellner.net

    ASP.NET, MVP



  • robertje

    Can you compile C# into an ActiveX COM DLL That's the only way you can use it in a Gadget.

  • Pman0401

  • C# DLL