I built it, it failed...
I changed typdef to typedef , added an export file, built it again, and it made a DLL file fine... but then when I tried to call it from VB the IDE crashed

Does void* ptr mean I pass the address of the function as a Long (from VB)?
I'm not sure how to declare it.