@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.
@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
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:
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: