[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [DotGNU]engins/lib_dir.c
From: |
Rhys Weatherley |
Subject: |
Re: [DotGNU]engins/lib_dir.c |
Date: |
Tue, 15 Oct 2002 16:34:48 +1000 |
Charles Shuller wrote:
> Are there any
> pre-existing functions to create a list/array easily?
Use "ILExecThreadNew" with a type name like "[vPlatform.FileInfo;"
and a signature of "(Ti)V". "ToIPHostEntry" provides an example.
You'll need to define "Platform.FileInfo" or something similar
in pnetlib, and also define a "Platform_FileInfo" struct in C
with precisely the same definition. Accessing the array elements
requires a bit of messing about with "ArrayToBuffer".
> Finlly, is there some way to easily and
> clearly over-load the string object to really be an array of structs,
> and then typecast it into a more appropriate form?
Don't do this. Declare all types properly in pnetlib and ilrun.
Cheers,
Rhys.