Groups | Blog | Home
all groups > dotnet interop > april 2006 >

dotnet interop : How to encapsulate an ActiveX Control in dotnet


NorthSky
4/11/2006 10:04:01 PM
Hi, I try to encapsulate an ActiveX Control to output the specified fileName.
Such as :

I have an ActiveX control :U8RefEdit.ocx and wanto get two file:
COM Interface file :Interop.U8Ref.dll and Activex
File:Axinterop.U8RefEdit.dll

copy %InteropPath%\Interop.MSXML2.dll %VBDllPath%\
copy %InteropPath%\Interop.EDITLib.dll %VBDllPath%\
copy %InteropPath%\Interop.ADODB.dll %VBDllPath%\
copy %InteropPath%\Interop.VBA.dll %VBDllPath%\
tlbimp.exe /reference:Interop.EDITLib.dll /reference:Interop.MSXML2.dll
/out:%VBDllPath%\Interop.U8Ref.dll U8RefEdit.ocx
aximp.exe /out:AxInterop.U8RefEdit.dll /rcw:stdole.dll
/rcw:Interop.ADODB.dll /rcw:Interop.VBA.dll /rcw:Interop.MSXML2.dll
/rcw:Interop.VBA.dll /rcw: Interop.EDITLib.dll /rcw:Interop.U8Ref.dll
%VBDllPath%\U8RefEdit.ocx

But aximp occure error: can't find assembly Interop.EDITLib.dll

If I using vs2003 ,IDE can product Two files,How can I Do?

Thanks

Dmytro Lapshyn [MVP]
4/12/2006 2:59:35 PM
Hi,

Can you try the following suggestion (mind the line wraps):

http://groups.google.com/group/microsoft.public.dotnet.framework.interop/browse_thread/thread/b2bf53b278e9af7/51daf01246be8291?lnk=st&q=aximp+%22%2Frcw%22+group%3Amicrosoft.public.dotnet*&rnum=1&hl=en#51daf01246be8291

[quoted text, click to view]
NorthSky
4/14/2006 12:02:02 AM
Thanks for your answer,I have solved this problem,
when you using aximp.exe with the /rc:switch,you must set the reference dll
and aximp.exe in the same directory!

[quoted text, click to view]
AddThis Social Bookmark Button