Click here to Skip to main content
15,904,339 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Free the memory!!! Pin
David Crow14-May-03 7:08
David Crow14-May-03 7:08 
GeneralRe: Free the memory!!! Pin
Nitron14-May-03 14:31
Nitron14-May-03 14:31 
QuestionKeyboard Input ? Pin
_skidrow_vn_14-May-03 5:10
_skidrow_vn_14-May-03 5:10 
AnswerRe: Keyboard Input ? Pin
Chris Richardson14-May-03 7:54
Chris Richardson14-May-03 7:54 
GeneralRe: Keyboard Input ? Pin
_skidrow_vn_14-May-03 8:11
_skidrow_vn_14-May-03 8:11 
GeneralRe: Keyboard Input ? Pin
Chris Richardson14-May-03 8:21
Chris Richardson14-May-03 8:21 
GeneralRe: Keyboard Input ? Pin
_skidrow_vn_14-May-03 9:15
_skidrow_vn_14-May-03 9:15 
GeneralConsole Application with Database Connectivity Pin
Unplugged14-May-03 4:11
Unplugged14-May-03 4:11 
Here is my problem.

I am writting a console application and I need to connect to a database in order to either execute a stored procedure or to execute a query. Then I want to store the results into an array and use it for other purposes throughout the program. My problem is how do I connect, and how to I execute and retreive the results. I've tried using a wizard, but it creates so much code that I don't understand. Cry | :(( Is there a library that I can pull in and use it?

My database is accessable via ODBC, I've tested the connection and it works.
Assuming the ODBC name for the database is "Database1" and the stored procedure name is "sp1", how would I code it? Confused | :confused:

ICXC
NIKA
GeneralRe: Console Application with Database Connectivity Pin
basementman14-May-03 4:38
basementman14-May-03 4:38 
GeneralRe: Console Application with Database Connectivity Pin
Unplugged14-May-03 7:19
Unplugged14-May-03 7:19 
GeneralRe: Console Application with Database Connectivity Pin
basementman14-May-03 8:14
basementman14-May-03 8:14 
GeneralRe: Console Application with Database Connectivity Pin
Unplugged14-May-03 8:21
Unplugged14-May-03 8:21 
GeneralDragging a rectangle Pin
Franz Klein14-May-03 4:03
Franz Klein14-May-03 4:03 
GeneralRe: Dragging a rectangle Pin
basementman14-May-03 4:57
basementman14-May-03 4:57 
GeneralRe: Dragging a rectangle Pin
John R. Shaw14-May-03 7:00
John R. Shaw14-May-03 7:00 
GeneralRe: Dragging a rectangle Pin
Anonymous14-May-03 22:42
Anonymous14-May-03 22:42 
GeneralCFileDialog problem Pin
Anonymous14-May-03 3:36
Anonymous14-May-03 3:36 
GeneralRe: CFileDialog problem Pin
David Crow14-May-03 3:45
David Crow14-May-03 3:45 
GeneralRe: CFileDialog problem Pin
Anonymous14-May-03 3:51
Anonymous14-May-03 3:51 
GeneralRe: CFileDialog problem Pin
David Crow14-May-03 4:19
David Crow14-May-03 4:19 
GeneralRe: CFileDialog problem Pin
Anonymous14-May-03 5:53
Anonymous14-May-03 5:53 
GeneralRe: CFileDialog problem Pin
Amihai14-May-03 3:49
Amihai14-May-03 3:49 
GeneralRe: CFileDialog problem Pin
Anonymous14-May-03 3:55
Anonymous14-May-03 3:55 
GeneralRe: CFileDialog problem Pin
Anonymous14-May-03 4:11
Anonymous14-May-03 4:11 
Generallength of a vector Pin
flora_k14-May-03 3:29
flora_k14-May-03 3:29 

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.