For Programmers: Free Programming Magazines  


Home > Archive > Software Engineering > May 2006 > Module Support! How does it work?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Module Support! How does it work?
farhan00

2006-05-29, 8:26 pm

Hey everyone,

I have been working on an application for a while, and would like others to be able to add modules for it. The problem is, I don't know how to implement them.

I am using the dlopen() library set. I understand how to load modules into the program and how to execute the code. The problem is, I want these modules to be able to modify ANY part of the program. For example, if there are 100 functions in my application, I want the program to be able to modify any single one of those functions to do something different. Is there a way to do this, without having to make every single function in my code a function pointer?

Btw, im writing this on Unix :-)

Thanks a lot!
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com