|
may be i think you can go for .Net enviornment to solve you problem
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
This may have been brought up in previous posts and I apologize for rehashing an old argument. I am working on an application written in VS 6.0 and I would like to implement some functionality that would allow for the option to check for an update from a website. Someday, I would like to incorporate the ability to pull down the update. But for right now, I would just like to find a way to check for an update on a website. Any ideas or suggestions? Does anybody know of any articles on CodeProject for doing such a thing?
|
|
|
|
|
|
Is there an easy way to determine if a window is on top of all other windows?
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
How about GetTopWindow() ?
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I guess my question was a little vague. What I am trying to do is determine if my application is on top of all other applications. I receive data through a socket and when that data arrives if my app isn’t on top of all other apps I want to flash my app so it lights up on the task bar.. I have tried the following yet it still flashes even if the application is on top and has focus…
if(IsIconic() || GetDesktopWindow()->GetTopWindow() != AfxGetApp()->m_pMainWnd)
FlashWindow(TRUE);
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
if(IsIconic() || GetForegroundWindow() != AfxGetApp()->m_pMainWnd)
FlashWindow(TRUE);
Thanks
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
Can anybody know the answer to the folloing problem:
Given a window handle, how can we tell whether this
is a message box or not in C++ .Net.
Thanks!
|
|
|
|
|
To my knowledge, there's not. Like all dialog boxes, a message box belongs to the window class #32770.
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I want to display a sequence of 10-15 jpeg images in a dialog box with a scroll bar which can move between tha images .I have just started with VC++ and have the faintest idea of what to do .
|
|
|
|
|
Hi guys
Is there a simple way to play a sound that you previously included as a resource?. For only 17Kb it's annoying to have to add a extern wav file to the program.
Best Regards.
Doc
|
|
|
|
|
doctorpi wrote:
There is a simple way to play a sound that you previously included as a resource.
Are you asking or telling? If the former, see if this article is of any help.
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Sorry David
I've corrected my question.
Sometimes my english is not as good as needed to understand my questions.
I'm taking a look your article. I think is what I need to have the resource on memory.
But, what about to play a sound?
Thanks
Doc
|
|
|
|
|
In Resource View Right Click On Your Resource Folder
Select "Import"
In The File Types Filter Select All Files Or *.wav If there is
Then Add The File U Want Thats it
Use ::PlaySound(MAKEINTRESOURCE(ID_MYWAVE,m_hwnd,SND_RESORCE|SND_ASYNC/*other parameters if u want to*/);
include the mmsystem.h header file and add the library winmm.lib in the debug and release configurations
I Have A Problem With PlaySound
The Problem I am Having Is when I exit my app the thread created for playsound with the SND_ASYNC returns a value of -1 i know that using ::PlaySound(NULL,0,0) the thread should be terminated safley i tried it but it fails i created a click sound for each mouse click on LButtonDown I use PlaySound with correct params on LButtonUp i use PlaySound(NULL,0,0) but the thread exits with -1 normal terminal should exit with 0
|
|
|
|
|
Thanks you guy.
It works perfectly.
Doc
|
|
|
|
|
Leyusha wrote:
I Have A Problem With PlaySound
The Problem I am Having Is when I exit my app the thread created for playsound with the SND_ASYNC returns a value of -1 i know that using ::PlaySound(NULL,0,0) the thread should be terminated safley i tried it but it fails i created a click sound for each mouse click on LButtonDown I use PlaySound with correct params on LButtonUp i use PlaySound(NULL,0,0) but the thread exits with -1 normal terminal should exit with 0
ANY ONE
|
|
|
|
|
Leyusha wrote:
...normal terminal should exit with 0
Are you sure?
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
doctorpi wrote:
Sorry David
I've corrected my question.
Sometimes my english is not as good as needed to understand my questions.
Not a problem. I don't criticize people's speech, either written or verbal, but I will ask for clarification if it is necessary.
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I am trying to pull specific information from the Security Event Log in windows 2000, in Visual C++ 6 for a auditing system I am creating. Using information from MSDN I have been able to extract the event number, the time it occurred, and the user who triggered the event. The last thing i need is the file that was modified. I know this only applies to certain events. How can i get the file that was accessed/modified/deleted? I have not been able to find a clear example. I've tried using GetEventLogInformation but i was unable to get it to work. I also tried get the message map but I failed at that as well. Are either of these the correct approach? Anyone know of any examples? Any suggestions would be appricated.
|
|
|
|
|
jet9153 wrote:
The last thing i need is the file that was modified.
What file? The event file itself, or a file that an event message refers to?
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I configured auditing on a folder on my local hard drive. I want to know what file in that folder was accessed. I see it in Computer Management, when I double click certain events. I want to know how to get that file name from within a C++ application.
|
|
|
|
|
jet9153 wrote:
I want to know what file in that folder was accessed.
Would ReadDirectoryChangesW() or FindFirstChangeNotification() be of any help?
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Sorry but no, these functions do not help. I think i need to explain myself better. On my PC i set up auditing on a select folder, "C:\Image_Db". Any time someone looks at one of these files, deletes a file, changes a file, I want to know who did it, at what time, what file, and what they did to the file. The solution i found was to audit these files through windows event logs. Currently i have to manually find the 564 event and then find the corresponding 560 that gives the file name.
I recently discovered a set of API functions that allow for access to the event logs. I am able to get the eventID, the user, the time, but i can not figure out a way to get the file that was accessed. I think the filename is embedded in the EVENTLOGRECORD structure, after StringOffSet, as described in the MSDN website. I want to know how i can get that data out of the structure. I am not sure if this is possible and I have seen no reference to it on the internet. If you can point me in any direction what so ever i would be grateful.
If you know of a better way that i can log all changes made to a file i would like to hear it.
Thank you for all your help thus far.
|
|
|
|
|
jet9153 wrote:
Any time someone looks at one of these files, deletes a file, changes a file, I want to know who did it, at what time, what file, and what they did to the file.
While ReadDirectoryChangesW() or FindFirstChangeNotification() will tell you the file and the operation on it, the other criteria would need something like a file system driver that creates and attaches filter device objects to target file system device objects to see all IRPs and FastIO requests directed at those drives.
When looking at the event, where does the filename show up (e.g., in the Description box)? As you've found, the message itself is not written to the event log, only the event's id. You'll need to use EventID and SourceName to locate the event in the message DLL.
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I did...
I don't get confirmation of replys or attachments...
shotgun
|
|
|
|