Question 1, under the c + +, can directly to read into the buffer by pointer, but c # by marshal copies data from an unmanaged memory to managed memory, can step after processing, seriously affected the performance of the system,
Question 2, c + + to compatible with 32-bit applications and the need of 64 drivers, a pointer to a buffer requirement function must be 64, but c # intptr digit lack is determined by the platform, is a 32 bit 32-bit compiler environment, a 64 - bit environment is 64 bit, both digits cannot match,
Above is the two problems, did not know with what method to solve, please tell Daniel to the younger brother to give directions,
CodePudding user response:
The software itself also has a 32-bit and 64 - bit versionCodePudding user response:
1. So do2. Can a single seal a 64 - bit into application EXE to ZhuanGan dynamic libraries, and then you main process via TCP/IP or HTTP listener and so on with the EXE communications