Click here to Skip to main content
15,893,814 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I really need help here! guru plz help Pin
YaronNir16-Dec-03 22:13
YaronNir16-Dec-03 22:13 
GeneralRe: I really need help here! guru plz help Pin
sam India16-Dec-03 22:48
sam India16-Dec-03 22:48 
GeneralRe: I really need help here! guru plz help Pin
YaronNir16-Dec-03 22:54
YaronNir16-Dec-03 22:54 
GeneralRe: I really need help here! guru plz help Pin
sam India16-Dec-03 23:58
sam India16-Dec-03 23:58 
GeneralRe: I really need help here! guru plz help Pin
YaronNir17-Dec-03 1:10
YaronNir17-Dec-03 1:10 
GeneralProblems recompiling under VC.Net Pin
James Spibey16-Dec-03 21:32
James Spibey16-Dec-03 21:32 
GeneralRe: Problems recompiling under VC.Net Pin
Prakash Nadar16-Dec-03 21:42
Prakash Nadar16-Dec-03 21:42 
Generalmany if else if Pin
Jerome Conus16-Dec-03 21:23
Jerome Conus16-Dec-03 21:23 
Hi !

In my application, I had to test many strings and (as the keyword 'case' is not usable for strings) I did something like this :

if (MyString==THIS_STRING)
{
}
else if (MyString==THAT_STRING)
{
}
else if (MyString==ANOTHER_STRING)
{
...
...
...
else
{
}

The problem is that I have to compare my string with more than 128 possible strings, and I discovered this morning that the compiler (Visual C++ 6) is not able to cope with more than 128 if's !!!!

Any idea on what would be a nice workaround for this limitation ?

Thanks !
Jerome
GeneralRe: many if else if Pin
jhwurmbach16-Dec-03 21:32
jhwurmbach16-Dec-03 21:32 
GeneralRe: many if else if Pin
Prakash Nadar16-Dec-03 21:35
Prakash Nadar16-Dec-03 21:35 
GeneralRe: many if else if [modified] Pin
Marek Grzenkowicz16-Dec-03 23:44
Marek Grzenkowicz16-Dec-03 23:44 
GeneralRe: many if else if Pin
Ian Darling17-Dec-03 0:17
Ian Darling17-Dec-03 0:17 
GeneralRe: many if else if Pin
Ian Darling17-Dec-03 0:16
Ian Darling17-Dec-03 0:16 
General"sys/ioctl.h" Pin
zhaopzhi16-Dec-03 21:20
zhaopzhi16-Dec-03 21:20 
GeneralRe: "sys/ioctl.h" Pin
forjer16-Dec-03 22:21
forjer16-Dec-03 22:21 
GeneralCMemDc help Pin
satadru16-Dec-03 21:17
satadru16-Dec-03 21:17 
GeneralRe: CMemDc help Pin
Monty216-Dec-03 21:46
Monty216-Dec-03 21:46 
GeneralRe: CMemDc help Pin
satadru17-Dec-03 21:27
satadru17-Dec-03 21:27 
GeneralConnect network drive Pin
AnTri16-Dec-03 21:14
AnTri16-Dec-03 21:14 
Questionhow to get the absolute path(full path) for the file which is printed ??? Pin
skpanda16-Dec-03 21:12
skpanda16-Dec-03 21:12 
GeneralWaiting for thread closure Pin
Anonymous16-Dec-03 20:31
Anonymous16-Dec-03 20:31 
GeneralRe: Waiting for thread closure Pin
geo_m16-Dec-03 21:30
geo_m16-Dec-03 21:30 
GeneralMFC dialogs without a resource. Pin
Janovetz16-Dec-03 18:15
Janovetz16-Dec-03 18:15 
GeneralRe: MFC dialogs without a resource. Pin
John Silvester16-Dec-03 18:36
John Silvester16-Dec-03 18:36 
GeneralWindow Subclassing Pin
SiddharthAtw16-Dec-03 17:33
SiddharthAtw16-Dec-03 17:33 

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.