Click here to Skip to main content
15,847,583 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: pkg_config ?? Pin
Jochen Arndt18-Nov-16 23:54
professionalJochen Arndt18-Nov-16 23:54 
GeneralRe: pkg_config ?? Pin
Richard MacCutchan19-Nov-16 2:21
mveRichard MacCutchan19-Nov-16 2:21 
GeneralRe: pkg_config ?? Pin
Vaclav_19-Nov-16 10:29
Vaclav_19-Nov-16 10:29 
GeneralRe: pkg_config ?? Pin
Richard MacCutchan19-Nov-16 13:03
mveRichard MacCutchan19-Nov-16 13:03 
AnswerRe: pkg_config ?? Pin
markkuk21-Nov-16 0:39
markkuk21-Nov-16 0:39 
GeneralRe: pkg_config ?? Pin
Vaclav_21-Nov-16 5:45
Vaclav_21-Nov-16 5:45 
GeneralRe: pkg_config ?? Pin
Vaclav_29-Nov-16 9:35
Vaclav_29-Nov-16 9:35 
Question#ifdef...#endif is not working in Resource(.rc) file Pin
Member 1233569517-Nov-16 18:20
Member 1233569517-Nov-16 18:20 
Hi All,

In my MFC project, some Text box should appear in UI for 32 bit builds and that is not appear for 64 bit builds.

For this I have added the following piece of code in Resource.h file

Resource.h:

C++
#ifndef _WIN64
	#define INCLUDE_32_BUILDS 1
#endif


C++
#ifdef INCLUDE_32_BUILDS
#define IDC_GS_CMB_TYPE                 5176
#endif


and the code in the resource file is:

C++
#ifdef INCLUDE_32_BUILDS
   	LTEXT           "Receiver Output Protocol :",IDC_STATIC,16,42,123,8
	EDITTEXT        IDC_GS_EDIT_TYPE, 150, 42, 84, 85, ES_AUTOHSCROLL | ES_READONLY
#endif


I want to show above text box for only 32 bit application and not in 64 bit application

I am able to compile the code successfully, but still I am able to see the above text in UI for 64 bit application. I think #ifdef INCLUDE_32_BUILDS is not working properly in resource file.

Please let me know how to make sure that the #ifdef INCLUDE_32_BUILDS work and the text box should not appear for 64 bit application?


Thanks,
Lakshmi.

modified 17-Nov-16 23:35pm.

AnswerRe: #ifdef...#endif is not working in Resource(.rc) file Pin
Richard MacCutchan17-Nov-16 21:50
mveRichard MacCutchan17-Nov-16 21:50 
AnswerRe: #ifdef...#endif is not working in Resource(.rc) file Pin
leon de boer17-Nov-16 21:54
leon de boer17-Nov-16 21:54 
GeneralRe: #ifdef...#endif is not working in Resource(.rc) file Pin
Member 1233569517-Nov-16 22:43
Member 1233569517-Nov-16 22:43 
QuestionCMake - syntax error ? Pin
Vaclav_16-Nov-16 7:11
Vaclav_16-Nov-16 7:11 
AnswerRe: CMake - syntax error ? Pin
Jochen Arndt16-Nov-16 8:21
professionalJochen Arndt16-Nov-16 8:21 
GeneralRe: CMake - syntax error ? Pin
Vaclav_16-Nov-16 15:52
Vaclav_16-Nov-16 15:52 
GeneralRe: CMake - syntax error ? Pin
leon de boer16-Nov-16 19:10
leon de boer16-Nov-16 19:10 
GeneralRe: CMake - syntax error ? Pin
Jochen Arndt16-Nov-16 22:07
professionalJochen Arndt16-Nov-16 22:07 
QuestionSOLVED CMake whose "source directory" ? Pin
Vaclav_14-Nov-16 5:19
Vaclav_14-Nov-16 5:19 
AnswerRe: CMake whose "source directory" ? Pin
Chris Losinger14-Nov-16 5:25
professionalChris Losinger14-Nov-16 5:25 
GeneralRe: CMake whose "source directory" ? Pin
Vaclav_14-Nov-16 5:32
Vaclav_14-Nov-16 5:32 
GeneralRe: CMake whose "source directory" ? Pin
Chris Losinger14-Nov-16 5:46
professionalChris Losinger14-Nov-16 5:46 
GeneralRe: CMake whose "source directory" ? Pin
Vaclav_14-Nov-16 6:10
Vaclav_14-Nov-16 6:10 
AnswerRe: CMake whose "source directory" ? Pin
Albert Holguin15-Nov-16 8:22
professionalAlbert Holguin15-Nov-16 8:22 
GeneralRe: CMake whose "source directory" ? Pin
Vaclav_15-Nov-16 10:27
Vaclav_15-Nov-16 10:27 
AnswerRe: CMake whose "source directory" ? Pin
Vaclav_17-Nov-16 6:11
Vaclav_17-Nov-16 6:11 
QuestionEclipse IDE GCC linker options ? Pin
Vaclav_13-Nov-16 5:40
Vaclav_13-Nov-16 5:40 

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.