开发者

How to register COM objects when I publish to another machine

I have some COM objects in my C# project. When I publish the project and run the pro开发者_Go百科gram on another machine, I get this error

Class not registered

I think the COM objects automatically register on my machine as part of the build process. How can I register my COM objects on another machine?


  • regsvr32 "path\FileName.dll" for any non .Net com dlls.
  • regasm for .Net com dlls.


In your setup project, use vsdrfCOMSelfReg for Register property of the .dll file in question.

More here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜