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..
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.
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.
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?
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.
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?
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.
Given that you have two structures, you need something like a foreign key to resolve them when loading them from database.
Given there is structure #1:
and struct #2:
int id,//needs to be unique
You need now a database which has two tables, one to store struct #1 and another one for struct #2:
The table for struct #1 has two fields, for the childStructId and onther one for someValue.
The table for struct #2 has also two fields, one for its unique Id and another one for anotherValue.
Afterwards you can load struct #1 from database, and according to the childStructId you can load struct #2 from the database.
I was just guessing what you want, please come back to me if you have further questions.
first of all thank u so much for ur reply..
what i need is for example there is a structure
now i need to store this structure in a database...as i'm new to database i
dnt have any idea of it...so plz help me...also i'm using sqlite3 database