C# getting version of unmanaged dll

Posted by Richard on Stack Overflow See other posts from Stack Overflow or by Richard
Published on 2010-03-17T03:45:44Z Indexed on 2010/03/17 3:51 UTC
Read the original article Hit count: 317

Filed under:
|

I'm calling an unmanaged dll from my managed c# code and wanted to check I'm calling the right version.

The code I'm trying to load the assembly (to then get the resource file and then get the version) is: cur_version = Assembly.LoadFile("X:\Workspace\yreceipts_pos\yRprintProcessor\Debug\yRprintProcessor.dll"); It's failing because of this error: The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018)

Does anyone know how to get around this or have a better way to check the version of an unmanaged dll from managed c# code?

Thanks in advance, Richard

© Stack Overflow or respective owner

Related posts about c#

Related posts about unmanagedresources