I'm using SWIG 1.3.40 with C#.


I have the following problem – I can't seem to get SWIG to convert UINT8 to a C# string automatically.


Here is a description of the problem:

I have the following simple module:


/* File : example.i */

%module example

%include "windows.i"


%inline %{

typedef struct {

UINT8 userName[32];

} multiInitParams;




On the C# side, A SWIGTYPE_p_unsigned_char class is being created and the generated C# class looks like this:


public SWIGTYPE_p_unsigned_char userName { … }



Changing the UINT8 to a char works as expected and generates the following C# signature:



public string userName { …  }


I've tried adding typedefs, adding windows.i file and several additional module files. Nothing seems to work.


Is this possible? Am I missing something?


Thanks in advance,


This mail was sent via Mail-SeCure System.