|
Dear all,
I need to re-engineer a very big existing source code(Mostly Non-MFC) for localization support.
For that the user input strings should be capable of support in the native language character set throughout the project.
Moreover i have to translate the log files in to regional language based on the language selection.
Kindly refer the Ted's article.
http://www.codeproject.com/cpp/mult_lang_support.asp[^]
Kindly suggest me in this regard.
Regards,
Karthik M
|
|
|
|
|
About Keyboard Hook
If I want my program can get the key more than one key such as Ctrl+Shift+Z before execute some command.
How to write the code in KeyboardProc() function.
|
|
|
|
|
GetKeyboardState() can get states of 256 keys at same time.
|
|
|
|
|
When I perform a 'Find' in my current VS2005 project, some of the files in my project get searched twice. So a word which occurs once in that file appears as two identical results from the 'find'.
Anyone know why? Can I clear it somehow?
Thanks for any suggestions
Ali
|
|
|
|
|
ChooseFont or CFontDialog has few of colors, I want to change font color by ChooseColor or CColorDialog when CFontDialg is displaying, is it possible?
|
|
|
|
|
I did this OnOK Button of a dialog
CColorDialog *cDlg=new CColorDialog();
COLORREF myColor;
if(IDOK==cDlg->DoModal ())
{
myColor=cDlg->GetColor ();
}
HDC hdc=::GetDC(m_hWnd);
SetTextColor (hdc,myColor);
TextOut (hdc,10,100,"hello",5);
::ReleaseDC(m_hWnd,hdc);
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
u just made my post sick!
|
|
|
|
|
Hi
There is any way to communicate events, lets say "user loged in", "user logged off", from the GINA to a user mode App or service?
I mean, I know that I can write a file, or a registry key, and my app can read the info from there but I was looking for other way.
Thanks a lot people
Sebastian
|
|
|
|
|
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.
Steve S
Developer for hire
|
|
|
|
|
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.
Thanks a lot
|
|
|
|
|
I have found a great supported way, maybe in the future this will be usefull for someone.
Just google "Winlogon Notification Package"
|
|
|
|
|
F***ing useless, Vista doesn't support this
|
|
|
|
|
hi
tell me some function in mfc with example as i want to know a member function daily as i am new to vc++
thanks
Ashish Dogra
MCA
Noida
-- modified at 9:11 Wednesday 12th July, 2006
|
|
|
|
|
what do you mean by Super Function?
|
|
|
|
|
super means any good function that help me alot and with which something interstig thing can be handled
thanks for ur reply
Ashish Dogra
MCA
Noida
|
|
|
|
|
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++
Ashish Dogra
MCA
Noida
|
|
|
|
|
ashish dogra wrote: but can u tell me...about CString
See here.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
ashish dogra wrote: 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
Zac
|
|
|
|
|
Hi
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
ASSERT(!m_bAcquired);
Does anybody know what the problem is as it’s driving me crazy.
Thanks in advance.
MTM
|
|
|
|
|
mcgmil wrote: Line 160 shows the floowing
ASSERT(!m_bAcquired);
This apparently is not VC++ v6. Correct?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
How are you creating the singlelock? it seems that the syncobject you are using its not valid.
Example:
CCriticalSection g_CS; //global or class member
func()
{
CSingleLock SLock(&g_CS, TRUE);
}
Good luck.
-- modified at 8:50 Wednesday 12th July, 2006
|
|
|
|
|
I am Using Visual C++ Standard 2003
In the document header are the following declarations
CCriticalSection ImageInfoSyncObject;
CSingleLock * pImageInfoLock;
In the constructor of the document .ccp file a new single lock object is created
CDoc::CDoc()
{
pImageInfoLock = new CSingleLock (&ImageInfoSyncObject);
}
Then I use the lock and unlock within a function.
Void CDoc::Function()
{
pImageInfoLock->Lock ();
//Code
.
.
.
.
pImageInfoLock->UnLock ();
}
Has anybody any further ideas as to why I get the Debug Assertion Failure for mtex.ccp line 106
Thanks
MTM
|
|
|
|
|
If i put this code in a function it works perfectly (in VS2005), Try it:
{
CCriticalSection ImageInfoSyncObject;
CSingleLock * pImageInfoLock;
pImageInfoLock = new CSingleLock(&ImageInfoSyncObject);
pImageInfoLock->Lock();
pImageInfoLock->Unlock();
}
|
|
|
|
|
Hi ,
I want my application will be auto UnInstall after specified time.Suppose I want after one year my application automatically uninstall.
I created custome vc++ exe app for Install/unInstall my application.
so what should I do to achieve autoUnInstall.
Please help me
____________
____________
Thanks & Regards
Rajesh k singh
India
|
|
|
|