|
James R. Twine wrote (in another life): hi
i am from new york city
i want 2.75 million dollars for using virtual c++
please help me
i want this money as soon as possible
in one or tow day
Seriously, you should google for trie , trie structure , or tree structure to find implementations and examples.
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
|
This[^] tutorial should help you get started.
If you expect someone to just hand you the source code for a working implementation, you've completely misinterpreted the reason for CodeProject's existence.
/ravi
|
|
|
|
|
You get low vote because you said I want a dictionary and as soon as and one or two days.
See here[^] and here[^]
|
|
|
|
|
What would be the easiest method of getting information about the system? When I say information I mean the type of information you would want to know about an end-users machine when they report a bug. OS version, graphics-card/s, installed memory, processor/s....
Is it all stored anywhere in the registry or would I have to enumerate everything?
|
|
|
|
|
Would this[^] be of interest?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
|
|
|
|
|
I guess I missed that article
|
|
|
|
|
Camel[^] is a good source of CPU related information.
/ravi
|
|
|
|
|
Hi all. I am opening an external application (the main application) in my code with the ShellExecuteEx function. I want that if the user closes the main application that my code stops running, but haven't gotten it to work.
From the MSDN library I thought this would work:
SHELLEXECUTEINFO ShExecInfo = {0};
ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
//more ShExecInfo here
ShellExecuteEx(&ShExecInfo); //starts external application, this sets _ //ShExecInfo.hProcess to non-null value
if (ShExecInfo.hProcess == NULL) //check if external application has been closed
running = 0; //this will stop while(running)
The problem is ShExecInfo.hProcess does not become NULL when I close external process. How do I solve this?
--EDIT--
OK I got it fixed with WaitForSingleObject now.
Now just to fix these corrupted stacks that occur!
-- modified at 12:52 Monday 12th February, 2007
|
|
|
|
|
It does not become NULL that is not what it is supposed to do, and the memory for that variable is not connected to anything that could change its value, anyway.
If a valid handle is returned in that variable (be sure to set it to NULL before you call SEE, just to be sure), you can use a wait function on it to see when the launched application exits. The returned handle will transition to the signaled state when the process exits.
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Yes I checked the handle. It is NULL before I open the application and something else after I opened it. I feared what you said. Yes I saw there being some wait functions but I just assumed they would just wait all the time (thereby not executing my code until the program has exited). I want them running simultaneously and close simultaneously!
|
|
|
|
|
Yes, the wait functions normally do just that - they wait. But you can call it at periodic intervals if your application needs to continue to do something. For example, you can set up a timer (SetTimer(...) ) and when it fires, you can call WaitForSingleObject(...) with an immediate timeout to see if the handle has been signaled.
You could also do it with a background thread...
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Maddack wrote: running = 0; //this will stop while(running)
what is that? How does setting "running" to Zero stop the external application?
led mike
|
|
|
|
|
led mike wrote: How does setting "running" to Zero stop the external application?
You didn't know that would work? Where ya been, Mike?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
maybe he is stoping a thread by doing this, but definitely not an external process
|
|
|
|
|
Yes this whole code is in a while loop, and setting running to zero will make me exit the loop, duh!
|
|
|
|
|
Yeah, duh Mike
|
|
|
|
|
I guess it's going to be a Fish Filet for lunch today!
led mike
|
|
|
|
|
I am attempting to create a web service that will send and received XML messages via SOAP. I am not certain which way to go on creating my client app. Ultimately , i have an application written in C++ that will have to ultimately receive the message, but is using C++ as a client much more difficult to code than using C#? Any advice or direction is appreciated.
Thanks,
|
|
|
|
|
LCI wrote: Any advice or direction is appreciated.
If possible use the .NET platform and a C++/CLI project.
led mike
|
|
|
|
|
WHat is a CLI project? So you are saying i can use C++ instead of C sharp as the client? Looking for the easiest ramp time, cause i had never created a web service before, i know C++ pretty decent and no C#.
Also, having problems setting all this up.
I installed IIS 5.0 that came with Win 2000. And when i try to create an ASP web service, it tells me that i have to install ASP.NET 1.1...
|
|
|
|
|
LCI wrote: WHat is a CLI project?
http://www.google.com/search?hl=en&q=MSDN+%22C%2B%2B%2FCLI%22&btnG=Google+Search[^]
LCI wrote: So you are saying i can use C++ instead of C sharp as the client?
And the Service. In Visual Studio Professional under C++/CLR project types there is a "ASP.NET Web Service" project template. It doesn't get any simpler than that. Also on the MSDN web site you will find samples and examples by searching. I would use Google and start every search with "MSDN".
LCI wrote: And when i try to create an ASP web service, it tells me that i have to install ASP.NET 1.1
Yes to run a ASP.NET web service you have to have the .NET framework installed on the server and registered with IIS.
led mike
|
|
|
|
|
LCI wrote: I am attempting to create a web service that will send and received XML messages via SOAP.[...]but is using C++ as a client much more difficult to code than using C#?
Not necessarily.
You can use gSOAP[^] and its WSDL-compiler to get about the same comfort as with C#.
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
jhwurmbach wrote: You can use gSOAP[^] and its WSDL-compiler to get about the same comfort as with C#.
Another option would be Axis C++[^]
|
|
|
|
|
Hi,
I just wondering can I build my appluication for Vista on my XP machine?
Thanks.
|
|
|
|