![]() |
| ||
| Urgent Pls Help: My codes are in errors! I want to fetch data from SQL Server 2000 using tcp/ip connection and display on the client. Q : How do i fetch data from SQL Server 2000 and put the data on a combo box. Q: My server user interface will have "Fetch" button ? Client User Interface: ___________________________My server program software is Ms Visual Studio.NET 2003. Lanuage is C++ Appreciate the kind help recieved. Q1) COULD YOU PLS CHECK THE FOLLOWING C++ CODES: //databaseDlg.cpp____________________________________________________________________________________________________ //databaseDlg.h ____________________________________________________________________________________________________ //database.cpp _____________________________________________________________________________________________________ Errors: Leading to database.cpp and databaseDld.cpp c:\Documents and Settings\Student\Desktop\database\databaseDlg.cpp(9): fatal error C1190: managed targeted code requires '#using <mscorlib.dll>' and '/clr' option c:\documents and settings\student\desktop\database\database.cpp(84): warning C4717: 'CdatabaseDlg::CreateMySqlDataReader' : recursive on all control paths, function will cause runtime stack overflow Problem: Q2) DEBUGGING PROBLEM: ABOVE ERRORS Q3) IM NOT SURE HOW TO BIND DATA INTO COMBOBOX IN C++ LANG ____________________________________________________________________________________________________ Data to bind to ComboBox: ___________________________ Inside the comboBox Method: void CdatabaseDlg::OnCbnSelchangeCombo1() ANYONE PLS HELP! From Decruz |
| ||
| Re: Urgent Pls Help: My codes are in errors! I do not understand why you want to directly use a tcp/ip connection for fetching the data. Rather creater a dsn to be used over the network to access the sqlserver data. From your Cpp file use Sqlconnect using the dsn name. Prepare the stmt and exceute the sql statement to retrieve the data. |
| ||
| Re: Urgent Pls Help: My codes are in errors! Hi Sutanu! I'm using tcp/ip to transfer those data from my sql server 2000 to my client. You suggest that to use: Rather creater a dsn to be used over the network to access the sqlserver data. From your Cpp file use Sqlconnect using the dsn name. Prepare the stmt and exceute the sql statement to retrieve the data. Q1) How do i do that? Q2) Can you provide some source codes? Thank You |
| All times are GMT -4. The time now is 12:08 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC