#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    34
    Rep Power
    12

    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.
    Mike
    http://www.devmanagers.com
  2. #2
  3. I'm Baaaaaaack!
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Jul 2003
    Location
    Maryland
    Posts
    5,538
    Rep Power
    244
    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.

    My blog, The Fount of Useless Information http://sol-biotech.com/wordpress/
    Free code: http://sol-biotech.com/code/.
    Secure Programming: http://sol-biotech.com/code/SecProgFAQ.html.
    Performance Programming: http://sol-biotech.com/code/PerformanceProgramming.html.
    LinkedIn Profile: http://www.linkedin.com/in/keithoxenrider

    It is not that old programmers are any smarter or code better, it is just that they have made the same stupid mistake so many times that it is second nature to fix it.
    --Me, I just made it up

    The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.
    --George Bernard Shaw
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    34
    Rep Power
    12
    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++?
    Mike
    http://www.devmanagers.com
  6. #4
  7. I'm Baaaaaaack!
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Jul 2003
    Location
    Maryland
    Posts
    5,538
    Rep Power
    244
    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.

    My blog, The Fount of Useless Information http://sol-biotech.com/wordpress/
    Free code: http://sol-biotech.com/code/.
    Secure Programming: http://sol-biotech.com/code/SecProgFAQ.html.
    Performance Programming: http://sol-biotech.com/code/PerformanceProgramming.html.
    LinkedIn Profile: http://www.linkedin.com/in/keithoxenrider

    It is not that old programmers are any smarter or code better, it is just that they have made the same stupid mistake so many times that it is second nature to fix it.
    --Me, I just made it up

    The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.
    --George Bernard Shaw

IMN logo majestic logo threadwatch logo seochat tools logo