Click here to Skip to main content
15,907,497 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help in Automating with vc++, about word. Pin
Michael P Butler11-Nov-03 1:02
Michael P Butler11-Nov-03 1:02 
QuestionHow to run Macros in VS.Net 2003? Pin
ed welch10-Nov-03 22:21
ed welch10-Nov-03 22:21 
GeneralReconstruct original audio from the compressed form using Directx Pin
elza10-Nov-03 21:59
elza10-Nov-03 21:59 
Questionvc6.0 Dependices Files? Pin
murali_utr10-Nov-03 21:56
murali_utr10-Nov-03 21:56 
AnswerRe: vc6.0 Dependices Files? Pin
David Crow11-Nov-03 2:30
David Crow11-Nov-03 2:30 
GeneralDeveloping Application in International Languages... Pin
Gaurang_Shah10-Nov-03 21:29
Gaurang_Shah10-Nov-03 21:29 
GeneralSequence number Pin
styve10-Nov-03 21:17
styve10-Nov-03 21:17 
Generalproblem in using SQLDriverConnect function Pin
samhita10-Nov-03 21:13
samhita10-Nov-03 21:13 
I want to access database which is in MY SQL on Linux machine from my "C" prgram without creating DSN. For that i have used function SQLDriverConnect as follows.

#define MAXBUFLEN 255
SQLHENV hEnv = SQL_NULL_HENV;
SQLHDBC hDBC = SQL_NULL_HDBC;
SQLHSTMT hStmt = SQL_NULL_HSTMT;

SQLCHAR ConnStrIn[MAXBUFLEN] =
"DRIVER={MYSQL ODBC 3.51 driver};SERVER=192.168.1.60;"
"UID=mWD=m;DATABASE=ftp;";

SQLCHAR ConnStrOut[MAXBUFLEN];
SQLSMALLINT cbConnStrOut = 0;
RETCODE retcode; // Return code

retcode = SQLDriverConnect(hDBC,// Connection handle
NULL, // Window handle
ConnStrIn, // Input connect string
SQL_NTS, // Null-terminated string
ConnStrOut, // Address of output buffer
MAXBUFLEN, // Size of output buffer
&cbConnStrOut,// Address of output length
SQL_DRIVER_NOPROMPT);
It returns SQL_ERROR.
Can you please suggest me where i am going wrong. I think it is in the "ConnStrIn".

GeneralCDialog and tab key Pin
Brian van der Beek10-Nov-03 21:03
Brian van der Beek10-Nov-03 21:03 
GeneralRe: CDialog and tab key Pin
BaldwinMartin10-Nov-03 21:04
BaldwinMartin10-Nov-03 21:04 
GeneralRe: CDialog and tab key Pin
Brian van der Beek10-Nov-03 21:07
Brian van der Beek10-Nov-03 21:07 
GeneralRe: CDialog and tab key Pin
BaldwinMartin10-Nov-03 21:12
BaldwinMartin10-Nov-03 21:12 
GeneralRe: CDialog and tab key Pin
Brian van der Beek10-Nov-03 21:15
Brian van der Beek10-Nov-03 21:15 
GeneralRe: CDialog and tab key Pin
BaldwinMartin10-Nov-03 21:14
BaldwinMartin10-Nov-03 21:14 
GeneralRe: CDialog and tab key Pin
BaldwinMartin10-Nov-03 21:24
BaldwinMartin10-Nov-03 21:24 
GeneralRe: CDialog and tab key Pin
Brian van der Beek10-Nov-03 21:35
Brian van der Beek10-Nov-03 21:35 
GeneralRe: CDialog and tab key Pin
BaldwinMartin10-Nov-03 21:47
BaldwinMartin10-Nov-03 21:47 
GeneralCListCtrl Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
BaldwinMartin10-Nov-03 20:57
BaldwinMartin10-Nov-03 20:57 
GeneralRe: CListCtrl Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
Roger Allen11-Nov-03 0:28
Roger Allen11-Nov-03 0:28 
GeneralRe: CListCtrl Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
Debs11-Nov-03 0:33
Debs11-Nov-03 0:33 
General(Sync) Timing question... Pin
Roland_198010-Nov-03 20:55
Roland_198010-Nov-03 20:55 
QuestionHow to get key of the system administrator in windows registry Pin
w_yufeng10-Nov-03 20:29
w_yufeng10-Nov-03 20:29 
AnswerRe: How to get key of the system administrator in windows registry Pin
David Crow11-Nov-03 2:58
David Crow11-Nov-03 2:58 
GeneralRe: How to get key of the system administrator in windows registry Pin
w_yufeng11-Nov-03 17:51
w_yufeng11-Nov-03 17:51 
GeneralRe: How to get key of the system administrator in windows registry Pin
David Crow12-Nov-03 3:02
David Crow12-Nov-03 3:02 

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.