I am trying to write a function that will be contained in a DLL that will report back to the main program window once something is done. I do not want to loop or use a timer to constanly call a function because it will use way too much resources.

I think that i need a call back function inside the dll but im unsure how exactly it will work. Can someone paste some code showing how I go about doing this please?