Thanks, unfortunately I just deleted the sln and it did not help. I have no VS greater that 6 on my box, so everything works in VS 6.I may try adding VS 2008 again to test the CMAke. Many thanks for your input, appreciate it.
This also partialy explains why I can start a new project from dsw file but I cannot add DSW into existing project - IDE complains.
I was wondering what advice can you give on how to create a data/business model in C++. I mean, when working with C# I usually have no problems, simply follow .NET's guidelines, but it seems there aren't guidelines in C++ on this regard. Is there any example you'd like to share?
I'm thinking common scenarios like a sales system (product, warehouse, pricing, purchase order) or a search inverted index (term, documents, posting, posting lists, dictionaries).
You could overwrite the OnChange Handler (I think it was EN_CHANGED or something like that) and manually get the text, check for any non-digit and remove it. Then set the corrected Text with SetWindowText(), or ReplaceSel().
There are however several pitfalls you need to avoid. First, setting the text programmatically also calls the event handler, and you need some status variable to prevent "recursive" calls.
Second, You need to take the cursor position into account. When you call SetWindowText(), usually the whole edit control content is selected. You could set the cursor position to the end with SetSel() (IIRC you need two calls, one to mark everything and at the same time set the cursor to the end, a second one to mark nothing and leave the cursor where it is.) Since the user may have entered something in the middle you may want to get the cursor position before changing anything (with GetSel()) and set it back to that position later.
I usually avoided these issues by letting the user enter the wrong values and checking them when the control lost focus, unless where was a strong argument against this approach.
I'm not sure where should I post this but it's part of the code in Clips (C Language Integrated Production System ) environment which is software tool for building expert systems.
please let me know where should I post it?
You've been told that this forum isn't suitable, yet have decided to post here again. No matter how may times you post CLIPS != c || c++, the c=part denotes it can be integrated with c-based systems. Additionally CLIPS is relatively specialised, rule based programming is different to the way c operates.
All this adds up to one thing: the advice I have seen here so far is spot-on: don't post this here as this isn't the correct forum and few people here will have an interest in CLIPS, your chances will be vastly improved by posting on a specialised CLIPS forum where everyone is there as they know about/are interested in it.
The defrule for Rule0 has an unbalanced number of brackets BTW my guess is there is one missing at the end of the "not" line, and the ? after tank-is-full looks suspicious. Of course I know next to nothing about CLIPS, which is why going to a CLIPS forum would be so handy.
“Education is not the piling on of learning, information, data, facts, skills, or abilities - that's training or instruction - but is rather making visible what is hidden as a seed” “One of the greatest problems of our time is that many are schooled but few are educated”
yeah, I do that but I didn't get any answer so I post here.
yours help a lot because every time I check every thing else rather than brackets. I didn't pay attention to that at all, it was just frustrating to check sth again and again and don't know what to do.
my problems solved, THX
A couple of weeks ago, I got this nasty rash on my mouse clicking finger. I posted a question to a medical site but nobody answered. I figured that since I was writing a C++ program when it started to hurt that I would repost my question here.
hello everybody :
i want to ask i recently downloaded a C++ source code , i just want to make program executable ( i mean make it binaries)like linux ,
is there any free program that do and make the setup file .
Thanks anyway .
You need to create a project, add the source files to it, compile it and fix the compiler type errors if any.
After this process, you will have an executable.
As for creating a setup program, you can use the free Wix Toolset.
It will integrate with Visual Studio so that you can create the setup program from Visual Studio itself.
You can download it from here - http://wixtoolset.org/[^]
Here is an extensive tutorial on Wix - http://wix.tramontana.co.hu/tutorial[^]
«_Superman_» I love work. It gives me something to do between weekends.
Here's how to make a simple .exe (application executable program) in Windows, copy this source to a file that will call main.cpp
// We will declare our header files as our first column
#include<iostream>// Declare namespaces as the second column
// "int main()" serves as the starting point for our program
cout << "Hello user!" << endl;
Compile this and go to your project's folder and double-click on a folder called bin and then double click on the folder called debug. If its not in there click on the other folder which is called release, if you managed to accidently compiled a release version of your program.
And there it is, your first made .exe file.
Simple Greetings and Regards,
Programming in C and C++ now, now developing applications, services and drivers (and maybe some kernel modules...psst kernel-mode drivers...psst).
Many of life's failures are people who did not realize how close they were to success when they gave up. - Thomas Edison
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 ,
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?
Last Visit: 31-Dec-99 18:00 Last Update: 26-May-16 0:45