how can i access C# dll from VBScript on client machine
Posted
by maraheem
on Stack Overflow
See other posts from Stack Overflow
or by maraheem
Published on 2010-03-31T11:31:14Z
Indexed on
2010/03/31
11:33 UTC
Read the original article
Hit count: 170
i have created a C# dll file on my machine as shown below:
namespace myDLL
{
public class myClass
{
public string myFunction()
{
return "I am Here";
}
}
}
then i created a tlb file with "tlbexp" command, then i used the "regasm" command n registered this dll on my machine.
When i created an object of type myClass on my machine using VBScript, everything is working fine... here i used the CreateObject() method as shown below: Set myObj = CreateObject("myDll.myClass")
Now i want to create an object of type myClass from VBScript that is running on another machine, how can i do this. please help me how can i access that dll file, am using the CreateObject() function as shown below:
Set HD = CreateObject("myDll.myClass","myMachineName")
now am getting error as "permission denied"
© Stack Overflow or respective owner