Joni_78 Posted November 21, 2012 Share Posted November 21, 2012 If I call a method from dll like this, does the C# DLL work or does it need to be a ActiveX DLL? var ObjFromDll = new ActiveXObject("DllRegisteredName");var anyResult = ObjFromDll.MyMethod()[/CODE] Link to comment Share on other sites More sharing options...
0 Andre S. Veteran Posted November 22, 2012 Veteran Share Posted November 22, 2012 C# can be used to create ActiveX dlls, but if it's just a "plain" .NET assembly, then you certainly can't call it like that. Link to comment Share on other sites More sharing options...
0 Joni_78 Posted November 22, 2012 Author Share Posted November 22, 2012 Yay, I got it working. JavaScript HTML now access to the com dll. It has one problem though, every time I ran it, it gives a security warning on IE or WMC that ActiveX-component might not be safe. How do I mark my dll object safe in? I found some examples but none on C#. Link to comment Share on other sites More sharing options...
Question
Joni_78
If I call a method from dll like this, does the C# DLL work or does it need to be a ActiveX DLL?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts