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:
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);
...
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;
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
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 -
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
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
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.
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