|
Which is completely different than GetUserName() .
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
When calling someone a loser, it's VERY important to
spell it right. Unless, of course, you meant "looser"...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I don't get it. Get it?
Loooooooooser is much better.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
can that be in english?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
Rajesh R Subramanian wrote:
No, it will not be. MVPs should get directly in the person's soul and retrieve the question.[^]
actaully i given that power to you for sometime.. that's why you are so active
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
alphaxz wrote: 大家好!
怎么取得当前使用的计算机的用户名呢?
Google translation says -
Good!
How to use the current computer user name?
You could use the function - NetWkstaUserGetInfo() . For code snippet - check here[^].
Translation
您可以使用的功能- Netwkstausergetinfo( ) 。为程式码片段-检查在这里。
Well, please do not post questions in native language. Because those who can read it may not be able to answer it and those who can answer it may not be able to read it.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
toxcct wrote: Please do read other answers before posting too Poke tongue
I did before posting mine.
Tox, I went through the thread once again and i think i read the posts randomly. I've to be more careful while posting replies.
And i thought about giving the same advice to him once again. Its absolutely free.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
I've got an error
error C2065: 'Netwkstausergetinfo' : undeclared identifier
a beginner
|
|
|
|
|
alphaxz wrote: error C2065: 'Netwkstausergetinfo' : undeclared identifier
Function name is incorrect!
- It should be NetWkstaUserGetInfo and not Netwkstausergetinfo
|
|
|
|
|
thank u very much
my mistakes
a beginner
|
|
|
|
|
I want to access all items/controls on the dialog box, how i can get In MFC in single for loop?
thanks
|
|
|
|
|
I don't understand what exactly you want
but EnumChildWindows(..) might help..
See documentation for details [^]
Regards,
Sandip.
|
|
|
|
|
saksp wrote: how i can get In MFC in single for loop?
something like this
HWND hwnd = ::GetTopWindow(this->GetSafeHwnd());
while (hwnd)
{
hwnd = ::GetNextWindow(hwnd, GW_HWNDNEXT);
}
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi,
I guess this is a newbie question: I havent had much experience of user interface development in MFC, only dialog based apps so far.
I'm developing a MFC Ribbon MDI application in VS2008 and would like a CDockablePane with a few controls on it, such as 2 date time pickers, a few labels and buttons. Note CDockablePane eventually inherits from CWnd.
What's the best way of doing this? Anyone got any advice?
thanks,
Mark.
|
|
|
|
|
Can anybody help me to fetch the username of the computer operating under Windows Xp using VS6.0.
Thanks in advance..
|
|
|
|
|
GetUserName API will help you in this case...
Regards,
Rane
|
|
|
|
|
Thank you for helping..I got the result
|
|
|
|
|
Hi,
i am using customized buttons in a dialog.
1: i am handling a set of 36 buttons click . it's not at all called on click of any of the buttons with in this range.
2: Crash at draw item. here is the call stack
CButton::DrawItem(tagDRAWITEMSTRUCT * 0x0012e204) line 72 + 25 bytes
CButton::OnChildNotify(unsigned int 43, unsigned int 2449, long 1237508, long * 0x00000000) line 84
CWnd::SendChildNotifyLastMsg(long * 0x00000000) line 2694
CWnd::ReflectLastMsg(HWND__ * 0x000a0a66, long * 0x00000000) line 2732
CWnd::OnDrawItem(int 2449, tagDRAWITEMSTRUCT * 0x0012e204) line 1167 + 14 bytes
CWnd::OnWndMsg(unsigned int 43, unsigned int 2449, long 1237508, long * 0x0012e0a4) line 1941
CWnd::WindowProc(unsigned int 43, unsigned int 2449, long 1237508) line 1596 + 30 bytes
AfxCallWndProc(CWnd * 0x0012ec10 {CCustColorDialog hWnd=???}, HWND__ * 0x000a0a6a, unsigned int 43, unsigned int 2449, long 1237508) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x000a0a6a, unsigned int 43, unsigned int 2449, long 1237508) line 379
AfxWndProcBase(HWND__ * 0x000a0a6a, unsigned int 43, unsigned int 2449, long 1237508) line 220 + 21 bytes
USER32! 77e3a454()
USER32! 77e16382()
USER32! 77e17361()
USER32! 77e3b66b()
USER32! 77e2b788()
USER32! 77e3b7b6()
USER32! 77e2e106()
USER32! 77e3a454()
USER32! 77e16b41()
USER32! 77e16b64()
CWnd::DefWindowProcA(unsigned int 296, unsigned int 196610, long 0) line 1011 + 32 bytes
CWnd::WindowProc(unsigned int 296, unsigned int 196610, long 0) line 1597 + 26 bytes
AfxCallWndProc(CWnd * 0x0012ec70 {CCustButton hWnd=???}, HWND__ * 0x000a0a66, unsigned int 296, unsigned int 196610, long 0) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x000a0a66, unsigned int 296, unsigned int 196610, long 0) line 379
AfxWndProcBase(HWND__ * 0x000a0a66, unsigned int 296, unsigned int 196610, long 0) line 220 + 21 bytes
USER32! 77e3a454()
USER32! 77e14750()
USER32! 77e155b0()
NTDLL! 77f91baf()
USER32! 77e29302()
USER32! 77e2d428()
USER32! 77e16b41()
USER32! 77e16b64()
CWnd::DefWindowProcA(unsigned int 296, unsigned int 196610, long 0) line 1011 + 32 bytes
CWnd::WindowProc(unsigned int 296, unsigned int 196610, long 0) line 1597 + 26 bytes
AfxCallWndProc(CWnd * 0x0012ec10 {CCustColorDialog hWnd=???}, HWND__ * 0x000a0a6a, unsigned int 296, unsigned int 196610, long 0) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x000a0a6a, unsigned int 296, unsigned int 196610, long 0) line 379
AfxWndProcBase(HWND__ * 0x000a0a6a, unsigned int 296, unsigned int 196610, long 0) line 220 + 21 bytes
USER32! 77e3a454()
USER32! 77e16382()
USER32! 77e1504b()
USER32! 77e29302()
USER32! 77e2d428()
USER32! 77e16b41()
USER32! 77e16b64()
CWnd::DefWindowProcA(unsigned int 295, unsigned int 196610, long 0) line 1011 + 32 bytes
CWnd::WindowProc(unsigned int 295, unsigned int 196610, long 0) line 1597 + 26 bytes
AfxCallWndProc(CWnd * 0x0012ec10 {CCustColorDialog hWnd=???}, HWND__ * 0x000a0a6a, unsigned int 295, unsigned int 196610, long 0) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x000a0a6a, unsigned int 295, unsigned int 196610, long 0) line 379
AfxWndProcBase(HWND__ * 0x000a0a6a, unsigned int 295, unsigned int 196610, long 0) line 220 + 21 bytes
USER32! 77e3a454()
USER32! 77e16382()
USER32! 77e2eaf2()
USER32! 77e2f46b()
CWnd::IsDialogMessageA(tagMSG * 0x00882450 {msg=0x00000104 wp=0x00000012 lp=0x20380001}) line 182
CWnd::PreTranslateInput(tagMSG * 0x00882450 {msg=0x00000104 wp=0x00000012 lp=0x20380001}) line 3435
CDialog::PreTranslateMessage(tagMSG * 0x00882450 {msg=0x00000104 wp=0x00000012 lp=0x20380001}) line 92
CWnd::WalkPreTranslateTree(HWND__ * 0x001206c4, tagMSG * 0x00882450 {msg=0x00000104 wp=0x00000012 lp=0x20380001}) line 2678 + 18 bytes
CWinThread::PreTranslateMessage(tagMSG * 0x00882450 {msg=0x00000104 wp=0x00000012 lp=0x20380001}) line 672 + 18 bytes
CWinThread::PumpMessage() line 848 + 30 bytes
CWnd::RunModalLoop(unsigned long 4) line 3489 + 19 bytes
CDialog::DoModal() line 539 + 12 bytes
CCQPreWnd::OnLButtonDownView(unsigned int 1, CPoint {x=58 y=458}) line 8400
CCQPrWnd::OnLButtonDown(unsigned int 1, CPoint {x=58 y=458}) line 529
CWnd::OnWndMsg(unsigned int 513, unsigned int 1, long 30015546, long * 0x0012fbcc) line 1975
CWnd::WindowProc(unsigned int 513, unsigned int 1, long 30015546) line 1596 + 30 bytes
AfxCallWndProc(CWnd * 0x01915fe3 {CCQPressStatusWnd hWnd=???}, HWND__ * 0x000a0a44, unsigned int 513, unsigned int 1, long 30015546) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x000a0a44, unsigned int 513, unsigned int 1, long 30015546) line 379
AfxWndProcBase(HWND__ * 0x000a0a44, unsigned int 513, unsigned int 1, long 30015546) line 220 + 21 bytes
USER32! 77e3a454()
USER32! 77e14605()
USER32! 77e1a7f2()
USER32! 77e2f46b()
CWnd::IsDialogMessageA(tagMSG * 0x00882450 {msg=0x00000104 wp=0x00000012 lp=0x20380001}) line 182
CWnd::PreTranslateInput(tagMSG * 0x00882450 {msg=0x00000104 wp=0x00000012 lp=0x20380001}) line 3435
CDialog::PreTranslateMessage(tagMSG * 0x00882450 {msg=0x00000104 wp=0x00000012 lp=0x20380001}) line 92
CPropertyViewPage::PreTranslateMessage(tagMSG * 0x00882450 {msg=0x00000104 wp=0x00000012 lp=0x20380001}) line 167
CWnd::WalkPreTranslateTree(HWND__ * 0x001206c4, tagMSG * 0x00882450 {msg=0x00000104 wp=0x00000012 lp=0x20380001}) line 2678 + 18 bytes
CWinThread::PreTranslateMessage(tagMSG * 0x00882450 {msg=0x00000104 wp=0x00000012 lp=0x20380001}) line 672 + 18 bytes
CWinThread::PumpMessage() line 848 + 30 bytes
CWinThread::Run() line 487 + 11 bytes
CWinApp::Run() line 400
AfxWinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x0014356c, int 1) line 49 + 11 bytes
WinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x0014356c, int 1) line 30
WinMainCRTStartup() line 330 + 54 bytes
KERNEL32! 7c5989d5()
Regards,
Kdevloper
|
|
|
|
|
kDevloper wrote: CButton::DrawItem(tagDRAWITEMSTRUCT * 0x0012e204) line 72 + 25 bytes
So what is at line 72? Didn't you debug?
|
|
|
|
|
I too know it's in line no 72, but am asking how to fix it ..
|
|
|
|