简体   繁体   中英

How to register a com interface exposed by a .net exe?

I have a .net exe (sent to me, I didn't write it) that exposes a com interface.

I need to register it so I can see it in the list of available activex interfaces from delphi ide.

I need to do something like

registerinterface.exe file.exe

where of course registerinterface.exe is a placeholder for the real thing.

May you jelp me?

Use regasm.exe [pathtoexecutable] . Regasm is in the .NET Framework installation directory. Note that the assembly will have to have a strong name, otherwise you will get an error.

Make sure to do this from an elevated command prompt if you are using Windows Vista / 7 if UAC is enabled.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM