Page 2 of 2
Posted: Tue Feb 26, 2008 9:22 am
by SofT MANiAC
@quasiperfect
thanks a lot

Posted: Tue Feb 26, 2008 9:33 am
by Demivec
@quasiperfect: It seems the TestApp crashes if the plugin creates a window whose # doesn't equal zero. I tested your code (by adding a missing EndProcedure) after changing the window# to zero and it worked. I then changed the window# to one and it failed the same as when the window# equaled 666. I'm not sure why it would matter what the window# was.
What changes would need to be made to a plugin that opens a window so that a second plugin could function at the same time? I noticed that in the code sample that after plugin#1 opens a window I can't cause plugin#2 to make a beep. I know it has to do with the event loop but I wasn't sure what needed to be done to make that possible.
Posted: Tue Feb 26, 2008 1:08 pm
by quasiperfect
@SofT MANiAC for nothing is the least i could do for this great community.
i played a bit with this concept and it works.
i'm not a programmer (i'm a web developer php and mysql) like u guys and i don't know c,asm or winapi so if i say something stupid please excuse me.
i use pb for a hobby and it works great for that, recently i started to concentrate harder at learning pb.
to make the whole thing work i made only the main app catch all actions and a action procedure in each plugin.
u get the events in the main app and just send them to the procedure in the plugin and there treat every action related to the plugin.
it was something simple and i didn't keep the code but i'm sure everyone could make that code.
maybe someone with more experience can share some advanced examples like using threads to do separate things in the plugins at once (example : user inputs a title for a new article is adding and a plugin can check if the title is already in use, if the right chars are writen, or even do some spelling correction in a separate thread not sure if is the case because is a fast action but for a extremely large db i think this will help do things faster) or other interesting advanced stuff.
sorry for my bad english and for any idiotic things i maybe said.
p.s if u guys need hosting for files just ask i have some is just sitting unused
Posted: Sun Mar 02, 2008 8:16 am
by SofT MANiAC
I find this code useful

Posted: Mon Oct 20, 2008 8:57 pm
by X
Link is broken.
Posted: Mon Oct 20, 2008 9:24 pm
by Inf0Byt3
Link fixed, see first post.
Posted: Mon Oct 20, 2008 9:27 pm
by X
Cool. Thanks.
Anbody have a copy of this - links are broken
Posted: Mon Aug 10, 2009 3:19 pm
by martinpluss
Does anybody have a copy of this rar anywhere? All the links are broken...
Thanks.
Posted: Mon Aug 17, 2009 3:23 am
by leodh
Hi,
I am looking for some info on writing apps with plugins, does anybody have some example code or a good simple explaination on what to do.
I ant to write a base application and let the user select what they want to add for functionality.
Any help would be great.
Thanx
Re: Plugin-Based Apps
Posted: Sun May 15, 2011 8:29 pm
by SofT MANiAC
All links is broken
Re: Plugin-Based Apps
Posted: Mon May 16, 2011 12:08 am
by Inf0Byt3
I don't have the original file anymore, but all I can tell you is that the example was very crude. For another demo, you can have a look at Bytessence PasswordManager which is based on a more advanced plugin architecture allowing for data exchange between the main program and the plugin DLL. For more info see this thread:
http://www.purebasic.fr/english/viewtop ... 27&t=35184
Re: Plugin-Based Apps
Posted: Mon May 16, 2011 3:16 am
by SofT MANiAC
Inf0Byt3 wrote:I don't have the original file anymore, but all I can tell you is that the example was very crude. For another demo, you can have a look at Bytessence PasswordManager which is based on a more advanced plugin architecture allowing for data exchange between the main program and the plugin DLL. For more info see this thread:
http://www.purebasic.fr/english/viewtop ... 27&t=35184
thanks!!