Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralHide logical disk compeletely Pin
faroqtam31-Oct-04 10:31
faroqtam31-Oct-04 10:31 
GeneralRe: Hide logical disk compeletely Pin
David Crow1-Nov-04 6:21
David Crow1-Nov-04 6:21 
GeneralSome help of how i can send files remotely in network. Pin
faroqtam31-Oct-04 10:09
faroqtam31-Oct-04 10:09 
GeneralRe: Some help of how i can send files remotely in network. Pin
KRowe31-Oct-04 21:03
KRowe31-Oct-04 21:03 
GeneralConnection to MS Access Database Pin
WinAPILearner31-Oct-04 8:08
WinAPILearner31-Oct-04 8:08 
GeneralRe: Connection to MS Access Database Pin
David Crow1-Nov-04 6:27
David Crow1-Nov-04 6:27 
GeneralRe: Connection to MS Access Database Pin
WinAPILearner1-Nov-04 21:34
WinAPILearner1-Nov-04 21:34 
GeneralRe: Connection to MS Access Database Pin
David Crow2-Nov-04 2:30
David Crow2-Nov-04 2:30 
GeneralRe: Connection to MS Access Database Pin
David Crow2-Nov-04 7:48
David Crow2-Nov-04 7:48 
GeneralRe: Connection to MS Access Database Pin
David Crow2-Nov-04 8:04
David Crow2-Nov-04 8:04 
GeneralRe: Connection to MS Access Database Pin
WinAPILearner2-Nov-04 10:09
WinAPILearner2-Nov-04 10:09 
GeneralRe: Connection to MS Access Database Pin
David Crow2-Nov-04 10:24
David Crow2-Nov-04 10:24 
GeneralRe: Connection to MS Access Database Pin
WinAPILearner2-Nov-04 20:12
WinAPILearner2-Nov-04 20:12 
GeneralRe: Connection to MS Access Database Pin
David Crow3-Nov-04 2:31
David Crow3-Nov-04 2:31 
GeneralRe: Connection to MS Access Database Pin
WinAPILearner3-Nov-04 7:42
WinAPILearner3-Nov-04 7:42 
GeneralRe: Connection to MS Access Database Pin
David Crow3-Nov-04 9:41
David Crow3-Nov-04 9:41 

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.