On Sun, Nov 23, 2003 at 02:43:51PM -0800, Bob Barr wrote: > On Sun, 23 Nov 2003 16:43:17 -0500, Byron A Jeff wrote: > > > > > >To reiterate the question: When I load a DLL, the DLL's symbols are visible > >to "the main EXE windows App" as you call it. However the reverse is not true: > >symbols in the main EXE windows App are not visible to the DLL. How can I make > >that happen? > > > > IIRC, typically the address of the function to be 'called back' is > passed as a "pointer to function" parameter. The subroutine being > called can then use that address whenever it needs to invoke some > function in the calling code's scope. Similar to the process of accessing symbols of a hand loaded DLL. I could live with that, but there are about a dozen symbols that would need to be mapped. I guess I got spoiled because the GNU linker has an option that exports symbols from an executable, so when a shared library is loaded, any symbols used by the shared library that's in the main executable are automatically linked. I was just trying to find similar functionality. BAJ -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads