Just a sample of the Echomail archive
[ << oldest | < older | list | newer > | newest >> ]
|  Message 510  |
|  Anton Shepelev to Andy Gorman  |
|  Arrays and unmanaged code  |
|  24 Jun 21 19:20:02  |
 MSGID: 2:221/6.0 60d4b0b0 REPLY: 1:229/426.52 636c461b PID: SmapiNNTPd/Linux/IPv6 1.3 20210401 CHRS: CP437 2 TZUTC: 0300 TID: hpt/lnx 1.9.0-cur 2021-05-15 Andy Gorman: AS> I am trying to return an array from my newly functioning AS> Delphi DLL. I know that I can't pass a dynamic array AS> back but I'm running into getting the array pointer set AS> to the right size (I keep getting buffer overruns). AS> Does anyone have any small code snipets that can point AS> me in the right direction? Could publish the prototype and specification for the DLL function that you are trying to write? If were doing it, I should pass the address of the first array element, because it would be also the start of the raw array data in memory. Of course, a sufficient number of elemnts would have to be pre-allolcatd in the calling code, and you can also pass that, to make sure the DLL does not try to write past the array boundary. --- * Origin: nntp://news.fidonet.fi (2:221/6.0) SEEN-BY: 1/123 14/0 90/1 120/340 123/131 129/305 226/30 227/114 702 SEEN-BY: 229/424 426 428 550 616 700 1016 1017 240/5832 249/206 317 SEEN-BY: 249/400 282/1038 292/854 298/25 26 301/1 317/3 322/757 342/200 SEEN-BY: 633/280 PATH: 221/6 301/1 229/426 317/3 298/25 14/0 229/426 |
[ << oldest | < older | list | newer > | newest >> ]