|
Ok,
I'm going to try this solution.
|
|
|
|
|
one last question :
where to call SetThreadLocale() ? anywhere after OnInitDialog() ?
what are this macros (how are they defined) ? : MAKELCID() , LANG_ENGLISH , SORT_DEFAULT .
thanks for the prompt and concise answer...
ps: i don't have any visual studio installed, and am quite bored about msdn today, so here is why i ask all this to someone who seems to wqell know the subject...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
-- modified at 4:19 Thursday 9th February, 2006
|
|
|
|
|
We are calling it the InitInstance of the application. Then all the dialogs / views are set up with the correct strings.
If you want to change the language at runtime, you have to call this language first and then "refresh" all your views / menus whatever. (Set the item texts with the new strings from the resource table)
(But this whole process depends on the structure of the program)
More information on SetThreadLocal
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_52lh.asp
Regarding your exact question:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_7qck.asp
All the label says is that this stuff contains chemicals "... known to the State of California to cause cancer in rats and low-income test subjects." Roger Wright http://www.codeproject.com/lounge.asp?select=965687&exp=5&fr=1#xx965687xx
|
|
|
|
|
Hello,
I am new to Visual C++ (not to C++ though) and I am trying to draw a curve with GDI+. Since I kept getting the same linker errors, I made a new project in which I only included <windows.h> and <gdiplus.h>.
The result: first this warning: (all linker errors)
<br />
warning LNK4248: unresolved typeref token (0100001A)for 'Gdiplus.GpCachedBitmap'; image may not run<br />
And then several errors of this type
error LNK2028: unresolved token (0A000049) "extern "C" enum Gdiplus::Status __stdcall GdipCloneImage(class Gdiplus::GpImage *,class Gdiplus::GpImage * *)" (??1PrivateFontCollection@Gdiplus@@$$FUAM@XZ)<br />
I have installed Visual C++ 2005 Express and the Windows Server 2003 SDK and added the path to the VC++ Directories.
Running on XP with SP2
Thanks in advance.
Best regards,
Jan Timmerman
-- modified at 3:09 Thursday 9th February, 2006
|
|
|
|
|
You probably forgot to link to the GDI+ library. I don't which one it is, I suppose it is something like Gdiplus.lib (you have to check that). Then, in the property of your project, in the linker tab, you need to add this library into the input libraries.
|
|
|
|
|
Ok, it builds. Only thing that remains is the warning.
Thanks for the help!
|
|
|
|
|
Hi All,
I have the problem about focus when execute a new program from my application (I used SHELLEXECUTEINFO to do that). I expect that focus must remain on the new program until it is closed. Current if I run a new program and it does not go full screen I can touch the parent screen and then I have no way to get back the program.
Please help me. Thank you very much
|
|
|
|
|
Nguyen Thi Thanh wrote: Current if I run a new program and it does not go full screen I can touch the parent screen and then I have no way to get back the program.
Pass SW_MAXIMIZE in nShow parameter
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ThatsAlok wrote: Pass SW_MAXIMIZE in nShow parameter
In this case, I can click on restore button of window and I can still touch the parent screen. I mean the end user does not have no way to transfer to another screen until the new program is closed. I want the new program running as top-level window.
Thank you very much.
|
|
|
|
|
Hello,
I copied my VC6 project to another PC, but when opened there it prompted some .h file were not found. I checked and found at least the include files content under Tools/options/directories is different. Anyone knows how to make these settings on different computers to be the same, instead manually add in each entry?
I tried the following method:
http://support.microsoft.com/kb/q247005/#appliesto
and backup the content under HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0
then recover to another PC. But the include files did not change after restart.
Thanks!
Thomas
|
|
|
|
|
In VC6 they are stored in the registry under HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0
Check this link if it helps you. link[^]
In VC.NET 2003, they are stored somewhere in
C:\Documents and Settings\ as a file named VCComponents.dat
I dont remember the exact location but search it and you will find it.
There are two types of roads in our country. One
is under construction and the other is under repair.
|
|
|
|
|
Hello everybody, sorry to disturb you. I saw your post in the forum. I need a C/C++ programmer with Digital Signal Processing (DSP) knowledge. My software will be done in MFC dialog-based. The software will generally operates as follow. Here is the basic idea:
Waveform is displayed real-time in time domain when speech is spoken into microphone.
Analysis will be done on the waveform and the time-domain details will be displayed on a dialog box. We may need to ADC,remove DC offset, windowing, FFT, power/amplitude spectrum, filtering and IFFT. I will send you more details if you are interested.
I urgently need a programmer who has experiences in the above software. This is not a spam or junk mail. Please email me at isabella_1202@yahoo.com. You can either email, pm or reply here. Do inform me the fee you require. I have been struggled for many months, living in depresses of searching on how to solve my problems. Please help, urgently need. Hope to hear from you soon, please. Thank you.
regards
isabella
|
|
|
|
|
|
|
Michael P Butler wrote: That's just cruel
Actually i was trying to be very helpfull
-Prakash
|
|
|
|
|
isabella_1202 wrote: You can either email, pm or reply here. Do inform me the fee you require. I have been struggled for many months, living in depresses of searching on how to solve my problems. Please help, urgently need. Hope to hear from you soon, please. Thank you.
Whom do you refering too.... you can post you advertisement JOBS[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi!!
Can anybody tell me . what is IXMLDOMDocument or IXMLDOMDocumentPtr?? And how is it related with xml pARSING.
i want to convert my old ini files into xml files by using XML Parsing functions in an MFC SDI application. I had done the conversion by using old C Functions, but how to do it using MFC functions.
Thanx
"If you change then change for the good."
|
|
|
|
|
swaapu wrote: i want to convert my old ini files into xml files by using XML Parsing functions in an MFC SDI application. I had done the conversion by using old C Functions, but how to do it using MFC functions.
look for CMarkUp class here at CP, that will sort out your problem
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
swaapu wrote: Can anybody tell me . what is IXMLDOMDocument or IXMLDOMDocumentPtr?? And how is it related with xml pARSING.
Read the documentation for MSXML/Microsoft XML Core Services. And check out the samples.
|
|
|
|
|
swaapu wrote: IXMLDOMDocument or IXMLDOMDocumentPtr
are Types used in Microsofts bloated COM-operated XML-DOM-parser.
I hate this thing, I find it totally unusable.
If you only want short ini-filies XMLized I would recommend a smaller parser (like CMarkup[^]
I really liked their versions up until 6 and have no idead of the bloat-factor till then.
Another alternative would be Xerxes, which, while also being huge, i feel has a much better interface than MSXML.
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
TinyXML[^] is meant to be good (but IIRC the Unicode support is poor).
|
|
|
|
|
Developping a combobox, i want to add an Office 2003 style, working under W2K and XP. All the articles and libraries I found do not really work : hardcoded colors, hardcoded theme selection (only those delivered with XP), approximation too far from the real colors (under XP and/or W2K).
Does somebody has ideas on the algorythms to use for the three states of the combox button ? (it seems to me that the standard (not hover, not pressed) button is draw transparently upon the toolbar of WinWord,so the mean to get the colors of this toolbar is also nedeed).
|
|
|
|
|
Good day,
Suppose that I have completely developed a MFC dialog base application. At design time, I didn't want it to support Automation and I didn't check Automation support in AppWizard.
So now, how can I make it support Automation? What changes must be made to my current application?
Thank you in advance,
Have a good time!
KEMI
|
|
|
|
|
Hello. I'm currently having a problem linking a single threaded library to a multithreaded program.
I'm using Haru pdf library found here: http://sourceforge.net/projects/libharu/
Is there any way I can change the project or makefile to work with my multithreaded project?
I believe this is the problem as I am getting the following errors:
--------------------------------------------------------------
Linking...
LIBCMT.lib(tolower.obj) : error LNK2005: _tolower already defined in MSVCRTD.lib(MSVCRTD.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRTD.lib(MSVCRTD.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: __exit already defined in MSVCRTD.lib(MSVCRTD.dll)
LIBCMT.lib(nlsdata1.obj) : error LNK2005: ___mb_cur_max already defined in _libc_fix.obj
LIBCMT.lib(lconv.obj) : error LNK2005: _localeconv already defined in MSVCRTD.lib(MSVCRTD.dll)
LIBCMT.lib(ctype.obj) : error LNK2005: __pctype already defined in _libc_fix.obj
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRTD.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRTD.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRTD.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRTD.lib(cinitexe.obj)
LIBCMT.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in MSVCRTD.lib(MSVCRTD.dll)
LIBCMT.lib(strtol.obj) : error LNK2005: _strtoul already defined in MSVCRTD.lib(MSVCRTD.dll)
LIBCMT.lib(getenv.obj) : error LNK2005: _getenv already defined in MSVCRTD.lib(MSVCRTD.dll)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __ltoa already defined in LIBCMT.lib(xtoa.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __setmbcp already defined in LIBCMT.lib(mbctype.obj)
LIBCMT.lib(tolower.obj) : warning LNK4006: _tolower already defined in MSVCRTD.lib(MSVCRTD.dll); second definition ignored
LIBCMT.lib(crt0dat.obj) : warning LNK4006: _exit already defined in MSVCRTD.lib(MSVCRTD.dll); second definition ignored
LIBCMT.lib(crt0dat.obj) : warning LNK4006: __exit already defined in MSVCRTD.lib(MSVCRTD.dll); second definition ignored
LIBCMT.lib(nlsdata1.obj) : warning LNK4006: ___mb_cur_max already defined in _libc_fix.obj; second definition ignored
LIBCMT.lib(lconv.obj) : warning LNK4006: _localeconv already defined in MSVCRTD.lib(MSVCRTD.dll); second definition ignored
LIBCMT.lib(ctype.obj) : warning LNK4006: __pctype already defined in _libc_fix.obj; second definition ignored
LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xc_z already defined in MSVCRTD.lib(cinitexe.obj); second definition ignored
LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xc_a already defined in MSVCRTD.lib(cinitexe.obj); second definition ignored
LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xi_z already defined in MSVCRTD.lib(cinitexe.obj); second definition ignored
LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xi_a already defined in MSVCRTD.lib(cinitexe.obj); second definition ignored
LIBCMT.lib(winxfltr.obj) : warning LNK4006: __XcptFilter already defined in MSVCRTD.lib(MSVCRTD.dll); second definition ignored
LIBCMT.lib(strtol.obj) : warning LNK4006: _strtoul already defined in MSVCRTD.lib(MSVCRTD.dll); second definition ignored
LIBCMT.lib(getenv.obj) : warning LNK4006: _getenv already defined in MSVCRTD.lib(MSVCRTD.dll); second definition ignored
MSVCRTD.lib(MSVCRTD.dll) : warning LNK4006: __ltoa already defined in LIBCMT.lib(xtoa.obj); second definition ignored
MSVCRTD.lib(MSVCRTD.dll) : warning LNK4006: __setmbcp already defined in LIBCMT.lib(mbctype.obj); second definition ignored
Creating library Debug/DA20.lib and object Debug/DA20.exp
LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/DA20.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
DA20.exe - 17 error(s), 17 warning(s)
--------------------------------------------------------------
Any help would be greatly appreciated.
Thanks.
|
|
|
|
|
To use multithreaded runtimes, Go to Project settings->C/C++ tab and select Category combo to Code Generation and use runtime library to mutlithreaded
|
|
|
|