Click here to Skip to main content
15,885,216 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to use variable in property (attribute) Pin
leppie22-Apr-04 7:12
leppie22-Apr-04 7:12 
AnswerRe: How to use variable in property (attribute) Pin
A.Wegierski22-Apr-04 19:42
A.Wegierski22-Apr-04 19:42 
GeneralExit statment in visual C# Pin
Hemant Mane21-Apr-04 23:54
Hemant Mane21-Apr-04 23:54 
GeneralRe: Exit statment in visual C# Pin
A.Wegierski22-Apr-04 0:19
A.Wegierski22-Apr-04 0:19 
GeneralRe: Exit statment in visual C# Pin
Heath Stewart22-Apr-04 3:01
protectorHeath Stewart22-Apr-04 3:01 
GeneralRe: Exit statment in visual C# Pin
A.Wegierski22-Apr-04 19:59
A.Wegierski22-Apr-04 19:59 
GeneralRe: Exit statment in visual C# Pin
SJ_Phoenix22-Apr-04 0:42
SJ_Phoenix22-Apr-04 0:42 
GeneralC++ Bit Fields implementation in C# Pin
Vini Deep21-Apr-04 23:33
Vini Deep21-Apr-04 23:33 
Hi,

I have a structure declared with bit fields in one of the C++ dll I am calling in my c# application. How can I change it to C# type struct?

typedef unsigned int UINT32;
 

typedef struct DEV_TYPE 
{
  UINT32 ReadCdR        :1;
  UINT32 ReadCdRw       :1;
  UINT32 ReadDvdRom     :1;
  UINT32 ReadDvdRam     :1;
  UINT32 ReadDvdMinusR  :1;
  UINT32 ReadDvdMinusRw :1;
  UINT32 ReadDvdPlusR   :1;
  UINT32 ReadDvdPlusRw  :1;
  UINT32 WriteCdR       :1;
  UINT32 WriteCdRw      :1;
  UINT32 Reserved0      :1;
  UINT32 WriteDvdRam    :1;
  UINT32 WriteDvdMinusR :1;
  UINT32 WriteDvdMinusRw:1;
  UINT32 WriteDvdPlusR  :1;
  UINT32 WriteDvdPlusRw :1;
  UINT32 TapeDrive      :1;
  UINT32 Reserved       :15;
} DEV_TYPE;


I have read in MSDN that C# does not support bit fields. Is there any method to implement this structure in C#? Pls help..

Thanks

Vini
GeneralRe: C++ Bit Fields implementation in C# Pin
A.Wegierski22-Apr-04 1:10
A.Wegierski22-Apr-04 1:10 
GeneralRe: C++ Bit Fields implementation in C# Pin
Vini Deep22-Apr-04 1:31
Vini Deep22-Apr-04 1:31 
GeneralRe: C++ Bit Fields implementation in C# Pin
Member 363026618-Dec-08 19:53
Member 363026618-Dec-08 19:53 
GeneralRe: C++ Bit Fields implementation in C# Pin
Tim Kohler22-Apr-04 1:22
Tim Kohler22-Apr-04 1:22 
GeneralRe: C++ Bit Fields implementation in C# Pin
A.Wegierski22-Apr-04 19:57
A.Wegierski22-Apr-04 19:57 
GeneralRe: C++ Bit Fields implementation in C# Pin
leppie22-Apr-04 7:22
leppie22-Apr-04 7:22 
Generalstruct/class .vs. Datasets Pin
BernardYardley21-Apr-04 23:17
BernardYardley21-Apr-04 23:17 
GeneralRe: struct/class .vs. Datasets Pin
Heath Stewart22-Apr-04 3:07
protectorHeath Stewart22-Apr-04 3:07 
GeneralRe: struct/class .vs. Datasets Pin
BernardYardley22-Apr-04 3:20
BernardYardley22-Apr-04 3:20 
GeneralRe: struct/class .vs. Datasets Pin
Heath Stewart22-Apr-04 4:05
protectorHeath Stewart22-Apr-04 4:05 
GeneralRe: struct/class .vs. Datasets Pin
BernardYardley22-Apr-04 4:33
BernardYardley22-Apr-04 4:33 
GeneralRe: struct/class .vs. Datasets Pin
Heath Stewart22-Apr-04 4:40
protectorHeath Stewart22-Apr-04 4:40 
GeneralRe: struct/class .vs. Datasets Pin
BernardYardley22-Apr-04 4:52
BernardYardley22-Apr-04 4:52 
Generalshowing a bitmap Pin
Amirjalaly21-Apr-04 21:55
Amirjalaly21-Apr-04 21:55 
GeneralRe: showing a bitmap Pin
Mazdak22-Apr-04 0:48
Mazdak22-Apr-04 0:48 
GeneralCreating object instance only known object name Pin
PEDRO_PASAMAR21-Apr-04 21:01
PEDRO_PASAMAR21-Apr-04 21:01 
GeneralRe: Creating object instance only known object name Pin
Bilal Farooq21-Apr-04 22:20
Bilal Farooq21-Apr-04 22:20 

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.