|
If I had the time, I would...
Thanks
|
|
|
|
|
Or you could just use this[^] one.
/ravi
|
|
|
|
|
|
Your pardon Mike. I accidentally voted the "1" . Really need an "Undo" button.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
|
|
|
|
|
I usually change the "Intermediate Directory" to somewhere outside my source directory. ie in a project I'm currently working on, this setting is set to "$(SolutionDir)..\..\tmp\$(ProjectName)\$(ConfigurationName)".
Orhun Birsoy
|
|
|
|
|
I want to use PNL Package{.cpp and .hpp} {Probabilistic Network Library}, and i need to intoduce this package, i use C++.net (Visual Studio 2005).
I test #include"CGraph.hpp" , but it doesn't work. please help me.
|
|
|
|
|
abbd wrote: I test #include"CGraph.hpp" , but it doesn't work.
What does not work?
Please post any errors, whether compile time or run time.
Also, just including the header is not even half of the work: You also need to link a library (or compile the source code).
The headers are only a delcaration of what the compiler has to expect in the library or cpp files.
"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.
|
|
|
|
|
it tells me error, and when I write the words key like WriteCGraph he write error, has my knowledge hpp was in C++!!, thank you
|
|
|
|
|
abbd wrote: it tells me error,
What error? Be very specific! We're not mind readers.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
that doesn't mean anything.
which error ?
does it happen at compile time ? linking time ? execution ?
what is the exact error message ?
|
|
|
|
|
abbd wrote: it tells me error,
When you compile or when you run your program?
I think you are still at compile time.
In this case, You will see a tab at a window. This tab is labled "Task list".
I this you will find a list of the errors in your project.
How many are there?
Ok, here is a checklist:
In your project, you have added the hpp and cpp-files from CGraph ?
In any file where you want to call functions CGraph, you have written #include "CGraph.hpp" at the top (but below the line #include "stdafx.h" if it is there)?
"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.
|
|
|
|
|
have added the hpp files, it happen at compile time
he exact error message "fatal error C1083: Cannot open include file: 'pnl_dll.hpp': No such file or directory"
Thank you.
|
|
|
|
|
You have got some links in the thread you opened later. These really help!
In the Project-Properties, you will find "C/C++" - "General" - "Additional Include Directories". There you enter a (preferably relative" path to the dir with headers you want to include.
I my project, I have something like: "..\boost\boostInclude"
This way, I can include boost-headers by writing:
#include "lexical_cast.hpp"
I could also drop the "boostInclude" above and include
#include "boostInclude\lexical_cast.hpp"
to make clearer that lexical_cast.hpp is not my file.
"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.
|
|
|
|
|
hi
i am from Iran
i want a dictionary with trie algorithm with vitual c++
please help me
i want this program as soon as pasiable
in one or tow day
leila
|
|
|
|
|
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!
|
|
|
|