|
well i know how to program , i am talking about compiling about 500 C++ and .h files in one time and make the program thats what i am talking about,
well thank you any way
|
|
|
|
|
OmarSH wrote: ...i am talking about compiling about 500 C++ and .h files... Are they all part of the same project?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
yes , i said i downloaded the source code of a program and i dont have idea, any thing could help
|
|
|
|
|
In that download, were there any project-specific files (e.g., DSW, DSP, SLN)?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
no, nor of visual studio files are included ,it has configure files and other files that could make it done easily on linux ,i can build and install it on linux , but i need to build it just for windows ,
|
|
|
|
|
OmarSH wrote: ...but i need to build it just for windows , Console, EXE, or DLL?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
|
OmarSH wrote: no... So is it a service then? If it's not any of those four, what type of Windows program are you trying to create?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
well, thank you for interesting ,
any way if you have see the link ,and downloaded the source code , you may have better vision because i started programming in c++ from no more than one years ,and this is the first time that i want to do something like that,most of my program were no more than one or two C++ files and a header, this my programming background ,so i don't know how to explain more than that..
i really need help and advice to explain more..
|
|
|
|
|
Start by creating an empty Windows program (whether you opt for console or Win32 is up to you), then add to it those files you downloaded.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Hi every one, I'm not sure where should I ask my question,
I want a link or eBook which explain clips programming but with an expert system example step by step. not form the beginning. I have search the net but I couldn't find what I'm looking for.
I would be so thanks full if some one could help.
|
|
|
|
|
What is "clips programming"?
Use the best guess
|
|
|
|
|
I'm so sorry. what I mean is programming in Clips (C Language Integrated Production System) which is a Tools for expert system.
|
|
|
|
|
|
Thx,but I'm looking for sth which explain it by a simple expert system step by step.
|
|
|
|
|
Hi all,
I am capturing desktop by using BitBlt.
Without CAPTUREBLT, I can capture desktop without capturing layered windows in Windows XP.
In Windows Vista or Windows 7, there is a problem with this, but when I stop the Desktop Windows Manager service, this can be solved.
But in Windows 8, I cannot stop this service, so I must find another solution to capture the desktop screen without layered windows.
Can anybody give me an idea?
Thank you very much.
|
|
|
|
|
Hello,
We are running a boost unit test using command line (cmd). The command is:
C:\> /c "D:\MyExecutable.exe" --run_test=testcase1,testcase2,testcase3, --report_format=xml --report_level=detailed --log_format=xml --log_level=all >test_log.xml 2>test_report.xml
The output format is in XML.
I would like to have the call stack for the failed test cases. Is it possible to write the call stack trace in test_report.xml or test_log.xml ?
Is there any macro or Boost API can help me achieve this?
|
|
|
|
|
Hello,
I have observed that in native unit test framework(c++), there is an option to group test cases using attributes which are reflected as traits in the Test Explorer window in MS VS2012.
Following is a an example of the same:
BEGIN_TEST_METHOD_ATTRIBUTE(TestMethod3)
TEST_OWNER(L"SuperMan")
TEST_PRIORITY(2)
TEST_METHOD_ATTRIBUTE(L"Category",L"Slow")
END_TEST_METHOD_ATTRIBUTE()
TEST_METHOD(TestMethod3)
{
Assert::AreEqual(2,6);
}
How can this be achieved via Boost Unit Test Library? Are there macros to achieve the same?
|
|
|
|
|
I have a problem regarding file streams in Qt.
Basically, I read a file using this code:
int LoadSettings(){
QFile* settingsFile = new QFile(storageFileLocation);
if(!settingsFile->open(QIODevice::ReadOnly | QIODevice::Text)){
return SettingsStorage::ErrorReadingFile;
}
QTextStream settingsFileStream(settingsFile);
while(!settingsFileStream.atEnd()){
QString fileLine;
fileLine = settingsFileStream.readLine();
QStringList splittedSettings = fileLine.split(SETTING_NAME_VALUE_SEPARATOR);
int addingStatus = AddSettingIfNotExist(splittedSettings[SETTINGSARRAY_SETTINGNAMEPOS], splittedSettings[SETTINGSARRAY_SETTINGVALUEPOS]);
}
delete(settingsFile);
return SettingsStorage::Ok;
}
AFAIK I have to delete dynamically allocated memory myself. I dynamically allocate the QFile* "settingsFile" and want to delete it as soon as I do not need it anymore. So why do I get a memory access violation message?
I also know that Qt automatically disposes all allocated objects as soon as they derive from the QObject base class, but I want to write to the file later, therefore I have to clean up the allocated memory by myself.
Any help is greatly appreciated.
|
|
|
|
|
Are you sure that the problem is settingsFile? If QObjects really dispose themselves, maybe they assume to be allocated on the heap and give a problem than being allocated on the stack. Have you tried commtenting parts of the code out, especially the loop and the QTextStream?
|
|
|
|
|
Freak30 wrote: Are you sure that the problem is settingsFile?
Yes. And every other dynamically allocated object. I can allocate memory for an object, but not delete it.
Freak30 wrote: Have you tried commtenting parts of the code out, especially the loop and the QTextStream?
Commented out the delete-part and everything was fine. Except that there was a memory leakage.
|
|
|
|
|
Why you are using "delete(settingsFile);" instead of "delete settingsFile;". What does it mean?
I think you should also close settings file before deleting it.
And if the settingsfile->open() fails you will get another memmory leaks, because you are leaving function without deleting settingsfile.
|
|
|
|
|
Newbie00 wrote: What does it mean?
The same this as sizeof(var) and return(result) . Parenthesis are optional.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Certainly looks like the entire code block is suspect to me.
You have something that looks like a file, which is scoped by new/delete. Then that gets used by something else, that looks like a file reader, and the scope of that is the method. Thus it continues to have a reference to the 'file' until the method exits even though you have already deleted it. Either both should be on the heap or neither should be.
And the first has a close method. Which, hopefully the dtor takes care of by certainly I never assume that.
You make a memory allocation and then do an error check and exit - without cleaning up.
|
|
|
|
|
I need to store a structure in a database..but the structure contains another structure..can anybody help me plz
|
|
|
|