Thread: About C++ and MySQL or oether free database

  1. #1
    Registered User xxxrugby's Avatar
    Join Date
    Jan 2005
    Posts
    178

    About C++ and MySQL or oether free database

    I need to make in one month something like.!
    I create one main computer.! With main logs.

    OK.!
    So I create some C++ GUI .exe and install it on many computers in firm.
    And they all work as clients.
    On main computer I install MySQL (i dont know nothing about it, i need some good C++ wtih MySQL tutorial).
    And so all client computer connect to main database on MySQL on main computer and all writing in same log.
    Afcourse every user has it's log connectiong with their pass and username. So I can always take easy look how much and many someone sold.

    Is that possible in one month.!
    I know C, but I dont know MySQL.!

    Or do you have some other easy-er stuff (yes I know C# but then I need to install dotNET on all computers "unexaptable").

    Programming on compilers DevC++ or if I must on Visual studio 6.

    And I know that I need to download some addons if I want writting MySQL database.!
    Sorry for spelling errors, not English!
    xxxrugby: "All Human Race Will Die From My Hand!"
    xxxrugby: "We are all philosophers, when question is about politics!"

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Yes, it's possible in one month, and I don't see any reason why you should switch languages or use a different database. Just get started on the program and learning MySQL.

  3. #3
    Registered User xxxrugby's Avatar
    Join Date
    Jan 2005
    Posts
    178
    Well I'll Try.! No to finding some good tutorial.! Thanks for spirit building.!
    Sorry for spelling errors, not English!
    xxxrugby: "All Human Race Will Die From My Hand!"
    xxxrugby: "We are all philosophers, when question is about politics!"

  4. #4
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    there are lots of examples on mysql web site. plus you can find tons of information if you google for "ODBC", which is a common way to access most sql databases. There are even several free ODBC c++ classes, one is on www.codeproject.com. Also google for "ODBC tutorials" and you will find some of those too, they might be for other databases such as Micrisoft Access but they will work with MySql too.

  5. #5
    Registered User xxxrugby's Avatar
    Join Date
    Jan 2005
    Posts
    178
    Thank you.!
    I have heard also about Firebird from http://www.firebirdsql.org/.
    What do you think of that.!

    Now I am in dilema about Firebird or MySQL.!

    I will read what they have to say. And afcource what is easyer for start and what have more options.! And what need what compiler.!
    Sorry for spelling errors, not English!
    xxxrugby: "All Human Race Will Die From My Hand!"
    xxxrugby: "We are all philosophers, when question is about politics!"

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Well, there's also SQLite, which may be easier to start with.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  7. #7
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    For MySQL, though, there's the MySQL++ library, which is quite a good API.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  8. #8
    !anExpert
    Join Date
    Mar 2005
    Location
    pa
    Posts
    155
    MySQL is a good choice.. make sure you have mysql5. *lots* of new goodies in there..

    >> I know C, but I dont know MySQL.!
    I guess you mean you dont know SQL.. no big deal.. SQL is the *easiest* lang to learn, IMO.. pure logic and plain english syntax.. nothing to it.. youll be up and running in a matter of hours..

    as for the frontend of your app.. does this project have to be done in c++ ? the reason that i ask is that a scripting alternative would be soooo much easier.. the flexibility of Perl, or PHP are going to save you countless hours.. not saying that it cant be done in c++, it can and has been a plenty. just that it would not be my first choice..

    maybe even using a mix of perl and c++.. ?
    o so many options and o so little time..

  9. #9
    Registered User xxxrugby's Avatar
    Join Date
    Jan 2005
    Posts
    178
    does this project have to be done in c++
    Nope. It can be in C, C++, C# doesent matter.! No php, ASP or somethig like that.

    Well I am thinking in C++ or C#.
    80/20 to C# beacuse it's much easyer.
    Sorry for spelling errors, not English!
    xxxrugby: "All Human Race Will Die From My Hand!"
    xxxrugby: "We are all philosophers, when question is about politics!"

  10. #10
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    80/20 to C# beacuse it's much easyer.
    In what way? I prefer C++, maybe because I don't know any C#.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  11. #11
    Registered User xxxrugby's Avatar
    Join Date
    Jan 2005
    Posts
    178
    In what way?
    Well C# use this .dotNET Framework and lots of stuff created with much more writing.
    Then it's really easyer. Well I tried both. Still GUI C++ is hard for me (I heavent learn it, too much writing for simple checkbox), but C# heh that really easyer.
    I read a book about C# in 24 hours and really afcourse you are done with that book in 12 hours. And really you can make nice looking stuff.

    C# and C++ and C, like in all languages all is the same. loops,....
    So thinking and solving problems is same.
    Only GUI in C# is programmed in much easyer way.!
    Makeing with forms, Boxes and all that is really easy.

    Only bad thing why I am thinking about C++ is that for C# you must have installed dotNET if you want that program to run.!
    Sorry for spelling errors, not English!
    xxxrugby: "All Human Race Will Die From My Hand!"
    xxxrugby: "We are all philosophers, when question is about politics!"

  12. #12
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Still GUI C++ is hard for me (I heavent learn it, too much writing for simple checkbox)
    Well, you can use a library.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  13. #13
    !anExpert
    Join Date
    Mar 2005
    Location
    pa
    Posts
    155
    >> Still GUI C++ is hard for me (I heavent learn it, too much writing for simple checkbox)

    if you use somthing like Qt most of the GUI work can be done for you in the UI editor. You will be writing little more than you would if you were making this app for console only.

    You said no PHP or ASP (blah) .. you did not say no Perl.. Ok maybe you did when you said it had to be c\c++\c#.. but you also said that it was for a firm.. so this is for your business.. wouldnt they want to make it as simple as possible also.. ? I would bring up Perl.. it would be so much easier, and even if you dont know it, it is close enough to a C that you should pick it up quick..

    thats all, from this point forward i will quit harping on how Perl would be *alot* easier (and more functional) for this application...

    also i better quit before i get lynched.. this is a C board after all...

    <edit>
    >> 80/20 to C# beacuse it's much easyer.
    I have barely scratched the surface in c# (blah) but I would have to agree that for UI stuff it is easier (more convienient would be better choice of wording..).. from what i have seen it is alot like java in the UI respect.. right.. but i have done little more than throw a couple components onto a window in C#.. never did any event handling or anything...
    for now i am avoiding c# like the plague,.. i prefer things that are easily compatible with good operating systems..
    </edit>
    Last edited by xhi; 12-28-2005 at 10:02 PM.

  14. #14
    Registered User xxxrugby's Avatar
    Join Date
    Jan 2005
    Posts
    178
    Yes I know for QT. And QT library was my choice for start. But then I sow that it's trial for Windows.!
    Sorry for spelling errors, not English!
    xxxrugby: "All Human Race Will Die From My Hand!"
    xxxrugby: "We are all philosophers, when question is about politics!"

  15. #15
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    QT is also NOT free for commercial use -- only free for private use where the end product is not for sale. Otherwise, QT is portable between *nix/Unix, MS-Windows and MAC. If you contact a distributor you will probably get a trial version for *nix, if that is what you want.

Popular pages Recent additions subscribe to a feed