Discussion:
Whar is the purpose of ComRegisterFunction/UnregisterFunction anc CoClassAttrib?
(too old to reply)
Rashad Rivera
2004-01-04 03:25:44 UTC
Permalink
I tried to apply these attributes to my class and I sill
cannot all my register function via REGSVR32.EXE. I know
of the REGASM.EXE with the /CODEBASE option, but I just
want to have a assembly that is compiled and ready to be
registered. Again, why give these attributes, (ComReg
and ComUnreg..) if they can not be called via the regular
registration functionality? Is Microsoft trying to steer
us away from using, COM style behavior?
Phil Wilson
2004-01-08 00:50:55 UTC
Permalink
ComRegisterFunctionAttribute is intended for use with regasm.exe. Regsvr32 does
not register assemblies (.NET assemblies don't expose DllRegiaterServer, which
is what Regsvr32 experts). Regasm does the right thing anyway, so why are you
asking about regserv32?
--
Phil Wilson [MVP Windows Installer]
----
Post by Rashad Rivera
I tried to apply these attributes to my class and I sill
cannot all my register function via REGSVR32.EXE. I know
of the REGASM.EXE with the /CODEBASE option, but I just
want to have a assembly that is compiled and ready to be
registered. Again, why give these attributes, (ComReg
and ComUnreg..) if they can not be called via the regular
registration functionality? Is Microsoft trying to steer
us away from using, COM style behavior?
Loading...