I couldn't agree more. Get a copy of Lint, Use it, and don't worry about the STL marketing hype.
M
mef526
@mef526
Posts
-
forophobia -
Transferring arrays from C DLL's to VB.NetTransferring arrays from C DLL's to VB.Net I have a DLL written in C. This DLL reads a text file and creates a several very large arrays, 500,000 points and even larger. I would like the get the data in VB.Net so that I can plot it. Presently I am creating an equally sized array in VB and copying the data from the DLL's array into the VB array. There must be a better way. I looked into using a SAFEARRAY but it looks to me that VB.Net doesn't use them as a native array structure. Can I get the DLL's pointer to the array and use it in VB.Net? Can I otherwise package the array in the DLL so that I do not need to duplicate it?