|
Dear List,
Greetings.Presently,I am doing Ph.D at PSG College of Technology,Tamilnadu,India under Anna University.My area of research is rapid prototyping.In this i need to devlop the code to slice the solid or surface models in to n no of thin layers.i.e dividing the solid in to layers.Please any one in the list,can you send me the comments or code for this using C or C++.
Thanking You,
With Warm Regards,
M.Sendil Kumar
M.Sendil Kumar,
Lecturer in Mechanical Engg.,
Dr.Mahalingam College of Engg & Technology,
Pollachi,
Tamilnadu,India -642 003
|
|
|
|
|
I have been putting it off for a month now because i couldnt find a real good place to start studying for this. So i figured I would ask you all here if you recommend some nice places or books to read to work with Internet programming using Windows Sockets or (if you think it is better) any other socket programming.
obviously if at all possible I'd like to study Windows sockets 2, but 1.1 is ok I guess. Remember before you say go read MSDN I am really new to Internet/Network Programming, so something that will guide me is truly the most helpful.
Thanks
|
|
|
|
|
I have a trouble of getting the caption of a menu item when user use arrow key up/down to move the light on the menu.
For example, with NotePade, I can hook WM_SELECTMENU to see the handle of a menu. So, I can use the API function "GetMenuString" to get the caption.
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..
|
|
|
|
|
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
|
|
|
|