Réponse acceptée !
Au plus simple, on va insérer dans 2 champs TEXT:
if(SQLPrepare(hstmt, "INSERT INTO Praticiens (Nom,Prenom) VALUES (?,?)", SQL_NTS) & 0xFFFE) goto freeStmt; SQLBindParameter(hstmt, 1, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, 40, 0, szbuff, 0, &lenNm); SQLBindParameter(hstmt, 2, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, 40, 0, szbuff+44, 0, &lenPrnm); if(SQLExecute(hstmt) & 0xFFFE) goto freeStmt; MessageBox(0, "REUSSITE", "YOUPI", 0); freeStmt: SQLFreeHandle(SQL_HANDLE_STMT, hstmt);
ciao... BruNews, MVP VC++
|