Re: Passing Structs to 'C' Dll
- Posted by "Cuny, David" <David.Cuny at DSS.CA.GOV> Jun 14, 1999
- 401 views
I wrote: > ADDRESS + ( SIZEOF_RGB_ENTRY * (12-1) ) > => ADDRESS + ( SIZEOF_RGB_ENTRY * 11 ) > => ADDRESS + ( 12 * 11 ) > => ADDRESS + 131 This is using the wrong SIZEOF_RGBENTRY, it should be: ADDRESS + ( SIZE_OF_RGBENTRY * (12-1) ) => ADDRESS + ( SIZE_OF_RGBENTRY * 11 ) => ADDRESS + ( 3 * 11 ) => ADDRESS + 33 Mea culpa. -- David Cuny