Hi Gert,

I downloaded today's nightly build (2004-11-12) and tried it under my
setup. I'm not getting the UnathorizedAccessException anymore but the
problem with arrays is still there. The fix should be easy: set the
sysarray attribute of <tlbimp> to true. If I create the ComInterop
assemblies by hand I need to set sysarray to true to get equivalent
assemblies to the ones VS.NET creates.

Here follows a quote from "COM Programming with Microsoft .NET" page 59:

[quote]
To generate an RCW in the same way that Visual Studio .NET does, use
TlbImp with the following options:

tlbimp libname.ext /out:Interop.libname.dll /namespace:libname /sysarray
[/quote]

RCW => Runtime Callable Wrapper

In my case some of my typelibs the filename doesn't match the libname so
I needed to do some complicated bits to find the correct namespace. I
needed to find the library name of the typelib and use that as libname
above. In reality it looks more like this:

tlbimp typelib.ext /out:Interop.libname.dll /namespace:libname /sysarray

where typelib.ext is the filename of the typelib and libname is the
library name for the typelib. I can't remember off the top of my head
how to determine that library name since it was a bit complicated but I
can look it up if you are interested in knowing!

--Edwin

> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:nant-developers-
> [EMAIL PROTECTED] On Behalf Of Gert Driesen
> Sent: Friday, November 12, 2004 10:14 AM
> To: 'Nicklas Norling'; [EMAIL PROTECTED]
> Subject: RE: [nant-dev] <solution> changes
> 
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> > Behalf Of Nicklas Norling
> > Sent: vrijdag 12 november 2004 12:02
> > To: [EMAIL PROTECTED]
> > Subject: RE: [nant-dev] <solution> changes
> >
> > Is there a lot done since nightly 11-08? I've got that
> > version deployed
> > in my organisation and it seems to be working just fine (so far).
> 
> The reference changes are quite extensive (for the better, I hope),
and
> are
> only available in today's nightly build.
> 
> > Don't think we have wrapper assemblies, what are those?
> 
> Mostly imports of COM typelibraries and OCX's.
> 
> Gert
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> _______________________________________________
> nant-developers mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-developers


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to