Results 1 to 5 of 5

Thread: Quick C++ Question

  1. #1
    Senior Member crazyfool's Avatar
    Join Date
    Jan 2008
    Posts
    761
    Thanks
    77
    Thanked
    38 times in 38 posts
    • crazyfool's system
      • Motherboard:
      • Striker Extreme
      • CPU:
      • Q6600
      • Memory:
      • OCZ 6400 2 x 2GB
      • Storage:
      • Samsung Spinpoint 500GB
      • Graphics card(s):
      • BFG 8800 GT OC 512MB
      • PSU:
      • Coolermaster Real Power Pro 850w
      • Case:
      • Coolermaster CM-690
      • Operating System:
      • XP, Vista, Windows 7 & Ubuntu
      • Monitor(s):
      • Samsung 2232BW

    Quick C++ Question

    hey guys,
    just a quick question (i hope lol)... Basically I am creating a program in c++ which i need to be able to interface with a microsoft access database so that i can add records, delete etc... I 've been googling for a good tutorial but so far I have only found one which seems to be overly complicated so i was hoping someone could point me in the right direction so i can start working out how i'm going to do this... btw i'm assuming this is possible so if its not then i guess i'll have to use java
    cheerz in advance

  2. #2
    Senior Member manwithnoname's Avatar
    Join Date
    Dec 2005
    Posts
    1,050
    Thanks
    17
    Thanked
    26 times in 25 posts

    Re: Quick C++ Question

    As far as I know there is no 'simple' way. One option is using an odbc connection to access the access database. The link below should give you an understanding of the concepts involved, it's in C (not c++). It looks convoluted, but once you get your head round it, it make sense.
    http://www.easysoft.com/developer/languages/c/
    btw you don't need to use Easysoft software, it's stand stuff for the sql.h and sqlext.h includes.

  3. #3
    HEXUS.social member finlay666's Avatar
    Join Date
    Aug 2006
    Location
    Newcastle
    Posts
    8,546
    Thanks
    297
    Thanked
    894 times in 535 posts
    • finlay666's system
      • CPU:
      • 3570k
      • Memory:
      • 16gb
      • Graphics card(s):
      • 6950 2gb
      • Case:
      • Fractal R3
      • Operating System:
      • Windows 8
      • Monitor(s):
      • U2713HM and V222H
      • Internet:
      • cable

    Re: Quick C++ Question

    An access database?

    Are you going to use access with it or is it purely for storage?

    if for storage you could always make use of the .Net features and use an xml document for storage and to serialise/deserialise it, you can query that still.

    Other than that no simple way IIRC
    H3XU5 Social FAQ
    Quote Originally Posted by tiggerai View Post
    I do like a bit of hot crumpet

  4. #4
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,164
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts

    Re: Quick C++ Question

    If your using .Net you could kinda make it source agnostic!
    throw new ArgumentException (String, String, Exception)

  5. #5
    Theoretical Element Spud1's Avatar
    Join Date
    Jul 2003
    Location
    North West
    Posts
    7,494
    Thanks
    335
    Thanked
    313 times in 249 posts
    • Spud1's system
      • Motherboard:
      • Gigabyte Aorus Master
      • CPU:
      • 9900k
      • Memory:
      • 16GB GSkill Trident Z
      • Storage:
      • Lots.
      • Graphics card(s):
      • RTX3090
      • PSU:
      • 750w
      • Case:
      • BeQuiet Dark Base Pro rev.2
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Asus PG35VQ
      • Internet:
      • 910/100mb Fibre

    Re: Quick C++ Question

    forgive me if I am being a retard here..but can you not just use ADO?

    something like:

    http://www.codersource.net/mfc_ado_select.html

    (inserts etc are also shown on that site as examples if you click through the related links)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Just a quick question re DFI LP DK X48 T2R
    By spiderdany in forum SCAN.care@HEXUS
    Replies: 0
    Last Post: 19-08-2008, 06:37 PM
  2. Quick Question - Just placed an order...
    By fonz_valo in forum SCAN.care@HEXUS
    Replies: 3
    Last Post: 01-08-2008, 10:05 AM
  3. Just a quick question - Hard Drive
    By Crazy Fool in forum PC Hardware and Components
    Replies: 2
    Last Post: 13-09-2005, 03:20 PM
  4. Quick Question: PSU's with 1x120mm fan question
    By philyau in forum PC Hardware and Components
    Replies: 10
    Last Post: 05-09-2005, 02:30 PM
  5. Quick Linux question from a newbie...
    By madmonkey in forum Software
    Replies: 19
    Last Post: 26-08-2005, 09:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •