Groups | Blog | Home
all groups > visual c > june 2004 >

visual c : How to load assembly from GAC using unmanaged C++?


Alex Sedow
6/24/2004 8:41:53 PM
Hello group!

How to load assembly from GAC using unmanaged C++? I want load assembly into
memory or get path to file on disk.

Alex.

Tomas Restrepo (MVP)
6/24/2004 10:09:14 PM
Alex,

[quoted text, click to view]

I've never tried it, but perhaps using the Fusion API [1] you could use
IAssemblyCache::QueryAssemblyInfo() to get the path to the actual dll and
then load that using LoadLibrary? (I'm presumming you want it for
inspection, you're not actually trying to load and execute managed code on
it, because it would be an entirely different thing)

[1] http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q317540

--
Tomas Restrepo
tomasr@mvps.org

Alex Sedow
6/26/2004 10:28:58 AM
Tomas,

Thanks for the link!

Alex.

[quoted text, click to view]

AddThis Social Bookmark Button