Re: [Dev-C++] A Plugin Engine for my Application
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2007-12-12 14:47:02
|
Too little information given. You can load plugin modules as DLL files - one or more plugins/DLL. You will have a hard time protecting your program from ending if the plugin is badly written. Windows kills broken programs, not broken plugins. Maybe you can run the individual plugins as separate programs, but then you must check into shared memory, sockets etc for sending/receiving data between main program and plugin. You haven't written anything about how much data each plugin needs to do it's work. You haven't mentioned how long running time a plugin may require for a call. You haven't specified expected # of calls/time unit. You haven't discussed any requirements for concurrent operation of multiple plugins, or how long time a plugin may consume before returning (potentially with an answer). The paragraph "To be clear" is most definitely not clear. It almost sounds like you are talking about a driver layer either interfacing below the Win32 API, or between the Win32 API and the plugins. But too little details and no information about what problem you want to solve. /pwm On Wed, 12 Dec 2007, hhh hhh wrote: > > Hi. I am developing a application, where my developmental concept is a > hierarchical set of platform. > > I have a platform, at the very start of my tree-like app. This platform= I > gave the name "plugin_engine". > Its basically two Linked Lists, one with function pointers (struct > Plugin), and the other with data structs(struct Message)... > The ideia is to itenerate through the Plugin Linked List, and > subsequentially through the Message Linked List. > If a Message ( read "a member of struct Message** LinkedList") is > designated to a defined Plugin ( read "a member of struct Plugin** > LinkedList ") we give the control to the plugin main function ( Remember > that struct Plugin has function pointer members. ) > > The first conceptual challange I have is... How to integrate the Win32 = API > into that Plugin platform ? > To be clear, I wan't my platform at the very first start of the design > and not as a branch of Win32 Windowing API, so i can also have complete > control over files/socket operation, and users databases (Also to be > included) > I cannot have a critical error that forces my app to break... I wish t= o > maintain the most control possible. > The second is : How can I also create a dynamic plugin structure? Load > exterior plugins developed for my app? > > _________________________________________________________________ > Transfira J=C1 a =FAltima vers=E3o do Windows Live Messenger! > http://get.live.com/pt-pt/messenger/overview > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |