|
Are you compiling for UNICODE or MCBS?
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
For the moment not of them :P it's "Not Set" I can chose any of the two... which is the most appropriate choice? MBCS should be fine, I won't use any weird characters or oriental language.
Gimpy
----------------------
Be proud. Be yourself.
|
|
|
|
|
Choose one of them and be careful with the string functions you choose. The safest way is to use the tchar.h macros that will correctly map to the appropriate functions. For instance, wcscpy is a UNICODE function that you cannot mix with TCHAR when MCBS is defined.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
If you are going to use TCHAR, you have to use the _t version of functions.
try:
len = _tcslen(allTexPath);
TCHAR, _T, and _t -- are part of MS's UNICODE/MBCS neutral stuff. Makes code that can compile as MBCS or UNICODE -- as long as you do it right.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
Take a look at my string articles, they describe the various encodings, how to use TCHAR, and the diff between strlen and wcslen.
part 1[^] | part 2[^]
--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ
----
Four fonts walk into a bar. The bartender says "Hey - get out! We don't want your type in here."
I just performed the Heimlich Maneuver on SQL #1.
-- Chris Maunder
I just performed the Heimlich Maneuver on SQL #1.
-- Chris Maunder
|
|
|
|
|
Any recommendations for a (preferably free, preferably open-source) C/C++ source code formatter?
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
|
Thanks! I've actually found a bunch of tools (including Artistic Style) on the web and was looking for thumbs up/down opinions. So I'm going to assume your's is a thumbs up.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hi,
I found several unit testing tools for c++ here <http: www.opensourcetesting.org="" unit_c.php=""> but not sure which one is good. Is there one in particular you like?
Thanks
Hua-Ying
|
|
|
|
|
|
We use Boost.Test which has been terrific.
Open Source Testing is a good source for testing frameworks in most languages
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts your aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Thanks, also useful for me
|
|
|
|
|
Hi,
Is it possible to output 2 different signals to 2 monitors? For example one displays the regular windows desktop and the other something completely different such as OpenGL full screen stuff (or something simpler than openGL).
For example if you have a graphics card that has 2 outputs how much control is available? Or if you installed 2 graphics cards (one onboard and one AGP or PCI or whatever) is it possible then?
Can someone point me in the right direction?
Thanks
|
|
|
|
|
I used two monitors back when I was developing for Windows 3.x. One was color and the other was monochrome. Since each was located at a different memory address, it was easy to write to both. The GUI stuff went to the color monitor and the debug stuff went to the monochrome monitor. I got really used to it and sorely missed it once Windows 9x came out.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
You're saying it can't be done right now that way. In either case I believe I have a solution. I configured my 2 monitors in Windows and I create a CFrameWnd derived object using Create(...) and I pass the location and size to this function such that the window is created past the first screen size, and Windows automatically creates this on the second monitor. Now I have this frame that I cran draw stuff in. However I'm still having trouble making the frame truly full screen. Any help? I've tried the ChangeDisplaySettings() function however that changes the first monitor to full screen and not the second one. Any help?
|
|
|
|
|
Anonymous wrote:
You're saying it can't be done right now that way.
No, I was just reflecting on the past. I've not ever used Windows with the new dual-monitor feature. When I saw it being used, the guy spent way too much time moving his head back and forth between the two. I didn't see the point.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I also find myself loosing the mouse cursor into the other screen too many times. I'm used to the clipping and usually don't worry about horizontal motion when trying to reach the X button to close =).
Anyway I think I have it under control.
|
|
|
|
|
Could someone who has the Windows Media Device Manager 10 SDK installed please tell me what the value of g_wszWMDMFormatCode in mswmdm.h is?
I suspect it is L"Format Code" but if I use that, it doesn't appear to be working.
Yes, I know.. I could just install the SDK, but our license is currently being processed (so I don't have the SDK yet) and I need to do a quick test.
Thanks in advance.
Andrew
|
|
|
|
|
|
I am handling OnClik and OnDoubleClick event on a listControl. When ever user doubleclicks on a item, first onclick and then OnDoubleClick event gets fired. Is there a way to avoid onclick event when user has DoubleClicked on the item ?
Sandeep Naik
|
|
|
|
|
How about starting a timer that's longer than the interval between double-clicks? So if 200 ms is the longest interval between double-clicks, start a timer with an interval of 250ms. In double-click event and in timer event, kill the timer.
[insert witty comment here]
bdiamond
|
|
|
|
|
Thanks a lot....
I could solve the problem
Sandeep Naik
|
|
|
|
|
I'm curious: what does your On Click() handler do (eg: does it update a selection count?)
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
OnClick refreshes the selected item on the listViewControl.
DoubleClick refreshes and then allows the user to modify it. The refreshing happens twice in this case.
Sandeep Naik
|
|
|
|
|
From look at Spy++, when a list control single-clicked, it receives a WM_LBUTTONDOWN message followed by a WM_LBUTTONUP message. When a list control double-clicked, it receives those two messages followed by a WM_LBUTTONDBLCLK and WM_LBUTTONUP . Can you monitor for WM_LBUTTONDOWN and WM_LBUTTONDBLCLK separately?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|