Hello, I'm putting together a proof-of-concept application that calls from a C++ command application into a C# class using mono_runtime_invoke. I need to be able to return values from the C# calls to my C++ code. According to the instructions at:
http://www.go-mono.com/embedded-api.html I need to unbox the MonoObject pointer that mono_runtime_invoke returned to me to get the return value of the function. If I'm expecting a string I've found that the following code will work: MonoString * str = NULL; gchar *message = (char *) ""; .... str = (MonoString *)mono_runtime_invoke (method, test, NULL, NULL); if ( str ) { message = mono_string_to_utf8(str); } But it's not clear to me how to unbox a MonoObject to get to a bool, double, or int value. Thanks in advance for any pointers about how to do this. -Candace _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
