Click here to Skip to main content
15,910,661 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralToolbar icons not working Pin
jain anant24-May-05 22:41
jain anant24-May-05 22:41 
GeneralA __gc problemo Pin
Fernando A. Gomez F.24-May-05 13:32
Fernando A. Gomez F.24-May-05 13:32 
GeneralRe: A __gc problemo Pin
ursus zeta28-May-05 7:44
ursus zeta28-May-05 7:44 
QuestionHow do I call a managed dll method from an unmanaged dll method? Pin
leweyboy24-May-05 1:21
leweyboy24-May-05 1:21 
AnswerRe: How do I call a managed dll method from an unmanaged dll method? Pin
Anonymous24-May-05 12:29
Anonymous24-May-05 12:29 
GeneralRe: How do I call a managed dll method from an unmanaged dll method? Pin
geekisi7724-Jul-05 18:55
geekisi7724-Jul-05 18:55 
Generalbools to bits Pin
richiemac23-May-05 23:58
richiemac23-May-05 23:58 
GeneralRe: bools to bits Pin
toxcct24-May-05 1:21
toxcct24-May-05 1:21 
easy Big Grin | :-D

bool b0, b1, b2, b3, b4, b5, b6, b7;    <font color=green>// i consider here that b0 is the less significant bit

 
// initialization of your 8 booleans here...</font>
 
<font color=blue>char</font> c = b0 * 0x01 |
         b1 * 0x02 |
         b2 * 0x04 |
         b3 * 0x08 |
         b4 * 0x10 |
         b5 * 0x20 |
         b6 * 0x40 |
         b7 * 0x80;

as you know that to obtain the value of a byte with once bit set to 1, the remaining unset (set to 0), the mask formula is : bn * 2^n
---------------------------------------------------------
|  b7  |  b6  |  b5  |  b4  |  b3  |  b2  |  b1  |  b0  |
---------------------------------------------------------
  2^7    2^6    2^5    2^4    2^3    2^2    2^1    2^0
  0x80   0x40   0x20   0x10   0x08   0x04   0x02   0x01


(ps:this was not a managed C++ question to my sense because you can easily convert bools to booleans and chars to bytes)


TOXCCT >>> GEII power
[toxcct][VisualCalc]
GeneralRe: bools to bits Pin
richiemac24-May-05 2:05
richiemac24-May-05 2:05 
Generalxml Problem Pin
Saksida Bojan22-May-05 9:14
Saksida Bojan22-May-05 9:14 
GeneralRe: xml Problem Pin
Christian Graus22-May-05 12:58
protectorChristian Graus22-May-05 12:58 
GeneralRe: xml Problem Pin
Saksida Bojan22-May-05 20:38
Saksida Bojan22-May-05 20:38 
GeneralRe: xml Problem Pin
Christian Graus23-May-05 1:18
protectorChristian Graus23-May-05 1:18 
GeneralRe: xml Problem Pin
Saksida Bojan24-May-05 20:07
Saksida Bojan24-May-05 20:07 
GeneralRe: xml Problem Pin
Christian Graus25-May-05 12:42
protectorChristian Graus25-May-05 12:42 
GeneralRe: xml Problem Pin
Saksida Bojan25-May-05 20:36
Saksida Bojan25-May-05 20:36 
Generalxml Problem Pin
Saksida Bojan22-May-05 9:05
Saksida Bojan22-May-05 9:05 
GeneralRe: xml Problem Pin
Shog923-May-05 12:29
sitebuilderShog923-May-05 12:29 
QuestionTextBox-&gt;ResetText () question??? Pin
richiemac20-May-05 1:12
richiemac20-May-05 1:12 
AnswerRe: TextBox-&gt;ResetText () question??? Pin
Saksida Bojan20-May-05 9:09
Saksida Bojan20-May-05 9:09 
GeneralTwo forms Pin
Saksida Bojan18-May-05 0:34
Saksida Bojan18-May-05 0:34 
GeneralRe: Two forms Pin
toxcct18-May-05 21:21
toxcct18-May-05 21:21 
GeneralRe: Two forms Pin
Saksida Bojan18-May-05 23:08
Saksida Bojan18-May-05 23:08 
GeneralRe: Two forms Pin
Christian Graus18-May-05 21:34
protectorChristian Graus18-May-05 21:34 
GeneralRe: Two forms Pin
Saksida Bojan18-May-05 23:06
Saksida Bojan18-May-05 23:06 

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.