August 13th, 2003, 03:19 PM
Cross Platform C++ & Data Abstraction
I'm looking for suggestions for books, materials, and websites where I can learn more about making cross platform applications in C++. Specifically I need to create server side apps/no gui in win2k+, HP-UX and Linux. I'm looking for this from an architect level, not a bits and bytes coding level.
Also, I haven't been able to find a Data Abstraction package like ADO for C++ and is multi platform. Any suggestions? Looking to support Oracle, MS SQL Server, and DB2/MySQL/Postgres would be a bonus.
August 13th, 2003, 04:56 PM
Most ODBC libs are likely to be platform independant.
You can't pass binary data without knowing if your target has different 'endiness'. There are 'big-endian' and 'little-endian' machines and if you go from one to another you will get lots of strange results.
Unless you are sending tons of data, it is simpler to just convert everything to ASCII at the server, then convert it back to binary at the client. I have written a couple of client/server apps that run cross platform via the internet and have never found it worth my while to worry about sending data in binary format.
August 14th, 2003, 09:13 AM
Thanks for the advice. ODBC scares me because of the past reputation of poor performance.
Does anyone know of a Dev Shed kind of site that specializes in C/C++?
August 14th, 2003, 10:18 AM
Aren't you in the C/C++ area of DevShed?
ODBC is for the most part an independant standard (though MS likes to tweak it, probably just to irritate people) and there are probably dozens of implementations. I wouldn't worry too much about performance, most databases accessed accross the network will be running much slower than even inefficient ODBC implementations.