목요일, 9월 24, 2009

Delphi "int Array" to type casting "int*" in C/C++

//
// Delphi (bufInt: Array[..] of integer) to type casting (int* pBufInt) in C/C++;
// http://coding.derkeiler.com/Archive/Delphi/alt.comp.lang.borland-delphi/2004-11/0258.html
//
// Trick: Pointer( @effect[0] )
// Prototype in C/C++: void func(int* pBufInt);
//
// Use in Delphi:
// var bufInt: Array[0..3] of integer;
// func( Pointer(@effect[0]) );
//

-----
Cheers,
June

댓글 없음:

댓글 쓰기