Referencing control id's in DLLs
- Posted by "Philip Deets" <philip1987 at hotmail.com> Dec 10, 2003
- 511 views
Can a dll create controls on a window? Here is an example program that doesn't work. --prog.dll as eu source include win32lib.ew global procedure add( integer win_id ) VOID = create( Button, "button", win_id, 10, 10, 50, 30, 0 ) end procedure --end prog.dll --prog.exw include win32lib.ew without warning constant win = create(Window,"win",0,Default,Default,100,100,0) constant dll = open_dll( "test.dll" ) xAdd = define_c_proc( dll, "add", { C_INT } ) c_proc( xAdd, {win} ) WinMain( win, Normal ) --end prog.exw I would like for this to have created a window with a button in it. Can I do that at all in a dll? Thanks, Phil