|
The problem is not if it is "etical".
It can be even "illegal".
Your company may be prosecuted by law, if you "spy" your user without letting them to know about that.
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
This question gets asked often enough to get a little tiresome. Who are you working for so I can make a note never to buy any of their software?
Steve
|
|
|
|
|
First of all,thank you for your NTGraph ACtive code,it is easy and Convenient for us to develop software!NOW ,I encounter a problem:I do not konow how to dislay ElementName in the different position of PlotArea?
Looking forward to your answer. Sincerely
|
|
|
|
|
Please post your question in the forum at the bottom of the article you refer to, not in the general forums.
It's time for a new signature.
|
|
|
|
|
As already replied here[^], use the message board at the bottom of the article.
|
|
|
|
|
Hi
How to use windows explorer style application with tree view in left view ans dialog windows in right view.
Upon clicking the items in tree view , a dialog need to appear in right window
I m bugged of this.
Can Anyone help me to find a way out ...
regards
gany
|
|
|
|
|
|
Can you please elaborate, like which IDE you are using. because if you are using MS-VS 2006 or higher , then I guess there is one tool.
|
|
|
|
|
|
|
Hi,
Am developing a VC++ application where i need to get the username.
I have tried using GetUserName() and also USERNAME. But when i run the application on Vista as "Run as administrator", this is returning the admin's username and not the username with which the system is logged in.
Any suggestions on how to get the username with which the system is logged in when the application is "Run as administrator"?
Thanks
|
|
|
|
|
You could try GetEnvironmentStrings .
Then look for USERNAME variable.
|
|
|
|
|
Thanks for the reply. I have already tried that. It is returning the administrators username when i run the app as "Run as administrator". But i want the system logged on user name.
|
|
|
|
|
The reason why I gave you the answer is this -
I run a normal command prompt and run the set command which lists the environment variables.
Here it lists USERNAME=xxx .
I then run the command prompt as administrator and then do the same thing.
The USERNAME variable lists the same user.
|
|
|
|
|
Did you see here[^]
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Have you looked at LsaEnumerateLogonSessions() ?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
hey, i want to add custom bitmap on toolbar buttons in WIN32 c++..tell me how i can do this??
|
|
|
|
|
Take a look at TB_ADDBITMAP .
|
|
|
|
|
u know any book of WIN32....or any website?
|
|
|
|
|
The documentation has a small code snippet on how this can be done - http://msdn.microsoft.com/en-us/library/bb787289(VS.85).aspx
|
|
|
|
|
|
Is there any efficient way to share OpenGL resources in multithreaded programming?
|
|
|
|
|
Could you please elaborate ? What do you mean by resources exactly ? And how do you want to share them ?
|
|
|
|
|
Hello,everybody !
I want to set a 25 hours timer in the dialog based project.There will be plenty of database operation in the menber function.
I used this way:
1、SetTimer
when I used it ,the window interface always death after 10 minutes ago.
2、Multi-Threading
but it faild to ,when the function execute several times,it no longer to run anymore.
DWORD CTestDlg::ThreadProc(LPARAM lParam)
{
typedef BOOL (_stdcall *MYSWITCH)();
MYSWITCH MySwitchToThread;
HINSTANCE hInst = LoadLibrary("Kernel32.dll");
if (hInst != NULL)
MySwitchToThread = (MYSWITCH)GetProcAddress(hInst, "SwitchToThread");
if(!MySwitchToThread)
return -1;
CTestDlg *pDlg = (CTestDlg *)lParam;
TRACE( "Work thread pDlg --- %d\n ",pDlg);
UINT oldTickCount,newTickCount;
oldTickCount = GetTickCount();
while(TRUE)
{
while(TRUE)
{
newTickCount = GetTickCount();
if(newTickCount - oldTickCount >= 10000)
{
oldTickCount = newTickCount;
break;
}
else
MySwitchToThread();
}
CFile file("MyThread.txt",CFile::modeReadWrite|CFile::modeNoTruncate);
CTime time;
CString str="";
time = CTime::GetCurrentTime();
str.Format("%d-%02d-%02d %02d:%02d:%02d Thread Running...\r\n",
time.GetYear(),time.GetMonth(),time.GetDay(),
time.GetHour(),time.GetMinute(),time.GetSecond());
file.SeekToEnd();
file.Write(str,str.GetLength());
file.Flush();
file.Close();
Sleep(100);
pDlg->Fun1();
Sleep(100);
pDlg->Fun2();
return 0;
}
return 0;
}
then run the thread:
BOOL CTestDlg::OnInitDialog()
{
CDialog::OnInitDialog();
......
CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)ThreadProc,this,0,NULL);
}
There a better way ?
modified on Sunday, April 11, 2010 11:30 PM
|
|
|
|
|
You can use SetTimer like this -
SetTimer(hWnd 0, 25 * 60 * 60 * 1000);
|
|
|
|