load dll .NET C#

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
martinjd
Newbie
Posts: 3
Joined: Fri Feb 15, 2013 10:04 pm

load dll .NET C#

Post by martinjd » Tue Feb 19, 2013 9:48 pm

I am trying to load a simple C# assembly. Can Macro Scheduler load .NET assemblies. I am getting an error "Unable to load DLL" when attempting to do so?

The assembly accepts a string, iterates a directory, and returns a string. I have the following line in the script:

Code: Select all

LibFunc>D:\Segments\GetPath.dll,GetInstalledPath,result,PROG
If I call:

Code: Select all

LibLoad>D:\Segments\GetPath.dll,hLib
the result is

0: HLIB=1816723456

User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Feb 20, 2013 9:57 am

No, Macro Scheduler cannot load .Net assemblies. It is not .Net.

It can load native win32 DLLs (with stdcall convention). .Net assemblies are not native DLLs.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

SteveN
Newbie
Posts: 1
Joined: Mon Jun 03, 2013 6:12 pm

Loading .net DLL

Post by SteveN » Mon Jun 03, 2013 6:14 pm

Is it not possible to create your .net dll for COM and then load it using ActiveX?
:?:

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts