2009/1/13 Bill Holmes <billholme...@gmail.com> > Alfredo, > > I have attached a sample. It needs work and I need to write it up and > share it on the web. One day I will get around to it. >
I'd like to see that website someday :) > > If I have done this correctly you should just have to un tar it and run > make. > I will give you some feedback as soon as I check it. > > > I guess I'm in your second case, since the extern method (the one in the > C++ > > library) can't be redefined to receive a function pointer instead of a > > object pointer. > > > > This restriction concerns me. If you cannot change the parameter to > accept a function pointer I doubt that you will able to change it to > accept a IUnknown derived interface pointer. Definitely I can't change the signature of the method, which receives a class pointer (kind of "A* arg"). Therefore, I can inherit from A and do the workaround with the delegate / function pointer. > > > > What do you think about the tunned proxy class to get it done with > > delegates? With that approach I would get more software architectures in > the > > scope, wouldn't I? > > > > This is probably the best approach for you. This approach sounds like > the way we encapsulate QT at my company. It can be a mess to C# and > C++ wrappers in sync but it does work well. > > -bill > I think I'm going to start to head this way. Thanks for the help :)
_______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list