Not all styles can be changed at run-time. You can try ModifyStyle() to see if it works in this situation. You may find it easier to have two edit controls on the dialog template, one with the WS_EX_LTRREADING style and the other with the WS_EX_RTLREADING style. Then just show/hide the controls accordingly.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
If it was a usermode app, how would it get started before GINA for the first login after a reboot?
You could use shared memory, but you might want to think about what security descriptor to put on it, depending on what you actually write into it. ISTR that the late lamented Windows Developer Journal had a set of articles about communicating logon/logoff to apps.
Yeap I understand what you mean Steve, the login couldn't be handled that way...
I don't like the shared memory because that means a usermode app also is going to be able to modify data in the Gina, and that's not good at all.
I'll try to find those articles you talk about.
Start working in any project and thinking on how to do it you'll learn a lot.
It's useless to tell you something, because there are not such thing as "super functions",
just classes wich are usefull for certain things.
Anyway I belive CString is the more usefull class in MFC and I always use it, there you have something to begin with.
thanks ur valuable advise Kharfax
but can u tell me some project for working and tell me about CString as iam beginner to vc++
New to VC++ or new to C++ in general? Assuming the latter, you should start with some intro to C++ books. Sams publishing has a "Teach yourself C++ in 21 days" that is decent for getting started. After you have a foundation with C++ to work with, then you will want to check out Petzold's books and Prosise's book.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
I am using CSingleLock in a program with a primary thread and a worker thread. On start up or if I do certain operations (both in debug mode) the debuger throws up a Debug Assertion at line 160 in mtex.cpp.
Line 160 shows the floowing
Does anybody know what the problem is as it’s driving me crazy.