Can I do this with C++

This is a discussion on Can I do this with C++ within the Tech Board forums, part of the Community Boards category; I am a web database designer using javascript regularly. I originally learned C, but haven't used it for years. I ...

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    2

    Can I do this with C++

    I am a web database designer using javascript regularly. I originally learned C, but haven't used it for years.

    I need to write a program that will run under Windows XP, which a user can download and install on one of their computers and which will do the following:

    Accept input from an external source (a private digital telephone exchange) and then automatically upload the data via FTP or email to a remote website.

    Is C++ the best way to go? If so, can anyone recommend any good books that will help me to learn how to do this, in particular how to address the ports on a Windows computer.

    Thanks for any help,
    Doug

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,751
    All sorts of different approaches may work, and no doubt C++ could do it.
    Whether its worth the effort or not is another matter. There are a whole bunch of client side scripting languages which make the second part of the problem a snap, but which may have big problems with the first part.

    For example, what is "Accept input from an external source"?
    Which data source and what format are questions which immediately spring to mind.

    Personally, I would write a C program to read the data from the source (over whatever interface it provided), and store that information in a text file. I would then spawn the normal FTP client to do the actual upload to a site.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Nov 2004
    Posts
    86
    given a choice, I would do everything mentioned above with perl, but perl doesn't run on windows without some extra software from ActiveSource.

    I agree wiht the above answer, that c is the best way to get stuff from the external source, but then again, you coudl use c++ with c libraries and get some more advanced options in addition to the normal c stuff.

    Actually, given the nature of teh problem, Java might be a good language to look into. It has a lot of the same capabilities as c and c++ and the sockets are A LOT easier to deal with.

  4. #4
    Registered User
    Join Date
    Mar 2005
    Posts
    2
    Many thanks for your very interesting replies. I am thinking of taking the advice to head towards Java for the solution, as I remember that C was quite awkward to use with communication interfaces.

    If anyone has any recommendations for good books to start learning Java, I would be grateful for your thoughts.

    Thanks again,
    Doug

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21