now it makes a little more sense although i still think your approach is
wrong (improper use of delegates)
try this:
in your original code replace:
printer.PrintCallback = New PrintCallback
(AddressOf driver.PrintInteger)
printer.PrintCallback(10)
with:
printer.PrintCallback = AddressOf driver.PrintInteger
printer.PrintCallback.invoke(10)
Billy Jacobs wrote:
I forgot to capitalize the line causing the error. It is:
printer.PrintCallback(10)