S
Sam Gentile [MVP - C#/.NET]
I wrote an assembly in c# and i need to use it in my vc++ project so i
build
COM. The CCW actually does not need a TLB to do it's job, it's purely for
development purposes in COM IDEs. The TLB is only generated if you used
regasm /tlb
GAC so it can be found. The other way is to strong name it and use a
Codebase setting for a private directory.
machine.
Interop article on MSDN that covers the steps and details in sequence:
http://msdn.microsoft.com/netframew...brary/en-us/dndotnet/html/useframewktools.asp
--
----------------------------------
Sam Gentile
MVP - C#/.NET
INETA Speaker http://www.ineta.org/DesktopDefault.aspx
Read my blog at http://samgentile.com/blog/
------------------------------------------------------
build
Well, regasm's real job is to create the necessary registry settings fora tlb from it using regasm.exe and import it in my project i also put the
COM. The CCW actually does not need a TLB to do it's job, it's purely for
development purposes in COM IDEs. The TLB is only generated if you used
regasm /tlb
Typically Microsoft recommends that CCWs are strongly signed and put in thei also put the
dll under the directory of my exe file but it failes when i try to all the
createinstance function why???
GAC so it can be found. The other way is to strong name it and use a
Codebase setting for a private directory.
It's a unmanaged COM component to COM so it needs to be registered on eachIt work fine in my xp computer when i develop it but when i install it in
another computer i get error access denined in the create instance why???
machine.
Rather than repeat the steps, I would like to point you to my 2nd COMcode
using com???
Interop article on MSDN that covers the steps and details in sequence:
http://msdn.microsoft.com/netframew...brary/en-us/dndotnet/html/useframewktools.asp
--
----------------------------------
Sam Gentile
MVP - C#/.NET
INETA Speaker http://www.ineta.org/DesktopDefault.aspx
Read my blog at http://samgentile.com/blog/
------------------------------------------------------