Click here to Skip to main content
15,907,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalcan't display network computer Pin
IGeorgeI13-Feb-03 7:27
IGeorgeI13-Feb-03 7:27 
GeneralRe: can't display network computer Pin
Anders Molin13-Feb-03 14:46
professionalAnders Molin13-Feb-03 14:46 
QuestionHow can i use CString and CFileFind in a non MFC app Pin
Larsson13-Feb-03 6:43
Larsson13-Feb-03 6:43 
AnswerRe: How can i use CString and CFileFind in a non MFC app Pin
Joaquín M López Muñoz13-Feb-03 6:53
Joaquín M López Muñoz13-Feb-03 6:53 
AnswerRe: How can i use CString and CFileFind in a non MFC app Pin
PJ Arends13-Feb-03 7:10
professionalPJ Arends13-Feb-03 7:10 
AnswerRe: How can i use CString and CFileFind in a non MFC app Pin
MAAK13-Feb-03 13:36
MAAK13-Feb-03 13:36 
AnswerRe: How can i use CString and CFileFind in a non MFC app Pin
Anonymous13-Feb-03 16:59
Anonymous13-Feb-03 16:59 
QuestionMaking use of the preprocessor? Pin
moliate13-Feb-03 6:07
moliate13-Feb-03 6:07 
One of my classes keeps a lookup-table that is based on a few constants #defineBig Grin | :-D in the header. If one of the constants change before a recompile the table has to be recomputed, but otherwise it is defined as a constant:
m_table[256] = {
0x00000000, 0x6750096, 0xEEEE4455, 0x45DF5C75, 0xB6662D3D, 0x23EE4521,
...
};

I have a function that computes the table and prints it to standard output, so if I change one of the #defineBig Grin | :-D constants I can compile, run the function, cut-and-paste the table back to my sourcefile, and finally recompile..

Is there any way to make the preprocessor do this? The table-generating function is not simple enough to make into a macro..

Any suggestions?

Thanks
/moliate




The corners of my eyes catch hasty, bloodless motion -
a mouse?
Well, certainly a peripheral of some kind.

Neil Gaiman - Cold Colours


AnswerRe: Making use of the preprocessor? Pin
Chris Losinger13-Feb-03 6:31
professionalChris Losinger13-Feb-03 6:31 
GeneralRe: Making use of the preprocessor? Pin
moliate13-Feb-03 7:07
moliate13-Feb-03 7:07 
AnswerRe: Making use of the preprocessor? Pin
Joaquín M López Muñoz13-Feb-03 6:33
Joaquín M López Muñoz13-Feb-03 6:33 
GeneralRe: Making use of the preprocessor? Pin
moliate13-Feb-03 7:00
moliate13-Feb-03 7:00 
GeneralRe: Making use of the preprocessor? Pin
Joaquín M López Muñoz13-Feb-03 7:05
Joaquín M López Muñoz13-Feb-03 7:05 
GeneralAdding modal/modless dialogs to taskbar Pin
mister trunks13-Feb-03 6:03
mister trunks13-Feb-03 6:03 
GeneralRe: Adding modal/modless dialogs to taskbar Pin
mister trunks13-Feb-03 7:42
mister trunks13-Feb-03 7:42 
GeneralRe: Adding modal/modless dialogs to taskbar Pin
Alexinuk13-Feb-03 23:19
Alexinuk13-Feb-03 23:19 
Generalhyperterminal Pin
Sunnygirl13-Feb-03 5:50
Sunnygirl13-Feb-03 5:50 
GeneralRe: hyperterminal Pin
Artem Moroz13-Feb-03 8:48
Artem Moroz13-Feb-03 8:48 
General#error WINDOWS.H already included Pin
Larsson13-Feb-03 5:42
Larsson13-Feb-03 5:42 
GeneralRe: #error WINDOWS.H already included Pin
Joseph Dempsey13-Feb-03 5:52
Joseph Dempsey13-Feb-03 5:52 
GeneralRe: #error WINDOWS.H already included Pin
Larsson13-Feb-03 5:58
Larsson13-Feb-03 5:58 
GeneralRe: #error WINDOWS.H already included Pin
Joseph Dempsey13-Feb-03 8:31
Joseph Dempsey13-Feb-03 8:31 
GeneralRe: #error WINDOWS.H already included Pin
Anonymous13-Feb-03 17:01
Anonymous13-Feb-03 17:01 
GeneralRound-off errors Pin
Anton A. Loukine13-Feb-03 5:15
Anton A. Loukine13-Feb-03 5:15 
GeneralRe: Round-off errors Pin
Chris Losinger13-Feb-03 5:26
professionalChris Losinger13-Feb-03 5:26 

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.