Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Beginner need help to choose Pin
sbouli19-Dec-03 4:58
sbouli19-Dec-03 4:58 
GeneralBeginner need help to choose Pin
sbouli19-Dec-03 4:29
sbouli19-Dec-03 4:29 
GeneralRe: Beginner need help to choose Pin
valikac19-Dec-03 4:56
valikac19-Dec-03 4:56 
GeneralRe: Beginner need help to choose Pin
Ian Darling19-Dec-03 5:54
Ian Darling19-Dec-03 5:54 
GeneralRe: Beginner need help to choose Pin
sbouli19-Dec-03 6:06
sbouli19-Dec-03 6:06 
GeneralRe: Beginner need help to choose Pin
Ian Darling21-Dec-03 22:15
Ian Darling21-Dec-03 22:15 
GeneralRe: Beginner need help to choose Pin
sbouli22-Dec-03 2:38
sbouli22-Dec-03 2:38 
GeneralRe: Beginner need help to choose Pin
Ian Darling22-Dec-03 2:57
Ian Darling22-Dec-03 2:57 
Well, to access a database using C++, I'd use the ADO libraries:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/pg_ado_programming_6.asp[^]

Note that you need a working familiarity with COM (Component Object Model) to make progress with ADO.

ADO allows you to run an SQL Query (and you can specify your own criteria as part of that), and store the returned results in a Recordset object, that you can look through and examine easily. Each fields in each row of the recordset is stored as a Variant object (it's a union of lots of different types, with a tag to say what type you need to look at).

I hope that link gets you started. I would note that using ADO is a lot easier from Visual Basic Big Grin | :-D

There are also other libraries to access database from C++ - you can go lower level and use ODBC directly, or use the DAO library, which ADO superceded, but still seems reasonably popular to use from C++ programs.

--
Ian Darling
"The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
Generalword and VISUAL C++ Pin
andfrr19-Dec-03 4:13
andfrr19-Dec-03 4:13 
Questionwhat are these fonts anyway Pin
wolfgang-schiffer19-Dec-03 4:07
susswolfgang-schiffer19-Dec-03 4:07 
Generalregd database connection Pin
karteek19-Dec-03 3:27
karteek19-Dec-03 3:27 
GeneralRe: regd database connection Pin
David Crow19-Dec-03 3:54
David Crow19-Dec-03 3:54 
Generaldiall_up connection Pin
heba_zien19-Dec-03 3:21
heba_zien19-Dec-03 3:21 
Generalproblem with listctrl Pin
shyampriya19-Dec-03 3:18
shyampriya19-Dec-03 3:18 
GeneralRe: problem with listctrl Pin
valikac19-Dec-03 4:57
valikac19-Dec-03 4:57 
GeneralTo dispatch messages of main thread in OnReceive(...) procedure of CAsyncSocket derived class Pin
erkanina19-Dec-03 3:16
erkanina19-Dec-03 3:16 
GeneralRe: To dispatch messages of main thread in OnReceive(...) procedure of CAsyncSocket derived class Pin
igor196019-Dec-03 12:14
igor196019-Dec-03 12:14 
GeneralMessage Closed Pin
21-Dec-03 23:13
erkanina21-Dec-03 23:13 
GeneralMessage Closed Pin
21-Dec-03 23:41
erkanina21-Dec-03 23:41 
GeneralRe: To dispatch messages of main thread in OnReceive(...) procedure of CAsyncSocket derived class Pin
igor196022-Dec-03 6:53
igor196022-Dec-03 6:53 
GeneralHELP - Symbol Setup problem with VisualC++6.0 on w2k Pin
teobg7019-Dec-03 1:23
teobg7019-Dec-03 1:23 
GeneralMouse over the toolbar and leave it. Pin
Eugene Pustovoyt19-Dec-03 0:17
Eugene Pustovoyt19-Dec-03 0:17 
GeneralRe: Mouse over the toolbar and leave it. Pin
De Nardis Andrea19-Dec-03 1:03
De Nardis Andrea19-Dec-03 1:03 
GeneralRe: Mouse over the toolbar and leave it. Pin
Eugene Pustovoyt19-Dec-03 1:38
Eugene Pustovoyt19-Dec-03 1:38 
GeneralRe: Mouse over the toolbar and leave it. Pin
Maximilien19-Dec-03 2:48
Maximilien19-Dec-03 2:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.