Click here to Skip to main content
15,886,026 members
Home / Discussions / C#
   

C#

 
GeneralRe: sql c# connection for sign_in Pin
padmanabhan N26-Jun-09 23:40
padmanabhan N26-Jun-09 23:40 
GeneralRe: sql c# connection for sign_in Pin
A_A27-Jun-09 3:17
A_A27-Jun-09 3:17 
QuestionHow to get DiskDrive model if I know the Drive letter Pin
lexx_zone26-Jun-09 10:40
lexx_zone26-Jun-09 10:40 
AnswerRe: How to get DiskDrive model if I know the Drive letter Pin
I Believe In GOD26-Jun-09 13:44
I Believe In GOD26-Jun-09 13:44 
GeneralRe: How to get DiskDrive model if I know the Drive letter Pin
lexx_zone27-Jun-09 1:05
lexx_zone27-Jun-09 1:05 
GeneralRe: How to get DiskDrive model if I know the Drive letter Pin
padmanabhan N27-Jun-09 1:14
padmanabhan N27-Jun-09 1:14 
QuestionArbitrary length bitfields? Pin
Trollslayer26-Jun-09 10:32
mentorTrollslayer26-Jun-09 10:32 
AnswerRe: Arbitrary length bitfields? Pin
Luc Pattyn26-Jun-09 11:01
sitebuilderLuc Pattyn26-Jun-09 11:01 
Hi Elaine,

1.
you can manually create C-style unions in C# using explicit offsets, here is an example:
[StructLayout(LayoutKind.Explicit)]
struct unie {
    [FieldOffset(0)]
    public float f;
    [FieldOffset(0)]
    public byte b;
}

You would be taking full responsibility for the correctness of the offsets! (Mind x86/x64 if you are going to store pointers/references)

2.
I am unaware of a proper way to handle bit fields, other than doing it all with ANDs and SHIFTs. Struct/class properties can hide that stuff for the outside world.

3.
Maybe this Masks and flags using bit fields in .NET[^] can inspire you.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.

GeneralRe: Arbitrary length bitfields? Pin
Trollslayer26-Jun-09 11:04
mentorTrollslayer26-Jun-09 11:04 
QuestionDistribute a sql-based solution Pin
saeidfarahi26-Jun-09 10:09
saeidfarahi26-Jun-09 10:09 
AnswerCross post Pin
Not Active26-Jun-09 10:55
mentorNot Active26-Jun-09 10:55 
AnswerRe: Distribute a sql-based solution Pin
I Believe In GOD26-Jun-09 13:03
I Believe In GOD26-Jun-09 13:03 
GeneralRe: Distribute a sql-based solution Pin
saeidfarahi26-Jun-09 23:31
saeidfarahi26-Jun-09 23:31 
QuestionGoing back to original IF statement if another one returns false Pin
Baeltazor26-Jun-09 9:43
Baeltazor26-Jun-09 9:43 
AnswerRe: Going back to original IF statement if another one returns false Pin
Luc Pattyn26-Jun-09 9:49
sitebuilderLuc Pattyn26-Jun-09 9:49 
AnswerRe: Going back to original IF statement if another one returns false Pin
Christian Graus26-Jun-09 9:56
protectorChristian Graus26-Jun-09 9:56 
AnswerGoing back to original IF statement if another one returns false Pin
PunkIsNotDead26-Jun-09 10:03
PunkIsNotDead26-Jun-09 10:03 
QuestionHelp with DataGridViewComboBoxColumn... Pin
PunkIsNotDead26-Jun-09 9:40
PunkIsNotDead26-Jun-09 9:40 
QuestionGroupbox/panel border problems Pin
Dan Neely26-Jun-09 8:34
Dan Neely26-Jun-09 8:34 
AnswerRe: Groupbox/panel border problems Pin
Luc Pattyn26-Jun-09 9:44
sitebuilderLuc Pattyn26-Jun-09 9:44 
GeneralRe: Groupbox/panel border problems Pin
Dan Neely26-Jun-09 10:05
Dan Neely26-Jun-09 10:05 
GeneralRe: Groupbox/panel border problems Pin
Luc Pattyn26-Jun-09 10:10
sitebuilderLuc Pattyn26-Jun-09 10:10 
GeneralRe: Groupbox/panel border problems Pin
Dan Neely26-Jun-09 10:17
Dan Neely26-Jun-09 10:17 
QuestionProblems with System.Drawing Pin
Rsesky00026-Jun-09 6:10
Rsesky00026-Jun-09 6:10 
AnswerRe: Problems with System.Drawing Pin
musefan26-Jun-09 6:26
musefan26-Jun-09 6:26 

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.