I have a 3rd party DLL that I need to use in a c# application (.net 4.6.1). This is a 64 bit DLL, but I have a 32 bit version as well. The DLL is used successfully in vba (excel 64 bit) as follows: Declaration: Private Declare PtrSafe Function TheFunction [...] read more