Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
GeneralRe: Text.Length Command Pin
asquaredtech9-Jan-09 19:20
asquaredtech9-Jan-09 19:20 
GeneralRe: Text.Length Command Pin
Guffa9-Jan-09 20:10
Guffa9-Jan-09 20:10 
QuestionMultiple values in a querystring Pin
ferronrsmith9-Jan-09 8:48
ferronrsmith9-Jan-09 8:48 
AnswerRe: Multiple values in a querystring Pin
sudhanvag10-Jan-09 5:18
sudhanvag10-Jan-09 5:18 
GeneralRe: Multiple values in a querystring Pin
ferronrsmith10-Jan-09 9:55
ferronrsmith10-Jan-09 9:55 
GeneralRe: Multiple values in a querystring Pin
sudhanvag10-Jan-09 15:59
sudhanvag10-Jan-09 15:59 
QuestionRead and copy .docx Pin
Xtrme_XJ9-Jan-09 8:23
Xtrme_XJ9-Jan-09 8:23 
Questionunisgned integers and global cases in C# Pin
Xarzu9-Jan-09 7:54
Xarzu9-Jan-09 7:54 
I am used to C++ more than C#.

In C++ you have header files and you have the ability to declare states. For example, you can declare a series of unsigned integers to be for a variety of different states to later use in switch statements or if-then statements.

Since C# does not have the same sort of structure with header files, how would I impliment a simular functionality in C#?

The reason why I want to use UINT is because you can do that super cool bit-wise and and or with them. Remember those good ol' days? You could define four different conditions like this:

UINT state_001 2
UINT state_002 4
UINT state_003 8
UINT state_004 16

Then a variable can be any one state or any combination of states. To assign a variable a particular state, you do a bitwise and to the variable. To see if the variable was set to any of the states, you do a bitwise or.

How would that look like in Visual C#?
AnswerRe: unisgned integers and global cases in C# Pin
Eddy Vluggen9-Jan-09 8:24
professionalEddy Vluggen9-Jan-09 8:24 
AnswerRe: unisgned integers and global cases in C# Pin
JByrd20069-Jan-09 9:02
JByrd20069-Jan-09 9:02 
AnswerRe: unisgned integers and global cases in C# Pin
Guffa9-Jan-09 17:52
Guffa9-Jan-09 17:52 
Questionany body idea in viterbi algorithm Pin
lawrenceinba9-Jan-09 7:39
lawrenceinba9-Jan-09 7:39 
AnswerRe: any body idea in viterbi algorithm Pin
Christian Graus9-Jan-09 7:46
protectorChristian Graus9-Jan-09 7:46 
GeneralRe: any body idea in viterbi algorithm Pin
lawrenceinba9-Jan-09 8:00
lawrenceinba9-Jan-09 8:00 
AnswerRe: any body idea in viterbi algorithm Pin
EliottA9-Jan-09 8:01
EliottA9-Jan-09 8:01 
GeneralRe: any body idea in viterbi algorithm Pin
Luc Pattyn9-Jan-09 8:20
sitebuilderLuc Pattyn9-Jan-09 8:20 
GeneralRe: any body idea in viterbi algorithm Pin
Eddy Vluggen9-Jan-09 8:40
professionalEddy Vluggen9-Jan-09 8:40 
GeneralRe: any body idea in viterbi algorithm Pin
Luc Pattyn9-Jan-09 9:55
sitebuilderLuc Pattyn9-Jan-09 9:55 
GeneralRe: any body idea in viterbi algorithm Pin
Eddy Vluggen9-Jan-09 11:03
professionalEddy Vluggen9-Jan-09 11:03 
QuestionHow to export a bitmap from a crystal report? Pin
davebarkshire9-Jan-09 6:00
davebarkshire9-Jan-09 6:00 
AnswerRe: How to export a bitmap from a crystal report? Pin
DaveyM699-Jan-09 7:11
professionalDaveyM699-Jan-09 7:11 
GeneralRe: How to export a bitmap from a crystal report? Pin
c0ax_lx12-Jan-09 2:02
c0ax_lx12-Jan-09 2:02 
GeneralRe: How to export a bitmap from a crystal report? Pin
DaveyM6912-Jan-09 6:31
professionalDaveyM6912-Jan-09 6:31 
GeneralRe: How to export a bitmap from a crystal report? Pin
c0ax_lx12-Jan-09 22:17
c0ax_lx12-Jan-09 22:17 
GeneralRe: How to export a bitmap from a crystal report? Pin
DaveyM6913-Jan-09 1:13
professionalDaveyM6913-Jan-09 1:13 

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.