Click here to Skip to main content
16,007,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: enum problem Pin
stevenson25-Sep-02 17:31
stevenson25-Sep-02 17:31 
GeneralRe: enum problem Pin
Todd Smith25-Sep-02 18:31
Todd Smith25-Sep-02 18:31 
GeneralRe: enum problem Pin
stevenson25-Sep-02 20:04
stevenson25-Sep-02 20:04 
GeneralRe: enum problem Pin
Todd Smith26-Sep-02 7:26
Todd Smith26-Sep-02 7:26 
GeneralRe: enum problem Pin
Michael Dunn25-Sep-02 19:16
sitebuilderMichael Dunn25-Sep-02 19:16 
GeneralRe: enum problem Pin
Mike Nordell25-Sep-02 20:26
Mike Nordell25-Sep-02 20:26 
GeneralRe: enum problem Pin
stevenson25-Sep-02 21:32
stevenson25-Sep-02 21:32 
GeneralRe: enum problem Pin
Mike Nordell26-Sep-02 12:16
Mike Nordell26-Sep-02 12:16 
stevenson wrote:
It's about hydrology, something relative to water system, where sensors are used to measure the water level of a river or a reservior.

OK. But what is it you want to explain/quantify with this bitset/flags/enum/whatever-it-becomes? The types of sensors present at a particular station? The stations "purpose"?

If this data is to tell what types of sensors are present, and it just happens that there is more than 32 possible sensor types, what about creating an enum of (not as bit-flags, but as simply counting upwards) and put them in a collection (e.g. std::set, vector, ...)?

If you have 32 < nTypes <= 64, you could use a (non-portable) unsigned __int64 data type, but then an enum is out of the question (MSVC6 is unfortunately hard-coded to use 32-bit enums no matter how small they are - I don't know if VC7 allows >32-bit enums).
GeneralRe: enum problem Pin
stevenson25-Sep-02 21:36
stevenson25-Sep-02 21:36 
Questionmay i set different x an y values at the exect lParam's location? Pin
imran_rafique25-Sep-02 15:51
imran_rafique25-Sep-02 15:51 
Questionmay i set different x an y values at the exect lParam location? Pin
imran_rafique25-Sep-02 15:41
imran_rafique25-Sep-02 15:41 
AnswerRe: may i set different x an y values at the exect lParam location? Pin
Christian Graus25-Sep-02 15:52
protectorChristian Graus25-Sep-02 15:52 
General32-bit Console & Multithreading:: C++ Pin
valikac25-Sep-02 15:21
valikac25-Sep-02 15:21 
GeneralRe: 32-bit Console & Multithreading:: C++ Pin
Dave Bryant25-Sep-02 15:58
Dave Bryant25-Sep-02 15:58 
GeneralRe: 32-bit Console & Multithreading:: C++ Pin
valikac25-Sep-02 15:55
valikac25-Sep-02 15:55 
GeneralRe: 32-bit Console & Multithreading:: C++ Pin
Daniel Turini25-Sep-02 19:24
Daniel Turini25-Sep-02 19:24 
QuestionHow to use Drag n drop on outllook 2000 Pin
rev25-Sep-02 14:33
rev25-Sep-02 14:33 
QuestionOutputDebugString? Pin
imran_rafique25-Sep-02 12:08
imran_rafique25-Sep-02 12:08 
AnswerRe: OutputDebugString? Pin
Joaquín M López Muñoz25-Sep-02 12:11
Joaquín M López Muñoz25-Sep-02 12:11 
GeneralRe: OutputDebugString? Pin
imran_rafique25-Sep-02 12:27
imran_rafique25-Sep-02 12:27 
GeneralRe: OutputDebugString? Pin
Daniel Turini25-Sep-02 19:26
Daniel Turini25-Sep-02 19:26 
GeneralMDI and DIALOG Pin
Lucky200225-Sep-02 11:25
Lucky200225-Sep-02 11:25 
GeneralRe: MDI and DIALOG Pin
Eugene Pustovoyt25-Sep-02 18:45
Eugene Pustovoyt25-Sep-02 18:45 
GeneralRe: MDI and DIALOG Pin
Lucky200226-Sep-02 1:38
Lucky200226-Sep-02 1:38 
GeneralRe: MDI and DIALOG Pin
Eugene Pustovoyt26-Sep-02 18:06
Eugene Pustovoyt26-Sep-02 18: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.