来自上述链接的 Assembly.GetAssembly 示例
Assembly^ SampleAssembly;
// Instantiate a target object.
Int32 Integer1(0);
Type^ Type1;
// Set the Type instance to the target class type.
Type1 = Integer1.GetType();
// Instantiate an Assembly class to the assembly housing the Integer type.
SampleAssembly = Assembly::GetAssembly( Integer1.GetType() );
// Gets the location of the assembly using file: protocol.
Console::WriteLine( "CodeBase= {0}", SampleAssembly->CodeBase );
如果您结合以上内容,您可能会更接近您想要做的事情。如果这将在 Native C++ 中完成,您将遇到更多问题,有一种称为“Fusion API”的东西可能会帮助您在 GAC 中查找程序集。