Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Disabling/enabling menu/toolbar items... Pin
Ivan Cachicatari25-Jul-04 11:44
Ivan Cachicatari25-Jul-04 11:44 
GeneralRe: Disabling/enabling menu/toolbar items... Pin
0v3rloader25-Jul-04 11:57
0v3rloader25-Jul-04 11:57 
GeneralRe: Disabling/enabling menu/toolbar items... Pin
Ravi Bhavnani25-Jul-04 13:33
professionalRavi Bhavnani25-Jul-04 13:33 
GeneralSolution for globally listening to keys pressed Pin
0v3rloader25-Jul-04 6:59
0v3rloader25-Jul-04 6:59 
GeneralRe: Solution for globally listening to keys pressed Pin
PJ Arends25-Jul-04 10:13
professionalPJ Arends25-Jul-04 10:13 
Questionhow to pass a simple char* to a unicode binary text?? Pin
youpiyoyo25-Jul-04 5:45
youpiyoyo25-Jul-04 5:45 
AnswerRe: how to pass a simple char* to a unicode binary text?? Pin
bikram singh26-Jul-04 7:53
bikram singh26-Jul-04 7:53 
GeneralODBC Database Metadata (All Table names) Pin
omair shafiq25-Jul-04 5:34
omair shafiq25-Jul-04 5:34 
Dear All,
I am trying to reterieve all the table names of a data bases selected through ODBC Data Source. The Language is MS Visual C++ 6.0 and OS is Windows 2000.
Still i am unable to do it.
I have written a code for it which is given below and is not working Frown | :-(
Please help me in this regard.

Anxiosuly Waiting for some Help

//Code
/*******************************
SQLHENV henv;
SQLHDBC hdbc;
SQLHSTMT hstmt;
SQLRETURN retcode;
char * szdatabase = "a";

SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE, &henv);
SQLSetEnvAttr(henv, SQL_ATTR_ODBC_VERSION, (SQLPOINTER)SQL_OV_ODBC3, 0);
SQLAllocHandle(SQL_HANDLE_DBC, henv, &hdbc);
SQLDriverConnect(hdbc, NULL, (SQLCHAR*)szdatabase, (short)(strlen(szdatabase)+1),
NULL, 0, NULL, SQL_DRIVER_NOPROMPT);
SQLAllocHandle(SQL_HANDLE_STMT, hdbc, &hstmt);
retcode = SQLTables(hstmt, (SQLCHAR*) "%", SQL_NTS, NULL, 0, NULL, 0, NULL,0);


omair
GeneralRe: ODBC Database Metadata (All Table names) Pin
David Crow26-Jul-04 4:05
David Crow26-Jul-04 4:05 
GeneralC reateProcess Pin
Member 75213725-Jul-04 4:04
Member 75213725-Jul-04 4:04 
GeneralRe: C reateProcess Pin
PJ Arends25-Jul-04 10:06
professionalPJ Arends25-Jul-04 10:06 
Generalbandwidth monitoring Pin
Paolo Ponzano25-Jul-04 2:38
Paolo Ponzano25-Jul-04 2:38 
QuestionJumping out of a heavily-nested looping noy by using "goto" statement? Pin
Link260024-Jul-04 17:24
Link260024-Jul-04 17:24 
AnswerRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
Ravi Bhavnani24-Jul-04 17:52
professionalRavi Bhavnani24-Jul-04 17:52 
GeneralRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
Mike Dimmick25-Jul-04 5:30
Mike Dimmick25-Jul-04 5:30 
GeneralRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
peterchen25-Jul-04 6:13
peterchen25-Jul-04 6:13 
GeneralRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
Ravi Bhavnani25-Jul-04 12:01
professionalRavi Bhavnani25-Jul-04 12:01 
AnswerRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
Michael Dunn24-Jul-04 18:22
sitebuilderMichael Dunn24-Jul-04 18:22 
AnswerRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
Johan Rosengren24-Jul-04 20:19
Johan Rosengren24-Jul-04 20:19 
AnswerRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
bikram singh24-Jul-04 21:53
bikram singh24-Jul-04 21:53 
GeneralRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
Kevin McFarlane25-Jul-04 6:52
Kevin McFarlane25-Jul-04 6:52 
GeneralRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
bikram singh26-Jul-04 7:35
bikram singh26-Jul-04 7:35 
GeneralRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
Kevin McFarlane30-Jul-04 8:24
Kevin McFarlane30-Jul-04 8:24 
GeneralRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
bikram singh31-Jul-04 2:32
bikram singh31-Jul-04 2:32 
AnswerRe: Jumping out of a heavily-nested looping noy by using "goto" statement? Pin
Nemanja Trifunovic25-Jul-04 5:54
Nemanja Trifunovic25-Jul-04 5:54 

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.