Results 1 to 3 of 3

Thread: databases

  1. #1

    Thread Starter
    Fanatic Member nabeels786's Avatar
    Join Date
    Jul 2001
    Location
    New York
    Posts
    919

    databases

    can i connect with a db and manipulate it with sql?
    Visit www.fragblast.com
    Gaming, forums, and a online RPG/Battle system




    (__Flagg) DOT NET? is this a Hindi Dating service?

  2. #2

    Thread Starter
    Fanatic Member nabeels786's Avatar
    Join Date
    Jul 2001
    Location
    New York
    Posts
    919
    Doesn't have to be SQL

    I've been looking around for tutorials, I couldn't find any
    Visit www.fragblast.com
    Gaming, forums, and a online RPG/Battle system




    (__Flagg) DOT NET? is this a Hindi Dating service?

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    You can use DAO, but it is very hard and poorly documented without MFC.

    The core thing are the headers dbdaoint.h and dbdaoerr.h. Those define the front-end of the DAO COM objects. The DAO documentation itself was written for VBA.

    I attach some files I've written that can show you everything to get a basic DAO app working. But I warn you: they are a mess and use some classes I have created myself.

    The most relevant files are database.h/cpp (the database handling class), stdhdr.h (includes all headers necessary, especially tcpp.h, objbase.h, comdef.h, dbdaoint.h, daogetrw.h, dbdaoid.h and dbdaoerr.h).

    tcpp is a header I wrote myself. It gives you a UNICODE-generic version of the iostream library.
    objbase is the main header for ALL apps that use COM.
    comdef exists only in VC++, it defines the classes _variant_t and _bstr_t, which are very useful when dealing with COM.
    dbdaoint defines the DAO COM interfaces.
    daogetrw are some additional structs and interfaces
    dbdaoid defines the GUIDs for DAO
    dbdaoerr defines DAO's error codes

    Another tip: use only the W versions of the interfaces and only UNICODE strings.
    Attached Files Attached Files
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

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



Click Here to Expand Forum to Full Width