|
vtalau wrote: However, with MS.Word, the menu is not the menu of the windows's system, so I can't get the caption of menu item by the above way. The menu class name used in MS.Word is "MsoCommandBar", I used Spy++ to see the messages related to this class. However, I can't get anything to solve my trouble.
I'm in dark. Please, help me. Thanks a lot..
I did face the same problem sometime back.
From MSDN:
GetMenu does not work on floating menu bars. Floating menu bars are custom controls that mimic standard menus; they are not menus. To get the handle on a floating menu bar, use the Active Accessibility APIs.
Nibu thomas
Software Developer
|
|
|
|
|
would you like to give me the pages which have information of the Active Accessibility APIs in detail, please?. I ever searched by Google with the key word of "Accessibility API", but I can find nothing related to my problems.
|
|
|
|
|
Even I did
Nibu thomas
Software Developer
|
|
|
|
|
would you like to give me a small example code to do that, please?. I'm a student, I'm fond of Win32, I'm trying to do that.
|
|
|
|
|
I'm confused. If you have a header named "myheader.h" defined has:
#ifndef MyHeaderH
#define MyHeaderH
#endif // MyHeader
Then what's the use of the "#pragma once" directive if both are used to include a file only once? Or am I wrong and they have different purposes?
I've seen the "#pragma once" definition here
Thanks in advance
hint_54
|
|
|
|
|
Well AFAIK both accomplishes the same purpose. Apart from that(AFAIK) #pragma maintains a list of included files too.
Nibu thomas
Software Developer
|
|
|
|
|
Then if I use only one of them its the same thing, right?
regards
PS: what does AFAIK mean??
hint_54
|
|
|
|
|
hint_54 wrote: Then if I use only one of them its the same thing, right?
Dan has answered your query.
hint_54 wrote: PS: what does AFAIK mean??
As Far As I Know.
Nibu thomas
Software Developer
|
|
|
|
|
from cplusplus.com[^]
The pragma directive is used to specify diverse options to the compiler. These options are specific for the platform and the compiler you use. Consult the manual or the reference of your compiler for more information on the possible parameters that you can define with #pragma.
If the compiler does not support a specific argument for #pragma, it is ignored - no error is generated.
#pragma once is supported by many but not all compilers. If you want to write code that works with a number of compilers, you should use the old fasioned #define... method.
Regards,
Dan
Remember kids, we're trained professionals. Don't try this at home!
|
|
|
|
|
How to call web service in vc++6.0.The Web service is written by vc++.net(ATL).Please give me an example code.I know that how to call it in Vc++.net,but the same as in Vc++6.0? I don`t want to finish it with soap.
Sorry,my English is not good.
|
|
|
|
|
It is still using SOAP,in fact I believe web service (regardless of Java or any other platform) are using SOAP protocol as foundation which you can't escape from it.
Anyway, you can try this
http://www.codeproject.com/webservices/SoapClient_CPP.asp
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
I know the exam you given to me.But i don`t want to use this method.
Cam you give me another method (not using soaptoolkit)?
|
|
|
|
|
You could probably try to write yourself a simple SOAP client using WinSock or probably could try to use WinInet to do it. How about to search for another SOAP SDK? (which most probably not free like this one
http://www.sqldata.com/soapclient/usingSoap.htm[^])
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
how can you determine if a certain process is a system process
in kernel mode?
the _ETHREAD structure has a field called SystemThread. I guest that if that field is TRUE then the certain thread is a system thread and if a process has all thread with than SystemThread set to true are system processes. I gues I was wrong. i tested that on the process called "sytem" and it had'n all threads system threads even though it is system process.
there must be a way. how does the taskmanager do it ?
and another thing how can you enumerate all threads of a process in kernel mode. Is there a way to get them from the _EPROCESS structure ?
gabby
|
|
|
|
|
Hi euacela
I saw your answer in example's MSDN that enumerate threads of a process and detail process's
|
|
|
|
|
I have a MFC dialog box program, and all it is does is ping other computers and display the results. Right now I'm calling my function to ping from the OnInitDialog function. Therefore this executes the ping function before the dialog box pops-up causing a delay for the dialog to show up. Is there anyway I can pop-up the dialog box first, and then automatically call my ping function (without having to hit any buttons)?
Thanks
|
|
|
|
|
Make a button handler for the ping operation and then post your dialog a message to itself simulating the button click. That would do it. Or create and process your own registered message - post it to yourself from the OnInitDialog.
People that start writing code immediately are programmers (or hackers), people that ask questions first are Software Engineers - Graham Shanks
|
|
|
|
|
Thanks, PostMessage is what I needed.
|
|
|
|
|
Hi,
I am stuck up in the middle of killing a process created using CreateProcess within a DLL. While using ExitProcess with the crated process's exitcode, it is terminating the parent process too. Is there anyway to kill a process created within a DLL without disturbing the parent process?? . BTW the process that is craeted is an exe file of a console application.
thanks,
-Pav.
Got it, nevermind by using terminate process with process handle that was created
-- modified at 18:06 Wednesday 5th April, 2006
|
|
|
|
|
well
you should do it with terminate process
but when opening the process and obtaining the handle you should open it without inheritting from parrent.
OpenProcess(
DWORD dwDesiredAccess,
BOOL bInheritHandle,
DWORD dwProcessId
);
DediredAccess should be PROCESS_TERMINATE
and bInheritHandle should be FALSE
Then terminateprocess should do the job easily;
gabby
|
|
|
|
|
OpenProcess hmmm... will give it a try sometime... Thanks for your time though..
-Pav
|
|
|
|
|
Although the practice is rampart - in general it is not safe to go around calling TerminateProcess on processes. This API kills the process on the spot and as such the application doesn't have a chance to clean up after itself. For example it may result in temporary files not being deleted, files or registry entries in a corrupt state as a result of the process being terminated in the middle of an update or worse.
Steve
|
|
|
|
|
Yep, you are right. But, depending upon the application I think we can go in this way to get around the problem. But in intensive applications this is not something that is recommended as you said. But, for me, this is good enough as I am using to start and stop NI-Board.
-Pav
|
|
|
|
|
|
Hi All,
I need help with the list boxes.I am working with Dlls.
Okay so what I want to do is: I created a list box with some items in it.
For example: FDK01, FDK02...FDK09 means key F1, F2.....F9. Now, I want to perform something like when I select FDK01 in the list box and then say OK ..it should then allow me to pressed button 1. How should I code the list box item to perform what I want?
Thanks in advance
C++Prog
|
|
|
|