Emulating reflection in C

english — Tags: , — @ 15:52

Have your ever wonder how to emulate C#/Java Reflection in C Shared Objects? If you are using GObject to build your applications and/or your libraries, then you won’t have any problem to do so. I hope having more free time on next weeks to allow me write a simple example to do so. Basically you need to define an interface to dlopen your Shared Objects, then call an GInterface to initialize your custom GType and then other GInterface to get GTypes defined in your shared obejct, then by using g_type_from_name () you will be able to “play” with your objects.

0 Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

  •  
    February 2007
    S M T W T F S
    « Jan   Mar »
     123
    45678910
    11121314151617
    18192021222324
    25262728  
  • Pages
  • Archives
  • Tag cloud
    2010 a11y accessibility books c# debian development english espaƱol february gnome hackweek january java june makeup march mono monohispano monohotdraw monouml nokia770 opensolaris opensuse personal pulque resolutions ruby ruby&c# tasque ubuntu uia uml vala yastroid
  • This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
    (c) 2004-2010 Mario Carrion | powered by WordPress with Barecity