Set DllImport attribute dynamically

Posted by matt-bond on Stack Overflow See other posts from Stack Overflow or by matt-bond
Published on 2010-05-12T10:44:35Z Indexed on 2010/05/12 10:54 UTC
Read the original article Hit count: 334

Filed under:
|

I am making use of an external unmanaged dll using PInvoke and the DllImport attribute. eg.

[DllImport("mcs_apiD.dll", CharSet = CharSet.Auto)]
private static extern byte start_api(byte pid, byte stat, byte dbg, byte ka);

I am wondering if it is possible to alter the dll file details (mcs_apiD.dll in this example) dynmically in some manner, if for instance I wanted to build against another dll version

© Stack Overflow or respective owner

Related posts about c#

Related posts about pinvoke