Ejemplo n.º 1
0
Archivo: test.cs Proyecto: mono/gert
	static void Main ()
	{
		//
		// Give a 'function pointer' of our static CreateWString function to the C library
		//
		SWIG_WStringDelegate wstringDelegate = new SWIG_WStringDelegate (CreateWString);
		SWIGRegisterUTF16StringCallback_libtest (wstringDelegate);

		//
		// Invoke a function in the C library that will use the above registered CreateWString function pointer.
		//
		my_test_func ();
	}
Ejemplo n.º 2
0
Archivo: test.cs Proyecto: mono/gert
	public static extern void SWIGRegisterUTF16StringCallback_libtest (SWIG_WStringDelegate wstringDelegate);