Click here to Skip to main content
15,891,248 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: File Copy Hook? Pin
Priyank Bolia27-May-05 8:47
Priyank Bolia27-May-05 8:47 
GeneralRe: File Copy Hook? Pin
John M. Drescher27-May-05 10:53
John M. Drescher27-May-05 10:53 
GeneralRe: File Copy Hook? Pin
Priyank Bolia28-May-05 2:02
Priyank Bolia28-May-05 2:02 
GeneralCORBA - NameService Pin
torpedus26-May-05 22:33
torpedus26-May-05 22:33 
GeneralRe: CORBA - NameService Pin
Bob Stanneveld26-May-05 22:52
Bob Stanneveld26-May-05 22:52 
GeneralRe: CORBA - NameService Pin
torpedus26-May-05 23:02
torpedus26-May-05 23:02 
GeneralRe: CORBA - NameService Pin
Bob Stanneveld26-May-05 23:28
Bob Stanneveld26-May-05 23:28 
Generallanguage and AFX_TARG_... question Pin
tim63526-May-05 22:21
tim63526-May-05 22:21 
Hi everyone,

in your resources you can set resources for different language. The appropriate language is loaded according to you windows language. Therefor in your resource file you have to add e.g. '#if defined(AFX_TARG_NLB)' for you dutch resources.

Now, I have a database containing a field with strings in dutch in it and a field with its english translations. If the dutch resources are loaded I want to take the dutch field. I no dutch resources are loaded I want to take the english field.

Therefor I want to do this in my cpp file:
#if defined(AFX_TARG_NLB)<br />
		m_iLanguage = Dutch;<br />
#else<br />
		m_iLanguage = English;<br />
#endif

And use the m_iLanguage variable in my database query for fetching the right language.

I guess AFX_TARG_NLB is defined if the windows version has dutch language, AFX_TARG_ENG when windows has english language. These macros seem to be only defined in .rc files.
So the problem is: the AFX_TARG_... are not defined in my cpp files. How comes and does someone know how to solve it?



µAnother thing, does someone has a solution for this: http://www.codeproject.com/script/comments/forums.asp?forumid=1647&XtraIDs=1647&searchkw=afx_targ_enu&sd=2%2F26%2F2001&ed=5%2F27%2F2005&select=463413&df=100&fr=92935.5#xx463413xx[^]


thx
GeneralInsert my Win32 window into an MFC Dialog Pin
anderslundsgard26-May-05 21:45
anderslundsgard26-May-05 21:45 
GeneralCWnd::CreateControl copy/paste problem Pin
Johan O26-May-05 20:40
Johan O26-May-05 20:40 
GeneralRe: CWnd::CreateControl copy/paste problem Pin
Ryan Binns27-May-05 2:34
Ryan Binns27-May-05 2:34 
GeneralRe: CWnd::CreateControl copy/paste problem Pin
Johan O27-May-05 9:41
Johan O27-May-05 9:41 
GeneralCBitmap.GetBitmapDimensions() problem Pin
toxcct26-May-05 20:36
toxcct26-May-05 20:36 
GeneralRe: CBitmap.GetBitmapDimensions() problem Pin
PJ Arends26-May-05 22:12
professionalPJ Arends26-May-05 22:12 
GeneralRe: CBitmap.GetBitmapDimensions() problem Pin
toxcct26-May-05 22:19
toxcct26-May-05 22:19 
GeneralRe: CBitmap.GetBitmapDimensions() problem Pin
PJ Arends26-May-05 22:29
professionalPJ Arends26-May-05 22:29 
GeneralRe: CBitmap.GetBitmapDimensions() problem Pin
Gary R. Wheeler28-May-05 2:45
Gary R. Wheeler28-May-05 2:45 
GeneralRe: CBitmap.GetBitmapDimensions() problem Pin
toxcct28-May-05 6:42
toxcct28-May-05 6:42 
QuestionEnumWindows usage ? Pin
toxcct26-May-05 20:22
toxcct26-May-05 20:22 
AnswerRe: EnumWindows usage ? Pin
22491726-May-05 21:14
22491726-May-05 21:14 
AnswerRe: EnumWindows usage ? Pin
ThatsAlok26-May-05 21:32
ThatsAlok26-May-05 21:32 
QuestionHow to Prevent Switching of Controls of Views in a Multiple View SDI Application using splitter window Pin
nripun26-May-05 19:48
nripun26-May-05 19:48 
GeneralAbout Serializaiton Pin
VPNampoothiri26-May-05 19:47
VPNampoothiri26-May-05 19:47 
GeneralWrong assembly copied during build Pin
RockyMu26-May-05 19:04
RockyMu26-May-05 19:04 
GeneralWhat's the compiler setting ... Pin
WREY26-May-05 16:43
WREY26-May-05 16:43 

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.