|
[Sorry for the reposting, i posted using the wrong title]
Hi all,
Im looking at developing a program that simply keeps a log of which users have accessed a specific program, i.e. Program icon is clicked, then a log is updated with user details i.e. Who last used the program, IP address, User name etc etc.
Any ideas? Getting the user details shoud be faily easy..
Many Thanks
Karl
|
|
|
|
|
karldwmoore wrote: accessed a specific program
And you can't alter that program?
Then I'm out of luck.
Maybe you can have a service running that hooks the mouse and finds out if a mouseclick is going to an applicaltions icon, but...
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
I have access to the program, i just need to keep track of which users have been running the program..
|
|
|
|
|
karldwmoore wrote: i just need to keep track of which users have been running the program..
Use GetUseName[^].
|
|
|
|
|
prasad_som wrote: Use GetUseName[^].
Sorry.
I found this so obvious, I didn'n think that he was missing this bit of information.
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
In tree control how do I set different color for each tree item text.
i.e.
Root
Item1 with one color
Item2 with another color
Sachin
|
|
|
|
|
Handle NM_CUSTOMDRAW and you can set the color on a per-item basis
|
|
|
|
|
Hi,
I am developing a application in which I need to draw the some text and graphics on the view. I can do this in OnPaint as well as in OnDraw. But when one should use OnPaing and when OnDraw()? What is difference between OnPaint and OnDraw?
Regards,
Hemant Kulkarni.
|
|
|
|
|
OnDraw() is ultimately called by OnPaint() , as you can find inside MFC sources:
void CView::OnPaint()
{
CPaintDC dc(this);
OnPrepareDC(&dc);
OnDraw(&dc);
}
There you can also see what happens inside OnPrepare() .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
In the structure of MFC,OnPaint is the member function of Cwnd,OnDraw is the
member function of CView
Nothend
|
|
|
|
|
Hemant kulkarni wrote: What is difference between OnPaint and OnDraw?
OnPaint() belongs to CWnd and handles the WM_PAINT message, while OnDraw() belongs to CView and is virtual.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I had developed in embeded VC application(MFC)it was working fine ....
Next day when i build the workspace and run the application...its not executing!!..
i cant figure out how??
can any one tell me the solution
regards
Shailesh
|
|
|
|
|
migrated from debug to release mode ?
read this[^]
|
|
|
|
|
nope not migrated from debug to release. Only the PC was started again (sounds funny!! )
|
|
|
|
|
Hi
You check the program dependencies??
Regards
David Leyva
|
|
|
|
|
Shailesh Halankar wrote: its not executing!!..
Can you expain it ? Where it is failing exactly ? Have yopu tried to debug ?
|
|
|
|
|
Are you clicking the run icon on the tool bar to execute or directly double clicking the .exe file?
KIRAN PINJARLA
|
|
|
|
|
Which is the best way to create a thread.
1> AfxBeginThread()?
or
2> deriving a class from CWinThread and calling ->CreateThread?
KIRAN PINJARLA
|
|
|
|
|
the first one...
redindian
|
|
|
|
|
Recommended reading about multithreading[^]
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"No one remembers a coward!" - Jan Elfström 1998 "...but everyone remembers an idiot!" - my lawyer 2005 when heard of Jan's saying above
|
|
|
|
|
From the docs...
"Instead of calling AfxBeginThread, you can construct a CWinThread-derived object and then call
CreateThread. This two-stage construction method is useful if you want to reuse the CWinThread
object between successive creation and terminations of thread executions."
Which is better for YOU?
Mark
|
|
|
|
|
I have created an SDI app in which i dont want the save dialog box to be displayed when i press ctrl+s? I have deleted the save menu item.
Thank you.
KIRAN PINJARLA
|
|
|
|
|
You need to delete entry for save menu from accelerator table in resources.
|
|
|
|
|
Thank you prasad.
KIRAN PINJARLA
|
|
|
|
|
Hi All
I want to set application font depending on user's selection so is there any API which set application resource font as per required.
Thanks in Advance
Atul
|
|
|
|