|
John R. Shaw wrote:
Naturaly, this caused some other problems, which I am working on now
Well, that's what we do for a living, isn't it?
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Hi
You can set the font(some unicode font) from the resource editor itself this is working for me.
--Antony
|
|
|
|
|
John R. Shaw wrote:
...but the standard edit control does not.
Does it work in Notepad?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
DavidCrow wrote:
Does it work in Notepad?
Yes!
In my settings: _MBCS,UNICODE,_UNICODE
Solution: remove _MBSC from settings.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
when i study the codepage.
i can't understand... that mean?
how to used codepage 80 00 under character?
|
|
|
|
|
|
|
JWood wrote:
Joel's a bit preachy
A bit preachy, may be. But I do find it funny and enlightening at the same time
JWood wrote:
there is also http://www.flipcode.com/articles/article_advstrings01.shtml[^]
I didn't know that; it's a good one too.
I think both articles complement each other well. Joel's is more conceptual. It does a very good job at explaining the character sets evolution, and the concepts behind each of the names in the dance: what's ASCII, what's ANSI, what's a code page, etc., and Unicode, of course. In particular, it explains the distinction in Unicode between the character set, that is, the mapping between characters and numeric values (and no, it isn't limited to 65536 characters), and the possible encodings to use when you need to represent Unicode code points in memory or disk (and no, it isn't always stored as 16 bit per char).
The article you linked, on the other hand, is more implementation oriented, and as such it covers details that aren't present in the one from Joel. Although is somewhat conceptually wrong when it talks about Unicode and Unicode-encoded-as-utf-16 as if they were exactly one and the same, that doesn't actually hurts much, because of its focus on Visual C++ and Win32, where that equivalence is almost always true, and even MS documentation treat them as the same thing.
So, to any beginner, I'd recommend starting with Joel's article so as to better understand the concepts, and then reading this other article by Fredrick Andersson to see how these concepts are implemented and used with Visual C++ and Win32 APIs.
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Yeah certainly Joel has all the interesting theoretical points. I'm a practical type programmer so the Andersson article appeals a little more to me.
This is an issue that kind of struck me when I realized it - "Whoh, when did this happen and why wasn't I told?"
I am actually working on a piece of code to update to MBCS / Unicode all the functions in fairly large program so that it is ready for the European / Asian market.
|
|
|
|
|
I'm a source code control ART (anal retentive type). It's saved my butt on a number of occasions. However, over the past 18 months, my work is more mobile. Most of the code resides on my laptop, and 2-3 days each week I am in "the lab" - with access to servers, etc. As a result, application of VSS is not really practical.
So, I'm looking for some kind of source control tool that will allow me to have a database on my laptop but also allow me to synchronize with the "main" repository when I have the connection.
Any ideas?
C. Gilley
Will program for food...
Whoever said children were cheaper by the dozen... lied.
|
|
|
|
|
CharlieG wrote:
So, I'm looking for some kind of source control tool that will allow me to have a database on my laptop but also allow me to synchronize with the "main" repository when I have the connection.
This topic shows up in the lounge every once and a while. Here is a link for more information (I suggest reading all of the threads to get a good idea). Hope this helps.
Source Versions? ^]
-------------------------------
|
|
|
|
|
Yeah, I'll re-read the thread. Maybe something will popup to me..
thanks
C. Gilley
Will program for food...
Whoever said children were cheaper by the dozen... lied.
|
|
|
|
|
Hello guys and gals. I am currently a student doing my final year project in MC-CDMA with Turbo encoding and decoding. I am searching for any related source codes on MC-CDMA for me to work on. Your kind assistance will be greatly appreciated.
Cheers
Han
P.S. If there are any useful websites on mc-cdma and turbo codes, please tell me. Thanks a million.
|
|
|
|
|
kwangster wrote:
P.S. If there are any useful websites on mc-cdma and turbo codes, please tell me.
How about this one?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Thanks DavidCrow!! I will go take a look at it.
Guys and gals, if you find more information on MC-CDMA or any related source codes on MC-CDMA, please let me know. Thanks a milion.
|
|
|
|
|
Does anyone know if there are unicode versions of standard libraries stecifically the iostream ones? Is the templatized version designed to take care of this, is there a switch define like in the microsoft libraries for #define _UNICODE?
|
|
|
|
|
iostreams does a poor job at handling UNICODE. Even though you can use wide character versions of the routines, they still output in MBCS.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
That's what I thought - so you must write your own macros, routines, etc. to switch-compile for utf-8 and utf-16?
|
|
|
|
|
Hi,
I'd like to create my own control simply derrived from CWnd. I wanted to add some scroll bars to it (or any other MFC controls), but I don't know how that's done.
Thanks for any help.
|
|
|
|
|
http://www.codeproject.com/miscctrl/#Beginners[^]
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
Hi all,
I need to implement an SMTP sink to do some custom processing on inbound emails. I got the KB288098 sample to work, which implements an ATL-based COM object to add a disclaimer to every outgoing email. So far, so good--I don't really care at this point that the sample processes outgoing emails and not incoming ones. The test machine has essentially nothing running on it except for IIS and its SMTP service.
Now, before proceeding further (and I know I'm otherwise gonna break something when I start modifying the sample), I'd like to set a breakpoint in the sample's custom code--specifically, at the start of the CAddDisclaimer::OnSmtpOutCommand() function. I cannot get the breakpoint to trigger.
In this case, my sink DLL (smtpdisclaimer.dll) gets loaded by inetinfo.exe. So, I fire up VC6, load my SMTP sink project, load the adddisclaimer.cpp file, set the breakpoint in the OnSmtpOutCommand() function, select Build, Start Debug, Attach to Process..., select inetinfo from the process list, and OK. Fine, the debugger seems to be in a waiting state.
Then I load up Outlook Express and send an email. I receive it on another machine, with the disclaimer properly in place. This confirms the sample does what it's supposed to be doing.
However, the breakpoint never seems to get hit, and the debugger doesn't interrupt execution and I never get the opportunity to step into any code.
I can hit Stop Debugging after having sent the email, and VC's Output window shows that at some point it has loaded my smtpdisclaimer.dll and its debug symbols (I can see it's been loaded from the proper path and everything)...
I think I need a little hand-holding. How do I go about this? I think my problem stems from the fact that I've never had the chance (misfortune?) to debug a DLL until now, and doesn't really have anything to do with this specific sample...
Help?
|
|
|
|
|
You can always insert a hard breakpoint into your code:
#ifdef _DEBUG
__asm int 3;
#endif
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
Wow.
I got it to work, "kinda" (if I try enough times and run it enough times, eventually it *will* hit the breakpoint), but this forces it each and every time... Thanks!
|
|
|
|
|
If you use CDB/NTSD or WINDBG you could do this:
sxe ld smtpdisclaimer.dll
That will then break into the debugger once your DLL is loaded. Once it is you can then set break points "bp smtpdiscalimer!OnStmpOutCommand" for example.
If it doesn't get hit, perhaps it's not being called?
You can also send messages to the debugger using "OutputDebugString" API.
You can also as someone else pointed out, put hard coded break points into your application.
8bc7c0ec02c0e404c0cc0680f7018827ebee
|
|
|
|
|
I got an interview yestoday and was stumbed by the following question,
Suppose you have a MS-Word like application. How do implement the UNDO/REDO function.
Initially, I suggest saving the file everytime with a change. After I spoke it out. I realize that it's impossible. I can't save the file everytime I typed a character. I can't give a resonable solution on this one.
Anybody can help?
|
|
|
|