Click here to Skip to main content
15,892,199 members
Home / Discussions / C#
   

C#

 
AnswerRe: How do you store a bunch of values in a 20x20 array Pin
PIEBALDconsult23-Jul-09 15:34
mvePIEBALDconsult23-Jul-09 15:34 
GeneralRe: How do you store a bunch of values in a 20x20 array Pin
Nathan Revka23-Jul-09 17:06
Nathan Revka23-Jul-09 17:06 
AnswerRe: How do you store a bunch of values in a 20x20 array Pin
musefan23-Jul-09 22:08
musefan23-Jul-09 22:08 
AnswerRe: How do you store a bunch of values in a 20x20 array Pin
RugbyLeague23-Jul-09 23:11
RugbyLeague23-Jul-09 23:11 
Question[MarshalAs()] attribute and Marshal.SizeOf() Issue Pin
Don Marino23-Jul-09 10:35
Don Marino23-Jul-09 10:35 
AnswerRe: [MarshalAs()] attribute and Marshal.SizeOf() Issue Pin
Luc Pattyn23-Jul-09 12:04
sitebuilderLuc Pattyn23-Jul-09 12:04 
GeneralRe: [MarshalAs()] attribute and Marshal.SizeOf() Issue Pin
Don Marino24-Jul-09 1:27
Don Marino24-Jul-09 1:27 
GeneralRe: [MarshalAs()] attribute and Marshal.SizeOf() Issue Pin
Luc Pattyn24-Jul-09 1:37
sitebuilderLuc Pattyn24-Jul-09 1:37 
Hi,

some comments:

0.
I now see you were referring to the MISSING_TRANS[] array inside REGISTER_TOTALS, not MISSING_TRANS itself.

1.
as I've told you before your MISSING_TRANS was defined as a class, not a struct; that is where you went wrong. Make it a struct, and its data will sit right in the array of fixed size inside REGISTER_TOTALS. As long as MISSING_TRANS is a class all REGISTER_TOTALS can do is hold pointers to it's instances.

2.
I'm not sure whether REGISTER_TOTALS will Marshal fine as that is a class too; consider making it a struct!

3.
FYI: references/pointers would take 4 bytes each on Win32 and 8 on Win64. IntPtr takes care of that, however a lot of P/Invoke examples are plain wrong in this respect.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: [MarshalAs()] attribute and Marshal.SizeOf() Issue Pin
Don Marino24-Jul-09 3:32
Don Marino24-Jul-09 3:32 
GeneralRe: [MarshalAs()] attribute and Marshal.SizeOf() Issue Pin
Luc Pattyn24-Jul-09 12:41
sitebuilderLuc Pattyn24-Jul-09 12:41 
QuestionWhy do I get a "Cross thread" Exception? Pin
David8001C23-Jul-09 8:32
David8001C23-Jul-09 8:32 
AnswerRe: Why do I get a "Cross thread" Exception? Pin
Luc Pattyn23-Jul-09 8:41
sitebuilderLuc Pattyn23-Jul-09 8:41 
GeneralRe: Why do I get a "Cross thread" Exception? Pin
David8001C23-Jul-09 8:49
David8001C23-Jul-09 8:49 
GeneralRe: Why do I get a "Cross thread" Exception? Pin
Luc Pattyn23-Jul-09 9:03
sitebuilderLuc Pattyn23-Jul-09 9:03 
GeneralRe: Why do I get a "Cross thread" Exception? Pin
David8001C23-Jul-09 9:11
David8001C23-Jul-09 9:11 
GeneralRe: Why do I get a "Cross thread" Exception? Pin
Luc Pattyn23-Jul-09 9:21
sitebuilderLuc Pattyn23-Jul-09 9:21 
GeneralRe: Why do I get a "Cross thread" Exception? Pin
Luc Pattyn23-Jul-09 13:12
sitebuilderLuc Pattyn23-Jul-09 13:12 
AnswerRe: Why do I get a "Cross thread" Exception? Pin
PIEBALDconsult23-Jul-09 8:42
mvePIEBALDconsult23-Jul-09 8:42 
QuestionHow to copy assembly from GAC to local drive ? Pin
hdv21223-Jul-09 8:06
hdv21223-Jul-09 8:06 
AnswerRe: How to copy assembly from GAC to local drive ? Pin
Ian McCaul23-Jul-09 8:20
Ian McCaul23-Jul-09 8:20 
AnswerRe: How to copy assembly from GAC to local drive ? Pin
stancrm23-Jul-09 9:17
stancrm23-Jul-09 9:17 
AnswerRe: How to copy assembly from GAC to local drive ? Pin
Abhijit Jana23-Jul-09 10:13
professionalAbhijit Jana23-Jul-09 10:13 
QuestionLittle conversion problem from visual basic to c# Pin
Member 474292223-Jul-09 7:42
Member 474292223-Jul-09 7:42 
AnswerRe: Little conversion problem from visual basic to c# Pin
0x3c023-Jul-09 7:48
0x3c023-Jul-09 7:48 
GeneralRe: Little conversion problem from visual basic to c# Pin
PIEBALDconsult23-Jul-09 7:58
mvePIEBALDconsult23-Jul-09 7:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.