Version Independent ProgIDs in the .NET Framework and C#
Generating a Version Independent ProgID in a C# Component that is being exposed as COM is apparently tantamount to Voodoo. Nothing has been written about it either in Google Groups or in Google proper. Sam Gentile in his wisdom confirmed to me that there is no [VersionIndependentProgID] attribute or the like.
So, sounds like I'll need it manually in my own "DllRegisterServer" functions:
[ComRegisterFunctionAttribute]
public static void myDllRegisterServer(string registrationLogic) {
// perform my logic
Trace.WriteLine( "Registration is occuring ..." );
}
[ComUnregisterFunctionAttribute]
public static void myDllUnregisterServer(string registrationLogic) {
// perform my logic
Trace.WriteLine( "Dis-Un-registration is occuring ..." );
}
About Scott
Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.
About Newsletter
Comments are closed.