0
Reply

Fixing variables (unsafe) - HELP!

david 0

david 0

Oct 21 2003 10:31 PM
2.3k
I need to call a legacy routine that is in a DLL. All of my calls are working except the one I am about to describe. I am fixing a number of scalar and single dimensional arrays with no problems, but am having a problem with this specific case. Any and all help greatly appreciated. extern int DLLFUNCTION(byte **data); The legacy interface is: byte *pOldBuffers[10]; for (int i=1; i<10;++i) pOldBuffers[i] = new byte[somevalue] DLLFUNCTION(pOldBuffers); where each of the 10 entries points to an array of bytes... The C# code has a byte [][] newBuffers = new byte[10][] for (int i=1;i<10;++i) newBuffers[i] = new byte[somevalue]; fix ("I can not figure out the right syntax!!!!" { DLLFUNCTION(pFixed); }