T O P I C R E V I E W |
Berlin_kirsk |
Posted - 02/15/2014 : 18:20:57 So I will be the first to admit I am no good with C++. Has anyone tried to strip and recompile the software provided? Basically take it apart and make it just output the CPM to file?
I have tried numerous ways in bash to get it to work. It does work for a while but isn't stable and usually errors out or locks the port up. If anyone out there has had success with the C program provided, please let me know
thanks |
4 L A T E S T R E P L I E S (Newest First) |
Berlin_kirsk |
Posted - 02/18/2014 : 18:43:00 Thank you so much! That gives me a great place to start. Thank again for writing the software, it is very appreciated. |
phgphd |
Posted - 02/17/2014 : 19:40:54 Hi, I am the author of the C++ linux software. Several people have let me know that they were able to compile and use it on their linux system. As to writing out the CPM to file, that is a relatively easy C/C++ programming excercise. But I won't do it for you, I am onto other personal projects and with work I have no spare time. So here is a quick and dirty hint of how to do it:
1. Open the file
fstream cpmFile; cpmFile.open(fileName.toStdString(), ios::out); if (cpmFile.is_open() == false) { // issue error message return; } // end if (!cpmFile.is_open())
2. Write to file cpmFile << setw(4) << setfill(' ') << cpm << endl; |
Berlin_kirsk |
Posted - 02/16/2014 : 06:22:30 Yes. The c++ opens and closes the port a bit more gracefully than it can be done in bash script. Was wondering if anyone has compiled a c++ script that they might be willing to share. |
ZLM |
Posted - 02/15/2014 : 23:25:38 "just output the CPM to file"? What you needed exactly?
|