Call Back Function in Access

D

DS

I need to write a call back function for Access in VB does anyone know
where to start, cause I don't.
Thanks
DS
 
S

Stephen Lebans

With A2K or later the AddressOf method that is exposed by VB is
supported in Access as well. Which API are you trying to use?

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
D

DS

Stephen said:
With A2K or later the AddressOf method that is exposed by VB is
supported in Access as well. Which API are you trying to use?

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
Once again it has to do with Printing.....its a function a module that I
have from Epson Printers. This is it.

Declare Function BiSetStatusBackWnd Lib "EpsStmApi3.Dll" _
(ByVal nHandle As Long, ByVal hWnd As Long, ByRef lpStatus As Long) _
As Long

Basically the printer is always sending a current status on itself, this
function is suppose to grab that info and send it through a
window....?!!%$##

It's also an On Click Event for registered buttons????

I'm just repeating what I heard.

Anyways the end result is that the printer will send a message when it's
off-line and a form will pop up stating as such. I have more info if
needed.
Thanks
DS
 
S

Stephen Lebans

I would guess that they are sending a custom Message to the Window you
register with the call to their BiSetStatusBackWnd API. You would
normally process this Message in your Window Message handler function.
The other method is to supply the address of custom function you write
that the DLL calls whenever a status notification is desired/required.

But Epson must have given you API docs for their DLL. It would all be
explained in detail there.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Top