I had something similar a few months ago in a situation outside of Nant specifically.
 
I believe that visual studio performs an AxImp and a TlbImp on OCXs, producing two files.
 
Try running tlbimp on the ocx and then using the output of that file as a reference to the AxImp.
 
I apologize for the vagueness, but it's been a while since I had to deal with this.

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 22, 2005 9:18 PM
To: Nant-users@lists.sourceforge.net
Subject: Re: [Nant-users] Difference between importing a OCX in VS and running AXIMP?


Hi Dante,

thx for your reply. I see I need to be more specific. When I run the AXIMP task as defined in NANT it only created one file, but not two. So I used <exec> to run it through the command shell. Providing no switches and no output file name a OCX named wmplib.dll would result in Axwmplib.dll and (same name!) wmplib.dll using AXIMP and AxInterop.wmplib.dll and Interop.wmplib.dll in VS.
Technically spoken this question doesn't belong here, since it is VS vs. .NET Framework tools. So what would be the right place to ask?
:-) stw

[EMAIL PROTECTED] wrote on 23/02/2005 02:32:43:

> I don't think you are missing switches. As a matter of fact, I just
> emailed Gert directly yesterday about this issue. There is even a
> comment in the code that says it is being assumed that Interop.*
> will suffice and the call to AxImp uses the "/rcw" parameter. The
> work around I found so far is to run the exact same AxImp command
> without the "/rcw" parameter, this forces the creation of the
> AxInterop.* file.

>  
> I don't know enough to say that the rcw parameter should just not be
> used but other than performance, I don't see how it would hurt to
> not make the assumption I mentioned above and never use the rcw
> parameter. Gert, would you enlighten us?? :-)

>  
> Thanks!
>
>
> [EMAIL PROTECTED] wrote:

>
> Hi there,
>
> I want my software to be strong named. So my NANT task runs AXIMP to
> import a wrapper for an ActiveX Control. However the result is
> different from the interaction in Visual Studio. In VS I get 2
> files: AxInterop.wmplib.dll and Interop.wmplib.dll. In AXIMP I get
> Axwmplib.dll and wmplib.dll and some differences in the content (get
> some errors on execution). Am I missing switches?
>
> :-? stw

Reply via email to