I'm using a function in a third-party DLL library that takes a callback function as a parameter. The library was written and C#, but it seems to be perfectly compatible with VB. The only problem I'm having is figuring out how to pass one of the functions a callback function. Here is how the function is declared:
So I'm assuming it wants a function with a single unsigned long parameter. Any ideas?
VB.NET:
public void DownloadFile(string path, Stream output, Action<ulong> downloadCallback = null)
So I'm assuming it wants a function with a single unsigned long parameter. Any ideas?