Click here to Skip to main content
15,905,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ConverSion To Irregular Bitmap ???? Pin
Christian Graus5-Feb-03 23:20
protectorChristian Graus5-Feb-03 23:20 
GeneralRe: ConverSion To Irregular Bitmap ???? Pin
Anonymous12-Feb-03 18:52
Anonymous12-Feb-03 18:52 
GeneralRe: ConverSion To Irregular Bitmap ???? Pin
Christian Graus12-Feb-03 19:05
protectorChristian Graus12-Feb-03 19:05 
GeneralCToolbarCtrl Pin
satyavasu5-Feb-03 22:38
satyavasu5-Feb-03 22:38 
Generallinking libs without .res Pin
Anonymous5-Feb-03 22:03
Anonymous5-Feb-03 22:03 
Generalconfusion Pin
AlexO6-Feb-03 2:44
AlexO6-Feb-03 2:44 
Generalfocus after application exit Pin
aputic5-Feb-03 21:23
aputic5-Feb-03 21:23 
General#undefs Pin
el_scrub5-Feb-03 20:21
el_scrub5-Feb-03 20:21 
Im trying to undefine a setting from a function one file
that calls another file where the actual #define is used.
the problem is much the same as this code.

I know you can fix this by putting the volume code
below main() but is their any way around this other than
moving the code ?

<br />
#define VOLUME_UNITS 1<br />
<br />
int volume ()<br />
{<br />
	#ifdef VOLUME_UNITS<br />
		return 10;<br />
	#else<br />
		return 20;<br />
	#endif<br />
}<br />
<br />
int main(int argc, char* argv[])<br />
{<br />
	int vol;<br />
#ifdef VOLUME_UNITS<br />
	#undef VOLUME_UNITS<br />
	vol = volume ();<br />
	#define VOLUME_UNITS <br />
#else<br />
	vol = volume ();<br />
#endif <br />
	<br />
    printf ("%d\n", vol);<br />
<br />
#ifdef VOLUME_UNITS<br />
	vol = volume ();<br />
#endif <br />
	<br />
	return 1;<br />
}<br />

GeneralRe: #undefs Pin
Johnny ²6-Feb-03 1:12
Johnny ²6-Feb-03 1:12 
GeneralSDK for GDI+ Pin
reen5-Feb-03 18:38
reen5-Feb-03 18:38 
GeneralUsing XML for a database Pin
paulb5-Feb-03 17:35
paulb5-Feb-03 17:35 
GeneralRe: Using XML for a database Pin
Joan M5-Feb-03 20:32
professionalJoan M5-Feb-03 20:32 
GeneralOpinions - Debug/Release and something in between Pin
nde_plume5-Feb-03 14:17
nde_plume5-Feb-03 14:17 
GeneralRe: Opinions - Debug/Release and something in between Pin
-=jarl=-5-Feb-03 14:43
-=jarl=-5-Feb-03 14:43 
General2 questions Pin
moraalg5-Feb-03 14:03
moraalg5-Feb-03 14:03 
GeneralRe: 2 questions Pin
Abbas_Riazi5-Feb-03 21:58
professionalAbbas_Riazi5-Feb-03 21:58 
QuestionMenu Access in MDI? Pin
brigham_young5-Feb-03 12:42
brigham_young5-Feb-03 12:42 
GeneralProgram file asscociation Pin
varuna825-Feb-03 12:44
varuna825-Feb-03 12:44 
GeneralRe: Program file asscociation Pin
Mike Nordell5-Feb-03 21:03
Mike Nordell5-Feb-03 21:03 
GeneralRe: Program file asscociation Pin
varuna826-Feb-03 12:57
varuna826-Feb-03 12:57 
GeneralChat to hex Pin
varuna825-Feb-03 12:27
varuna825-Feb-03 12:27 
GeneralRe: Chat to hex Pin
Mike Nordell5-Feb-03 21:04
Mike Nordell5-Feb-03 21:04 
GeneralRe: Chat to hex Pin
Abbas_Riazi5-Feb-03 22:03
professionalAbbas_Riazi5-Feb-03 22:03 
QuestionDo you access a SQL server the same way you access a ACCESS DATABASE?? Pin
IrishSonic5-Feb-03 11:34
IrishSonic5-Feb-03 11:34 
AnswerRe: Do you access a SQL server the same way you access a ACCESS DATABASE?? Pin
nde_plume5-Feb-03 14:07
nde_plume5-Feb-03 14:07 

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.