Click here to Skip to main content
15,914,594 members
Home / Discussions / C#
   

C#

 
QuestionCrystal Reports Help Pin
Syed Shahid Hussain6-Sep-06 8:17
Syed Shahid Hussain6-Sep-06 8:17 
AnswerRe: Crystal Reports Help Pin
Nader Elshehabi6-Sep-06 8:45
Nader Elshehabi6-Sep-06 8:45 
GeneralRe: Crystal Reports Help Pin
Syed Shahid Hussain6-Sep-06 9:13
Syed Shahid Hussain6-Sep-06 9:13 
QuestionStatic class with static member and memory allocation Pin
Herhighness6-Sep-06 6:36
Herhighness6-Sep-06 6:36 
AnswerRe: Static class with static member and memory allocation Pin
Jun Du6-Sep-06 7:07
Jun Du6-Sep-06 7:07 
QuestionError message in c# .Net Pin
fady_sayegh6-Sep-06 6:23
fady_sayegh6-Sep-06 6:23 
QuestionVS7 - XSD text editor - IntelliSense (autofill) [modified] Pin
El'Cachubrey6-Sep-06 5:55
El'Cachubrey6-Sep-06 5:55 
QuestionHelp a noob C++ user with C# (union and bitfields) Pin
NYTSX6-Sep-06 5:36
NYTSX6-Sep-06 5:36 
Hi I am trying to learn C# right now on the fly. I want to know if there is a way to implement a bitfield in C# as I would in C++

In C++ I would implement something like this:
typedef struct
{
  union
  {
	unsigned short Value;
	struct
	{
		unsigned short Test1_usec       : 7;
		unsigned short spare1           : 1;
		unsigned short Test1Pass	: 1;
		unsigned short spare2		: 2;
		unsigned short Test1Verify	: 5;
	}Bits;
   }Word1;
   
   union
   {
        unsigned short Value;
        struct
        {
		unsigned short word2Data1       : 12;
		unsigned short spare1           : 4;
	}Bits;
   }Word2;
} ARecvdMessage


what would the C# equivalent be for this struct?

Thanks.
AnswerRe: Help a noob C++ user with C# (union and bitfields) Pin
led mike6-Sep-06 6:37
led mike6-Sep-06 6:37 
GeneralRe: Help a noob C++ user with C# (union and bitfields) Pin
NYTSX6-Sep-06 7:44
NYTSX6-Sep-06 7:44 
GeneralRe: Help a noob C++ user with C# (union and bitfields) Pin
led mike6-Sep-06 9:29
led mike6-Sep-06 9:29 
QuestionUsing propertygrids Pin
Hampus@foi6-Sep-06 4:56
Hampus@foi6-Sep-06 4:56 
AnswerRe: Using propertygrids Pin
led mike6-Sep-06 6:50
led mike6-Sep-06 6:50 
GeneralRe: Using propertygrids Pin
Hampus@foi6-Sep-06 20:01
Hampus@foi6-Sep-06 20:01 
GeneralRe: Using propertygrids Pin
led mike7-Sep-06 4:44
led mike7-Sep-06 4:44 
GeneralCS0029: Cannot Implicitly Convert Type... Pin
code-frog6-Sep-06 4:47
professionalcode-frog6-Sep-06 4:47 
GeneralRe: CS0029: Cannot Implicitly Convert Type... Pin
g00fyman6-Sep-06 4:59
g00fyman6-Sep-06 4:59 
GeneralRe: CS0029: Cannot Implicitly Convert Type... Pin
S. Senthil Kumar6-Sep-06 6:17
S. Senthil Kumar6-Sep-06 6:17 
GeneralRe: CS0029: Cannot Implicitly Convert Type... Pin
code-frog6-Sep-06 12:29
professionalcode-frog6-Sep-06 12:29 
QuestionRunning .net application as both windows and console mode. [modified] Pin
mhadamji6-Sep-06 3:46
mhadamji6-Sep-06 3:46 
AnswerRe: Running .net application as both windows and console mode. Pin
mikone6-Sep-06 4:14
mikone6-Sep-06 4:14 
AnswerRe: Running .net application as both windows and console mode. Pin
Colin Angus Mackay6-Sep-06 4:21
Colin Angus Mackay6-Sep-06 4:21 
QuestionRe: Running .net application as both windows and console mode. Pin
Nader Elshehabi6-Sep-06 5:55
Nader Elshehabi6-Sep-06 5:55 
AnswerRe: Running .net application as both windows and console mode. Pin
Colin Angus Mackay7-Sep-06 9:36
Colin Angus Mackay7-Sep-06 9:36 
GeneralRe: Running .net application as both windows and console mode. Pin
mhadamji6-Sep-06 6:46
mhadamji6-Sep-06 6:46 

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.