DLLImport Int** - How to do this if it can be done
问题 I am trying to use a third party DLL that wants an int** as one of the parameters to the method. It describes the parameter as the address of the pointer that will point to the memory allocation. Sorry for any confusion. The parameter is two-way I think. The DLL is for talking to an FPGA board and the method is setting up DMA transfer between the host PC and the PCI board. 回答1: Use a by-ref System.IntPtr. [DllImport("thirdparty.dll")] static extern long ThirdPartyFunction(ref IntPtr arg);