I do not know of such a function. Try using a Semaphore instead. Initialize it whith a value of 1. Whenever an instance of App2 wants to Signal App1, it decreases the Semaphore by one and then signals to App1 using the Event. App1 then checks the Semaphore. If it is 0, then it does all its calculation, resets the even (better would be an auto-reset event), and then increases the semaphore again. This way, you automatically implement a queue for all instances of App2, that want to signal App1. No signal is lost. Of course, i do not know if that was what you intended.
If you wanted to check because of performance issues, you can neglect that. Conditional execution creates performanceoverhead itself, and a vain call to SetEvent() will not matter. In any case App2 should not be the one to reset the Event. App1 should always do that, to indicate that it is waiting.
Thanks for reply.
But the requirement is that i work with App02 and not touch any code in App01. So I cannot add any codes in App01.
Now when Event is signalled from App02, there must be some mechanism on the OS side so that it keeps record of the signal and when App01 WaitForSingleObject(mhEvent,0) is called it will be able to read that it has been signalled. I want to know if there is an structure/any thing else which i can access from App02 and know if it(App02) had signalled App01 in a previous run.
I have a problem with my namespace extension that is really causing me problems.
The namespace extension is fairly standard, I use the Shell View created by SHCreateShellFolderView in my IShellFolder::CreateViewObject function.
Here's the problem- every time the user double clicks a subfolder of my extension, a NEW view window is created- it's not shown in the same window. I've tried using only one static instance of the IShellView created by SHCreateShellFolderView in every CreateViewObject function, but when I do this, when the user double clicks on the subfolder they don't navigate into it, they remain in the same folder.
This is really holding my project back at the moment, please everyone any ideas would be enormously appreciated!
Thanks in advance,
Which describes how to call an open folder dialog box through the .NET framework. Is it possible to avoid having to use this syntax and call the open folder dialog box directly on the win32 api? Similar to how I'd call MessageBox() for instances?
What am I missing here at the top of that page it says:
.NET Framework Class Library
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.
and than in the c++ example you have to inherit the following class System.Windows.Forms.Form
Am I just being very dim and missing the painfully obvious or does the above page not describe how to open a folder dialog using the .Net framework rather then just being able to directly call a function which is in one of the win32 dlls in the same fashion as you'd call GetOpenFileName()?
I am very sorry, forgot mentioning this. I am wanting to profile my VC++ application in VS 6.0 and VS 9.0.
I am not sure if the mentioned would solve my purpose. Lastly but not the least thanks for replying.
If you have the visual C++ 6.0 installed on your laptop as well, simply copy a chat server from the internet and run it. Get the IP of your laptop and ask the client to connect to the server using that IP.
I want to share an object between two DLLs. One DLL is managed and the other is unmanaged. I was panning to create an extra DLL and declare a class as in the shared data segment. But things don't seem to be working so far. How would you guys do this?
Thanks in advance.
It is impossible to change your past. But it is possible to ruin your present by worring about the future.
I am doing some keyboard hook program.
I am able to hook it and disable the inputs of some keys in the application.
But If I am shifting to other application say VC++ id and coming back to my application the application no more hooking the keys.
I want to hook the keys for all the application. i.e I want to disable some keys for all the application.
Is it possible? give me some hint to proceed
Last Visit: 31-Dec-99 19:00 Last Update: 4-Mar-24 19:33