Click here to Skip to main content
15,914,417 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Platform SDK Pin
David Crow2-Nov-04 2:24
David Crow2-Nov-04 2:24 
Generalvc++ Pin
Member 145406031-Oct-04 19:17
Member 145406031-Oct-04 19:17 
GeneralRe: vc++ Pin
kriaz31-Oct-04 20:03
kriaz31-Oct-04 20:03 
GeneralRe: vc++ Pin
vcplusplus1-Nov-04 3:07
vcplusplus1-Nov-04 3:07 
GeneralRe: vc++ Pin
John M. Drescher1-Nov-04 7:31
John M. Drescher1-Nov-04 7:31 
QuestionHow to read a character at a time from file?? Pin
ConradT31-Oct-04 19:06
ConradT31-Oct-04 19:06 
AnswerRe: How to read a character at a time from file?? Pin
KRowe31-Oct-04 22:34
KRowe31-Oct-04 22:34 
AnswerRe: How to read a character at a time from file?? Pin
David Crow1-Nov-04 4:40
David Crow1-Nov-04 4:40 
QuestionA executable file which has compiled, How to insert it into IE? Pin
hou_12631-Oct-04 17:47
hou_12631-Oct-04 17:47 
AnswerRe: A executable file which has compiled, How to insert it into IE? Pin
KRowe31-Oct-04 20:34
KRowe31-Oct-04 20:34 
GeneralRe: A executable file which has compiled, How to insert it into IE? Pin
hou_12631-Oct-04 20:46
hou_12631-Oct-04 20:46 
GeneralRe: A executable file which has compiled, How to insert it into IE? Pin
KRowe31-Oct-04 21:27
KRowe31-Oct-04 21:27 
GeneralRe: A executable file which has compiled, How to insert it into IE? Pin
hou_12631-Oct-04 21:30
hou_12631-Oct-04 21:30 
GeneralArabic Language Problem Pin
chcnjg31-Oct-04 16:26
chcnjg31-Oct-04 16:26 
GeneralInstalling Visual Studio Pin
Ryan McDermott31-Oct-04 15:37
Ryan McDermott31-Oct-04 15:37 
GeneralRe: Installing Visual Studio Pin
vcplusplus31-Oct-04 16:13
vcplusplus31-Oct-04 16:13 
GeneralCompile with version.lib Pin
picasso231-Oct-04 14:55
picasso231-Oct-04 14:55 
GeneralRe: Compile with version.lib Pin
vcplusplus31-Oct-04 16:18
vcplusplus31-Oct-04 16:18 
GeneralRe: Compile with version.lib Pin
Steve S31-Oct-04 22:44
Steve S31-Oct-04 22:44 
GeneralDownloader and Install files from the WEB (Like the Windows Updates) Pin
programming31-Oct-04 12:04
programming31-Oct-04 12:04 
GeneralRe: Downloader and Install files from the WEB (Like the Windows Updates) Pin
KRowe31-Oct-04 22:29
KRowe31-Oct-04 22:29 
GeneralLoading a Resource into a Stream Pin
Member 21854431-Oct-04 12:04
Member 21854431-Oct-04 12:04 
GeneralRe: Loading a Resource into a Stream Pin
Michael Dunn31-Oct-04 18:30
sitebuilderMichael Dunn31-Oct-04 18:30 
GeneralLookup (Dispatch) Table Pin
Member 569752131-Oct-04 11:59
Member 569752131-Oct-04 11:59 
Hi all:

I am still learning c++, so I will try to describe my problem and what I am try to do the best I can.

The basis of my program is to take data from the Serial I/O Port into a character array and analyze it and do all kinds of stuff with it. Right now what I am trying to do is take a byte (I am working with whole numbers, so my byte would = 2 characters) and compare it against a table of possible matches and if the byte matches, go to the function that corresponds with that byte.

I'll give an example here:

Lets say the whole number integer is 48. Now I want to take 48 and compare it against a list of commands (00 to 99) and if one matches go to the routine of that matching number. so when it compared 48 against 48 in the table it would then call the cmd48() function and go from there.

I hope I have been as clear as possible, so that you can understand what it is I am trying to do.

NOTE: I dont think a switch-Break statement would work since it only checks 1 character and obviously I am not working with only 1 character, so I dont know anything else to use.

Thanks
GeneralRe: Lookup (Dispatch) Table Pin
Ryan Binns31-Oct-04 17:51
Ryan Binns31-Oct-04 17:51 

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.