Page 1 of 1

Automation interface.

Posted: Mon Apr 27, 2009 1:42 pm
by bokkie
Is it possible to use the automation interface in a .Net application? I tried adding the miaauto.dll as a reference hoping a COM wrapper would be created but .Net throws an invalid COM error when it tries to add the reference. I believe you can use the automation interface in Delphi but I need to target .Net specifically.

If it's possible, well and good. If not, I won't lose any kip time over it.

Posted: Mon Apr 27, 2009 3:01 pm
by MichaelNesmith
Hi Peter,

.NET can call arbitrary Win32 DLL's via a technique called P/Invoke. You just declare the function prototypes and then invoke them as if you were calling the standard Win32 API, there's no difference in the process.

You could also call our COM library, but I know miaauto.dll is more frequently updated, so I think P/Invoke is exactly what you need to do.