Accessing a .Net COM dll in javascript
Hey Guys,
I'm having an issue trying to get access to local .Net Class Library I made in C#. and the methods within it. I have created it as COM visible and would like to use javascript to call it.
I'm not that familiar with javascript so I've searched around and have hit a roadblock, its that this is not going to be running through a web browser.
So..:
var ObjFromDll = new ActiveXObject("mydll");
is not available
I eventually have plans to tie this Class Library into the Photoshop UI as I have done with other softwares.
Example C#/.Net
using System;
using System.Runtime.InteropServices;
namespace myDotNetLibrary
{
[ComVisible(true)]
[ClassInterface(ClassInterfaceType.None)]
[System.Runtime.InteropServices.ProgId("myDotNetLibrary.DLL")]
[System.Runtime.InteropServices.Guid("ccb48297-eac2-4c14-a37a-9acb653d82c2")]
public interface ISVNLibrary
{
bool IsFileConflicted(string MyFilePath);
}
public class myLib : IMyLibrary
{
[ComVisible(true)]
public bool IsFileConflicted(string MyFilePath)
{
bool fileConflict = false;
return fileConflict;
}
}
}
Any advice would be appreciated.