Code Comments
Programming Forum and web based access to our favorite programming groups.Can I register with a DLL for callbacks? For instance, a DLL provides a service to clients that want to know when a file arrives in an archive. Can I use the DLL from within VW to register interest and receive notification?
Post Follow-up to this messagestalk wrote: > Can I register with a DLL for callbacks? > > For instance, a DLL provides a service to clients that want to know when a > file arrives in an archive. Can I use the DLL from within VW to register > interest and receive notification? > > Yes. In your docs in the DLLandCConnectGuide.pdf chapter 4 is devoted to 'Calling Smalltalk from C' this includes setting up callbacks. It is all pretty straightforward: Declare it: 1) In DLLCC declare the signature of the registered user function 2) declare the signature of the C callback registration function. Use it: 3) pass a Smalltalk block to that registration function. 4) do stuff so it gets called.... And yes, you can put a 'self halt' in the registered callback :-))) R -
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.