[Mono-devel-list] Problems calling unmanaged code

Ben Maurer bmaurer at ximian.com
Sun Aug 1 13:41:04 EDT 2004

On Sun, 2004-08-01 at 12:48, Ewen Cheslack-Postava wrote: 
> 		[DllImport ("libgphoto2.so")]
> 		internal static extern int gp_abilities_list_get_abilities
> (_CameraAbilitiesList *list, int index, _CameraAbilities *abilities);


You need to pass the struct as `out _CameraAbilities abilities'. You
need the byref to get the marshaling you need, IIRC. CSC is actually not
able to compile your code. I am going to file a bug on that in a minute.
-- Ben

More information about the Mono-devel-list mailing list