Skip to content

Instantly share code, notes, and snippets.

@ekwus
Created February 24, 2014 10:08
Show Gist options
  • Save ekwus/9184990 to your computer and use it in GitHub Desktop.
Save ekwus/9184990 to your computer and use it in GitHub Desktop.
Call 45 From 40
static void Main(string[] args)
{
string path = Path.GetDirectoryName( Assembly.GetEntryAssembly().Location);
string name = Path.Combine(path, "TestCOM45.dll");
Assembly ass = Assembly.LoadFile(name);
object obj = ass.CreateInstance("TestCOM45.TestCOMLib");
ITestCom test = obj as ITestCom;
string ret = test.TestMe();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment