Thread: C/C++ Programs

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

    Join Date
    Jan 2002
    Location
    earth
    Posts
    364
    Rep Power
    13

    C/C++ Programs


    hi! i wonder what's the use of C/C++ programs you created guys, are they have UI too like programs in VB? im totally newbie in C, but im doing some Programming too in PHP and mysql, can you site me an example of a C/C++ programs and its use? thanks a lot
    ...
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    USA
    Posts
    286
    Rep Power
    13
    Yep, my programs all contain GUIs, much like VB programs do.

    Why do we use C/C++ instead of a RAD tool? We need the best possible performance we can get. Efficiency is more important than a super-speedy development time.
    Jon Sagara

    "Me fail English? That's unpossible!"
  4. #3
  5. No Profile Picture
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Location
    earth
    Posts
    364
    Rep Power
    13
    OK, u mean u use VC++, what if you're in UNIX/Linux, what you use to make GUI for C++? thanks
    ...
  6. #4
  7. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    USA
    Posts
    286
    Rep Power
    13
    Perhaps the X Window System. I am really not qualified to answer that question. Perhaps one of the local *nix gurus can provide you with a better answer.
    Jon Sagara

    "Me fail English? That's unpossible!"
  8. #5
  9. *bounce*
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2002
    Location
    Delft, The Netherlands
    Posts
    514
    Rep Power
    42
    There are heaps of GUI toolkits for *NIX, the more prominent being Motif, Qt and GTK+. Motif's a bitch to code in, but both Qt and GTK+ can mimick the look-and-feel of it.

    Then there's Tk, which works together well with all sorts of scripting languages, like Tcl, Perl, PHP, Python, etc.

    When you're coding in C, GTK+ might be the more obvious choice, since its written in C as well, whereas Qt is written in C++. YMMV.
    "A poor programmer is he who blames his tools."
    http://analyser.oli.tudelft.nl/
  10. #6
  11. No Profile Picture
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Location
    earth
    Posts
    364
    Rep Power
    13
    cool, thanks , sorry but i have another question, is TK like the look of VB or VC++ , cuz i haven;t seen one and the development style, is it like in VB or VC++? thanks a lot :)


    PS. Is it included in Red Hat linux 7.3 disttro, the TK
    ...
  12. #7
  13. *bounce*
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2002
    Location
    Delft, The Netherlands
    Posts
    514
    Rep Power
    42
    Tk is not an IDE; it's a library, basically, that allows you to draw buttons and the like easily.

    It's actually rather tightly coupled with Tcl, and hence it's often addressed as Tcl/Tk.

    Perl and Python have each incorporated Tk in some form, Perl-TK and TkInter, respectively.

    The Tcl/Tk website is located at http://www.tcl.tk/, Perl-Tk can be found at http://www.perltk.org/, and for more info on TkInter, go to http://www.python.org/topics/tkinter/.

    The sourceforge URL for Tk is http://sourceforge.net/projects/tktoolkit/.

    There's also a visual IDE for Tcl/Tk, called Visual Tcl. It can be found at http://vtcl.sourceforge.net/, and also has some screenshots to give you an idea what a Tk application might look like.

    And FYI, info on GTK+ and Qt can be found at http://www.gtk.org/ and http://www.trolltech.com, respectively.
    "A poor programmer is he who blames his tools."
    http://analyser.oli.tudelft.nl/
  14. #8
  15. Titles are useless ;)
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    Germanski West
    Posts
    216
    Rep Power
    15
    I code C and C++ mostly for Windows... Programs with GUI...

    Therefore I use VC++ and Borland CBuiilder (Borlands Libaries are implemented usually in Delphi)...

    Im learning C/C++ autodidact (learning by doing) and now exame the WIN32API...
    Did "real" c/c++ before... Alogorithms and so on...

    I did many PHP coding too which is a bit easier but also much similar to C++

    AND:
    I also did MS VB and I hate it now...
    It isnt efficent but its very "static".
    And the GUIs you may produce arent fexible too... Or you have to code via WIN-API which is much harder in VB than in C++ (MS or Delphi or what else) or Delphi...

    So: C++ is my first choice for WIN GUIs too
  16. #9
  17. No Profile Picture
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Location
    earth
    Posts
    364
    Rep Power
    13

    wireless apps.


    can C++ use in developing wireless applications? if yes, can u give me an example of a working example, thanks a lot :)
    ...
  18. #10
  19. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    190
    cout <<"Hello world";
    This works for wireless applications too... :D

    What do you want to do? "wireless applications" is such a general thing, you need to specify a little more what you want to know.

    Wireless networks work just like wired ones. So you can use sockets there too.
    Or do you want/need to code some drivers yourself? Do you want WAP applications? Program a microcontroller to remote control your light bulbs from a WLAN? Tell us...
  20. #11
  21. No Profile Picture
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Location
    earth
    Posts
    364
    Rep Power
    13
    ok sorry for lack of info, i just want to know what C++ applications being used in a Telecommunications Company like sending text messages(SMS) , audio/video(MMS) from a cellular phone, just like that stuff.. and also at the server thing like monitoring of all calls made thru cellular phones and such.. thanks again
    ...
  22. #12
  23. Titles are useless ;)
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    Germanski West
    Posts
    216
    Rep Power
    15
    Sure...
    Like almost every other programming language too...
    But there are no "standard" functions or classes...

    So you need to have a SDK from the hardware manufacturer... (or maybe a third party library)

    Or you have to develope the whole interface yourself...
  24. #13
  25. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    190
    The TelCo companies probably have libraries (=drivers here) for their equipment. Equipment being eg. a PCI GSM multiplexer card. For transmission from one cell to another, I guess they use the GSM protocol or on the wires most likely the good old tcp/ip protocols.

    If you want to send SMS from home, you only need a modem (or CapiModem for ISDN) and a special number from your cell phone provider. Another way is sending email to a special adderss (here it is eg. <tel-no>@vodafone.de) that will be automatically translated to SMS.

    Monitoring calls is probably done on their big servers by keeping a log of all transactions that run though them.

    This is just some general thoughts about it, I am not working for a telco nor do I really know much about their internals.

    If you have a more specifiy problem (like "how do I send MMS from my home PC?"), maybe I or somebody else here can help. Maybe not :rolleyes:
    But I suggest you make a new thread for that question. The subject here is quite bad and the thread was starting about how to make GUI apps with C++. This is becoming far off-topic.
  26. #14
  27. No Profile Picture
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Location
    earth
    Posts
    364
    Rep Power
    13
    sorry for that, but i think it;s still on the topic cuz i want to know the uses of C/C++ programs in the real world.
    ...
  28. #15
  29. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    190
    You are probably using some everyday:
    Windows, the MS Office package, Adobe´s and Macromedia´s software, computer games...

    Not 100% sure, some could also be using C, but afaik C++ is the most common language in professional software development.

IMN logo majestic logo threadwatch logo seochat tools logo