Converting
VC++ 6.0 programs to linux
Converting a program to linux is tricky, however it can be done in a
way that allows you to compile most of the code on both platforms.
This page will show what I run in to while I convert a program to Linux.
Background
Our program opens the sound card for input and analizes the
incoming (non sound) data. It then saves the resulting data into log
files.
The user interface is for debuging and setting settings.
We have two versions. One uses the motherboard sound card and the
other uses a multitrack sound card (m-Audio Delta 1010LT)
The data is then sent to a FTP site on a daly basis by
connecting to a local ISP.
We curently use NT's dialup server and VNC to dial in to them for
maintance.
Status
Replaced: CSting
ToDo: Lots
The plan
Convert the bulk of the code into a linux service that
loads at startup and create a seperate program that has the user
interface.
The user interface will connect to the service via TCP\IP so
that it can be run over the phone line.
Issues
1. Structure of program
2. ANSI and MFC helpers. (CString, CTime, CFile)
3. Storage of settings (INI files)
4. Sound card "SoundCard.CPP"
5. TCP/IP interface
6. System configuration. (FTP server,
Program structure
We have been planing of converting for a long time. The majority
of the code is contained in a series of generic C++ clases and the
operating system depentant sections are in seperate classes (One file
per class)
I have stayed away from most of the MFC helpers, however the
CString class is very persavive. (See CString on the left for more
information).
I use CFile in serveral places, however I can change to fopen for the
binary areas or use my CTextFile class for the INI files