How do you do. Although it was poor English, since the problem was never unsolvable, it mailed. I tested by Japanese version Winows using Borland 5.5 and mysql-3.23.36-win.zip. However, if easy sauce is written, it will crash at the time of main() end. The following is the sauce. //------------------------------------------------------------ #include <windows.h> #include <stdio.h> #define NO_CLIENT_LONG_LONG #include "mysql.h" int main() { MYSQL *msql = mysql_init(NULL); msql = mysql_real_connect(msql, NULL, NULL, NULL, "my", 0, NULL, 0); mysql_query(msql, "CREATE TABLE user (id INT NOT NULL," " name VARCHAR(32), PRIMARY KEY (id));"); mysql_query(msql, "INSERT INTO user VALUES (1, 'aaa');"); mysql_query(msql, "INSERT INTO user VALUES (2, 'bbb');"); mysql_query(msql, "INSERT INTO user VALUES (3, 'ccc');"); mysql_query(msql, "SELECT * FROM user;"); MYSQL_RES *res = mysql_store_result(msql); MYSQL_ROW row; row = mysql_fetch_row(res); printf("[%s:%s]\n", row[0], row[1]); mysql_data_seek(res, 0); row = mysql_fetch_row(res); printf("[%s:%s]\n", row[0], row[1]); mysql_free_result(res); mysql_close(msql); return 0; } //------------------------------------------------------------ However, it does not crash in VC6.0. Would you teach how to solve this problem some? Or is the idea of using MySQL by Borland impossible? Please let me know in how. I ask of you well. __________________________________________________ Do You Yahoo!? インスタントメッセージを送ろう! Yahoo!メッセンジャー http://messenger.yahoo.co.jp/ --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to