March 28, 2024, 04:55:49 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Another DLL question - I think

Started by Rock Ridge Farm (Larry), September 14, 2006, 03:07:17 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rock Ridge Farm (Larry)

I want to write a program that will call modules based on menu selections.
Would the 'other' programs be DLL's?
The main program would open a window with a menu and based on some internal
registration data open a dll (sub function) in the same window.
Sort of like blocks - main block is the menu - block 1 - n are menu items compiled
as dll's.
Does this make sense?

Haim

Just out of curiosity, why is that needed?
In what way would this application differ from a standard application with with a menu, where menu item selection is handled in the window handler?

Rock Ridge Farm (Larry)

Add on components to a project.
Each module is sole separately and has a different but related function.

Zen

If you give me untill the weekend Larry, i made a nice plugin system, which i guess is the same as modules, you have a main program that uses the plugin manager class, then for each module in the plugins directory when the main program is run, it runs the PluginInit function and if successfull, adds it to a menu, toolbar or custom place.

There is no documentation with my system as of yet but i would happily talk you through it.

Lewis

Rock Ridge Farm (Larry)

Sounds like what I need - let me know as soon as it is ready.
Thanks.

J B Wood (Zumwalt)

This is also something I am in need of.
I am working on 3 different physics engines right now, Ageia, ODE and Newton, I want to be able to have a way to detect a certain dat file in a folder and update components and availability through that.

kryton9

I really like the sound of this sort of system. Great idea, will love to see an example of this sort of setup.

Zen

Its already working fine. I just wont be back home untill the weekend. So i will post it in the software projects forum when i get home.

Also, it will be a part of CCL in its next release.

Lewis

Ionic Wind Support Team

Of course the easiest method is using the Windows API funciton LoadLibrayA, GetProcAddress and FreeLibraryA.   Function pointers have been available in Aurora for quite a while (indirect calling).  I think there is a code sample somewhere on the forums that wrapped those functions into an easy subroutine, haven't searched for it.

Paul.
Ionic Wind Support Team

Parker

CLibrary class: http://www.ionicwind.com/forums/index.php?topic=874.0

It's really simple, just a wrapper for LoadLibrary, FreeLibrary, and GetProcAddress.

Ionic Wind Support Team

Thanks Parker, knew I had seen that somewhere ;)
Ionic Wind Support Team

Zen

Well mine is basicly a wrapper for that. But also has some "framework" classes to make and run plug-in's nice and easy, also has a plugin manager class which is really simple to setup.

Lewis

Rock Ridge Farm (Larry)

Parker - still waiting for your version.
Had no idea how to make the other one work.
Got errors about Clibrary.lib - must be more to it than the code that was posted.
Remember - I am old - need much detail and explanation.

LarryMc

Quote from: Rock Ridge Farm (Larry) on September 15, 2006, 08:13:23 AM
Remember - I am old - need much detail and explanation.
Let's see......I was in Basic Training when John F. Kennedy was asassinated.ÂÃ, 
Do I qualify; because I need much detail and explanation too! ;)

LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

J B Wood (Zumwalt)

I can't wait to use Zens framework, it sounds very promising.

Parker

Hmm? I didn't have a CLibrary.lib anywhere. Maybe you had done something else. To use, cut the class declaration out and put it in CLibrary.inc, and put the source file in your project. Then include CLibrary.inc and define a CLibrary class to use.

Zumwalt, if you're interested in plugins I've got a system that works and I can explain.

J B Wood (Zumwalt)

I am very interested in a plugin system.

Rock Ridge Farm (Larry)

Mmmm that would make you about 2 years older than me.
I got drafted shortly after high school - you were about to get our by then unless you were RA.
173rd and 101 - got out in oct 68.

LarryMc

I stayed in approx. 10 years, 10 months, and 2 days....approx. ;)
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

J B Wood (Zumwalt)

11 months 28 days, 2 days short of 1 year for medical pay. 131'st engineers devision national guard, desert storm, honerable discharge, medical disibility, without disibility benefits because of 2 days

now where is da plugin stuff :)

LarryMc

I was a 'sputter butt' (AF)
Spent more time in the Pacific than I did stateside.
Viet Nam Service and Campaign medals with 2 campaign stars.
Nine combat missions and 27 combat support missions out of Clark AB PI.
Worked on Autopilots, compass systems, navigation computers, forward looking and terrain following radar, and weaspons control systems.
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

kryton9

Thanks for your service guys, I know I appreciate it!!

Zen

Hi guys. Sorry for the delay, I didnt get chance to go home this weekend so I am afraid you will have to wait untill this weekend now.

Zumwalt, I wouldnt say it was a framework, although i would like to develop it further when i have the time. It was just something i did that met my needs at the time and I then decided it would become part of CCL.

Lewis

Rock Ridge Farm (Larry)

Ok Lewis - I have been patient. You keep letting other stuff like family, eating and paying the rent
get in the way. Is it done yet?  ;D
Bet you are glad you do not work for me. :)

J B Wood (Zumwalt)

I know about delays, I am in delay at the moment do to morning. As in, I just found out last night one of my best friends from Ohio died do to complications with his diabetes and anerexia. He actually died back in July but no one got ahold of me and let me know, I just figured he was traveling again. Right now I am still in shock and probably will be for a few days. No rush. Frankly I don't feal like even being at work today, but I got things I need to get done.