bool « Development « C Array Q&A

Home
C Array Q&A
1.bit
2.Byte
3.char
4.class
5.Development
6.Dimensional Array
7.dynamic
8.element
9.find
10.index
11.initialization
12.Integer
13.length
14.loop
15.memory
16.Operation
17.pointer
18.Print
19.size
20.Sort Search
21.string
22.struct
23.variable
C Array Q&A » Development » bool 

1. How do you get data back from C in a C# instantiated array in an C# interop call?    stackoverflow.com

I would like to instantiate memory for a boolean array in C# and pass this to a C library function using interop. Then the C function should fill up the array ...

2. Initialising a BOOL array to TRUE ??    bytes.com

BOOL bMyarray[1000]; memset(bMyArray , 0xFF, sizeof(BOOL) * 1000); clean & quick until someone else's code found I was returning -1 to mean true Because my BOOL is 4 bytes long, TRUE in memory works out as 01 00 00 00 which is a right pain. Doing it in a for loop is 10 x slower btw. Bit of a numpty question ...

4. bool array    daniweb.com

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.