[Mono-list] Mono embedding: invoke c code with char*

2008-04-09 Thread Ing. Francesco Carsana
Hi, I'm working with mono embedding, and I'm trying to invoke a c function that accepts two parameters: [MethodImpl(MethodImplOptions.InternalCall)] private unsafe extern static void OnConnectHandler(char* _ipAddress, bool _connected); This function is invoked inside this method:

[Mono-list] Mono Embedding: invoking methods

2008-04-07 Thread Ing. Francesco Carsana
Hi! I'm working with Mono Embedding and I'm trying to invoke this CIL method from C: public static void AttachConnectEvent(Session _s); where Session is a class: public sealed class Session { ... public static void AttachConnectEvent(Session _s); ...

Re: [Mono-list] Mono Embedding: manage events

2008-04-03 Thread Ing. Francesco Carsana
Thank you for the example Robert! // call AttachEvent(session); args [0] = session; mono_runtime_invoke (attach_event_method, NULL, args, exception); In this piece of code, what's the type of session? Is it a MonoObject* ? I've tried this: MonoObject* session;

Re: [Mono-list] Mono Embedding: manage events

2008-04-02 Thread Ing. Francesco Carsana
The recommended way is to declare the handlers as icalls in managed code: The problem is that I can't modify .NET assembly source code. I only know that assembly has this event: public event ConnectionEventHandler OnConnectionEvent; where ConnectionEventHandler is: public delegate void

Re: [Mono-list] Mono Embedding: manage events

2008-04-02 Thread Ing. Francesco Carsana
If you can't modify/extend the existing assembly, likely you can create a new assembly for that purpose. That's what I've been doing. Could someone send me a little example, please? Thank you. Francesco. ___ Mono-list maillist -

[Mono-list] Mono Embedding: manage events

2008-04-01 Thread Ing. Francesco Carsana
I'm writing a C++ class with Mono embedding. This class is a wrapper to a .NET assembly that raises 3 events. I would like to know if it's possible to catch that events in C++ without changing .NET assembly (I haven't assembly source code...). Where can I find a code example? I've searched in

[Mono-list] Qyoto on Windows

2008-03-21 Thread Ing. Francesco Carsana
I can't compile Qyoto library (the equivalent of Linux libqyoto.so) for Windows due to some errors... Anyone has a compiled version for Windows? Any link? Any How-To? Thank you. Francesco. ___ Mono-list maillist - Mono-list@lists.ximian.com

Re: [Mono-list] Cross-platform GUI Applications

2008-03-20 Thread Ing. Francesco Carsana
I have tried Qyoto and It works very well in Linux. However I haven't tested Qyoto in Windows, because I can't compile Qyoto library (the equivalent of Linux libqyoto.so) for Windows due to some errors... Anyone has a compiled version for Windows? Any link? Any How-To? Thank you. Francesco.

[Mono-list] Mono embedding

2008-03-19 Thread Ing. Francesco Carsana
Hi! I'm working with Mono embedding and I'd like to know if it's possible to load two or more assemblies in a C program. Could someone send me a small example? Thak you. Francesco. ___ Mono-list maillist - Mono-list@lists.ximian.com