RE: Shared memory

new topic     » goto parent     » topic index » view thread      » older message » newer message

Philip D. wrote:

<snip>

> This is a little confusing; if you have time, could you give a demo 
> of how to make a main window with a button in it ( button created 
> in DLL).  I was speaking for just a way to do this, not necessarily 
> a way to do it with two win32lib includes.

Yes, I've started coding this up.  I've got wrappers for all global 
functions and procedures for win32lib v0.59.1 for use in a dll, so that 
from the dll's perspective, you can use it almost like you had a local 
copy of win32lib.  The only difference will be that you'll have to get 
the id's of controls created by the main program.  My plan is for the 
main program to call something like:

main_window = create( ... )
publish( "main_window", main_window )

...and then the dll could do something like:

main_window = request( "main_window" )

There will be an include file for your main program, which will do all 
the communication with the dll.  The only thing you'll need to do is to 
tell it which dll to use, and to publish (as above) any required 
information.  I think this should be able to work dynamically, so that, 
for instance, a user could add a component during runtime.

I should have something ready for testing in a couple of days.

Matt Lewis

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu