|
pther wrote: 3rd party class
get help from it.
Have a look at ShellTrayInfo[^] to get HWND for the tray icon
|
|
|
|
|
Did you try with EnumWindows?
|
|
|
|
|
Then you are doing something wrong, as both FindWindow() and FindWindowEx() work even if the window being sought is in the taskbar notification area.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I am doing a project on idnetifying objects in a scene from ip camera.how could i identify an object(extract an object) from a frame.Is there any algorithms? What all attributes are required to identify an object?
Please reply.
Thanks.
|
|
|
|
|
|
Thank you for the help.I would like to explain some more problems in my project. I have to identify an object in a scene.As you have mentioned , I am using OpenCV.
I have gone through the samples in it. I would like to know if there are any methods to identify an object. I am doing my project in VC++.
It is an application based on IP camera.
Please reply.
Thanks in advance.
|
|
|
|
|
The main problem is in defining what is an object? Once you can answer that than only you can extract it from the image.
Saurabh
|
|
|
|
|
Sir,
What i have to do is a theft detection project.For that I have to identify and mark objects present in the scene.I have to also define a region of interest.I use VC++ and OpenCV.Please do help me by providing the essentials.
Thanks in advance.
|
|
|
|
|
Can anybody tell me what is an interface class and how can we implement it.what is the difference between using an abstract class and an interface
|
|
|
|
|
Deepu Antony wrote: Can anybody help me
Read Here[^] to gain an insight on abstract class and interface.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
Hi,
We have created three text files through our application. We have to open that three text files in separate worksheets in a excel file. Please suggest your ideas.
With Regards,
Sangeetha.
|
|
|
|
|
Hi,
We could able to open a workbook using OpenText() method. We are facing problems in importing multiple text files in separate sheets. Please give me some ideas.
With Regards,
Sangeetha.
|
|
|
|
|
See here[^] does any help?
|
|
|
|
|
My MFC application consists of one main dialog, and it has an MCIWnd control created at the bottom for simple media playing functionality.
I currently use MCIWndCreate in the main window's OnInitDialog function, creating it as a child window. Most of the media it plays is streamed from the internet. This creates a problem when the user seeks in the MCIWnd, and it has to access the internet for more data. The MCIWnd freezes the whole app until it is able to resume playing (once it finished downloading more data). Usually it only takes a few seconds; however, it tends to be bothersome still.
I was wondering if there was a way to create the MCIWnd as a child of the main window, but have all of its functionality run in a seperate thread, so that the main thread can continue uninterupted while MCIWnd downloads its data.
Thanks for reading the lengthy post and providing any help.
|
|
|
|
|
Did you try with WS_POPUP instead WH_CHILD on the MCI_OPEN command?
|
|
|
|
|
HOOKPROC hkprcMsgProc=NULL; //the pointer of MsgProc()
static HINSTANCE hinstDLL=NULL; //the handle of dll!
static HHOOK hhookMsg=NULL; //the handle of hook!
DWORD tID=3464; //a thread id
hinstDLL = LoadLibrary((LPCTSTR) "QQDetours.dll");
hkprcMsgProc = (HOOKPROC)GetProcAddress(hinstDLL, "MsgProc");
hhookMsg = SetWindowsHookEx(WH_GETMESSAGE,hkprcMsgProc,hinstDLL,tID);
The tID is a thread id,but SetWindowsHookEx is not succeed.
Why?
|
|
|
|
|
yonghengzhimi wrote: hhookMsg = SetWindowsHookEx(WH_GETMESSAGE,hkprcMsgProc,hinstDLL,tID);
If your trying to install a global hook, you should pass the thread id as 0.
If you are trying to set a Local thread hook, then you need to set the HINSTANCE as 0.
|
|
|
|
|
|
|
Hi there,
I am trying to start a service already installed from a C++ code ( the c++ could be normal application, a win32 application, or even a dll application)
is that possible ( to start a specific service via it's name )
if so, how can I do it ?
Thanks in advance
There is always something to learn
|
|
|
|
|
SC_HANDLE hScm = OpenSCManager(NULL, SERVICES_ACTIVE_DATABASE, SC_MANAGER_ALL_ACCESS);
SC_HANDLE hService = OpenService(hScm, sServiceName, SERVICE_ALL_ACCESS);
StartService(hService, 0, NULL))
|
|
|
|
|
thanks a lot
should I include a special library ?
There is always something to learn
|
|
|
|
|
|
yes, StartService
"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
|
|
|
|