Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

[VW 7.1] Callbacks
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?



Report this thread to moderator Post Follow-up to this message
Old Post
stalk
06-03-05 08:58 AM


Re: [VW 7.1] Callbacks
stalk 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
-

Report this thread to moderator Post Follow-up to this message
Old Post
Reinout Heeck
06-03-05 02:08 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Smalltalk archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:43 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.