Marek,
>Anyway, i have a
>unmanaged C++ code that reads some files and loads an
>System::Collection::ArrayList:
>Here's unmanaged code that loads an ArrayList
The code you posted looks like managed C++ to me. You are, after all,
using the __box keyword and various managed types.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
Marek A. Dabek - 23 Oct 2003 11:53 GMT
Thanx for answer, however, this part with Arraylist is managed, but
it's mixed with a lot of unmanaged code, and output is win32.
What is more, i can't use this dll in j# or c++ .net project because
i'm getting the exception i was writting about ("Can not marshal
return value: The type definition of this type has no layout
information."). So my question is, how to use this ArrayList from dll
in j# or in C++ .net project.
Mattias Sjögren <mattias.dont.want.spam@mvps.org> wrote in message news:<#6tk0IOmDHA.3312@tk2msftngp13.phx.gbl>...
> Marek,
>
[quoted text clipped - 7 lines]
>
> Mattias