|
大家 取得取得!!!
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
dick head, we speak english here (if you hadn't notice yet)...
BTW, have you seen this[^] ??
|
|
|
|
|
sorry ,I forgot
i want to know how can i get current user who is using the computyer 's name by API
a beginner
|
|
|
|
|
|
GetComputerName()
"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>
|
|
|
|
|
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++
|
|
|
|
|
nope, i meant "Loooooooooooser"... get it ?
|
|
|
|
|
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.
|
|
|
|
|
Jijo raj wrote: Well, please do not
Please do read other answers before posting too
|
|
|
|
|
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.
|
|
|
|
|
nevermind
|
|
|
|
|
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..
|
|
|
|