12-06-2006 03:21 PM
12-07-2006 07:00 AM
I haven't tried this yet, so I'm only going to be able to answer in approximate terms. It should be possible to create a class factory using C#. If you do that, and register the class factory, then you might be able to use "CreateObject" with the ProgID of your class in VBScript to create an object from which to access your functionality. Likewise if you are creating a GUI component, you might be able to embed it using SUD's ActiveX container.
Unless somebody else knows more, you're going to have to figure out the details yourself though.
I hope this at least helps a little,
Myrle
12-09-2006 02:15 AM
Hello CCR1!
The keyword is 'COM Callable Wrapper' or short 'CCW'. Just have a look at 'Exposing .NET Components to COM' to get the details you need. In DIAdem you can test the sample with this code:
Option Explicit
Dim oTester
Set oTester = CreateObject("Tester.Numbers")
MsgBox oTester.GetDay()
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
12-13-2006 02:34 PM
12-14-2006 01:52 AM - edited 12-14-2006 01:52 AM
Message Edited by Twigeater on 12-14-2006 08:57 AM
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |