Click here to Skip to main content
15,911,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalphp and VC++ compatible encryption algorithm???help please Pin
xxhimanshu10-Nov-03 20:02
xxhimanshu10-Nov-03 20:02 
GeneralRe: php and VC++ compatible encryption algorithm???help please Pin
BaldwinMartin10-Nov-03 20:44
BaldwinMartin10-Nov-03 20:44 
GeneralRe: php and VC++ compatible encryption algorithm???help please Pin
geo_m11-Nov-03 8:03
geo_m11-Nov-03 8:03 
GeneralRe: php and VC++ compatible encryption algorithm???help please Pin
geo_m11-Nov-03 8:00
geo_m11-Nov-03 8:00 
GeneralOnSysChar Pin
Vancouver10-Nov-03 19:38
Vancouver10-Nov-03 19:38 
Generalgettin' jiggy with it Pin
closecall10-Nov-03 19:14
closecall10-Nov-03 19:14 
GeneralRe: gettin' jiggy with it Pin
RoyceF1-Dec-06 9:17
RoyceF1-Dec-06 9:17 
Generalto Pin
samhita10-Nov-03 18:39
samhita10-Nov-03 18:39 
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=m;PWD=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".
GeneralDrag and Drop to WinXp Cd Wiz Takes a Wiz Pin
Swinefeaster10-Nov-03 18:15
Swinefeaster10-Nov-03 18:15 
QuestionAny Experts Like to Challange This Questions??? Pin
percyvimal10-Nov-03 16:50
percyvimal10-Nov-03 16:50 
AnswerRe: Any Experts Like to Challange This Questions??? Pin
Dave Bryant10-Nov-03 17:08
Dave Bryant10-Nov-03 17:08 
GeneralRe: Any Experts Like to Challange This Questions??? Pin
percyvimal10-Nov-03 17:15
percyvimal10-Nov-03 17:15 
GeneralRe: Any Experts Like to Challange This Questions??? Pin
Dave Bryant10-Nov-03 17:24
Dave Bryant10-Nov-03 17:24 
GeneralRe: Any Experts Like to Challange This Questions??? Pin
percyvimal10-Nov-03 17:29
percyvimal10-Nov-03 17:29 
GeneralRe: Any Experts Like to Challange This Questions??? Pin
Antti Keskinen11-Nov-03 10:50
Antti Keskinen11-Nov-03 10:50 
GeneralIsWindow(m_hwnd) returns 0. Pin
suninwater10-Nov-03 16:48
suninwater10-Nov-03 16:48 
GeneralRe: IsWindow(m_hwnd) returns 0. Pin
Dave Bryant10-Nov-03 17:14
Dave Bryant10-Nov-03 17:14 
GeneralRe: IsWindow(m_hwnd) returns 0. Pin
suninwater10-Nov-03 19:24
suninwater10-Nov-03 19:24 
GeneralRe: IsWindow(m_hwnd) returns 0. Pin
Dave Bryant11-Nov-03 8:26
Dave Bryant11-Nov-03 8:26 
GeneralRe: IsWindow(m_hwnd) returns 0. Pin
MultiThread10-Nov-03 17:27
MultiThread10-Nov-03 17:27 
GeneralRe: IsWindow(m_hwnd) returns 0. Pin
Swinefeaster10-Nov-03 18:19
Swinefeaster10-Nov-03 18:19 
GeneralCDialogBar Background color Pin
asierra10-Nov-03 16:21
asierra10-Nov-03 16:21 
GeneralDesign opinions/help needed Pin
Steve Messer10-Nov-03 16:06
Steve Messer10-Nov-03 16:06 
GeneralRe: Design opinions/help needed Pin
Antti Keskinen11-Nov-03 11:21
Antti Keskinen11-Nov-03 11:21 
GeneralRe: Design opinions/help needed Pin
Steve Messer11-Nov-03 18:05
Steve Messer11-Nov-03 18:05 

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.