Hi. There is trouble with List box (CListBox in MFC). I'm need horizontal scroll on CListBox object. There is checkbox "Horizontal scroll" in properties of list box. I turn it on, but scroll doesn't appear. Is there way to create list box with horizontal scroll bar? Is't possible? Every information will be very valuable.
Jackson86
Posts
-
Horizontal scroll for CListBox -
Horizontal scroll for CListBox.Hi. There is trouble with List box (CListBox in MFC). I'm need horizontal scroll on CListBox object. There is checkbox "Horizontal scroll" in properties of list box. I turn it on, but scroll doesn't appear. Is there way to create list box with horizontal scroll bar? Is't possible? Every information will be very valuable.
-
Using ADO in VC++2Ilya: Thank you for link (Спасибо за ссылочку!). I nave another question: how can I get field data format string. When I used DAO, I got this string by DAOProperty::GetValue call. For example, this string looks like "General Number","General Date","Long Date" or something like "#,##0.00."p.";=#,##0.00"p."".
-
Using ADO in VC++Hello I have a problem with using ADO in Visual C++. I'm need to get tables names of database by using types from ADO type library. I found one method: _RecordsetPtr rs_table_names = ado_conn->Execute(L"SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES", NULL, -1L); But there is a problem. This method allows me to get tables names only of SQL server, but with other database formats (MS Access, TXT files, Excel) it doesn’t work. Thanks in advance.
-
Problem with DDE under Vista.Hello Jonathan. Thank you for your answer. You see, I'm working with old code. My task is adapt it for Windows Vista. My boss doesn't want to make serious changes to code without serious reasons. What technology can you suggest instead of DDE? It must provide possibility to send messages from one process to another. 1. DDEInitialize returns integer value, which is equal to 0 ( DMLERR_NO_ERROR ). It also return instance idientifier. If any error occurs, this id must be equal to NULL. But id seems to be valid, although OnDDECommand method in server doesn't run. Other DDE functions doesn't return any errors too. 2. DDEInitialize doesn't fails. And DdegetLastError returns DMLERR_NO_ERROR. So, all DDE functions in client don't fail, but OnDDECommand method in server doesn't run. 3. Yes, the client is on the same machine as the server. The main problem is that, DdeConnect doesn't fail, if even DDE - server has not been run. regards, Jackson.
-
Problem with DDE under Vista.Hello. My program (DDE - client ) connects to DDE - server (MFC) by calls of following functions:DdeInitialyze, DdeConnect, DdeClientTransact. Wnen DdeClientTransact function is calling in client program, OnDDECommand method must be calling in DDE - server. DDE - client and DDE - server are working properly under Windows XP. But there are some problems in Windows Vista. 1. DDE - server has been run with checkbox "Run as administrator" (Compatiblity tab on exe-file properties) turned on. In that case OnDDECommand function in DDE - server is not calling. But DdeInitialyze, DdeConnect, DdeClientTransact functions in client program are not returning any error codes or hanles, which are equal to NULL. If checkbox "Run as administrator" is turned off, all programs work as properly as under WindowsXP. 2. If DDE server has not been run, DdeClientTransact function call must return NULL handle of conversation (HCONV) in client program. But under Windows Vista DdeClientTransact function call returns HCONV, which is not equal to NULL. Please help me in fixing this behavior on vista. Every help will be very useful.
-
Problem with CListCtrl (MFC) on VistaHello all I had a terrible problem. On Release version of my project on Vista there is failure on MFC class method CListCtrl::SetItemState(0,LVIS_SELECTED,LVIS_SELECTED) Any help would be of great use. Thanks
-
Problem with ODBC connectionYes, you are right. It's dBase thing. But it was main problem for me. ODBC interprets dBase database as folder, where dbf files are located, and dbf files as tables of this database.
-
Problem with ODBC connectionI meant that, if i will create my DSN in ODBC Administrator in my computer, I sure that in another computer will be another DSN. Bu t I've already done with my problem. I got ODBC connection,using connection string. I understood my error. It's necessary after "DBQ=" in connection string to write path of folder, not of file.
-
Problem with ODBC connectionNo. If I will create DSN, will my application run at the other computer?
-
Problem with ODBC connectionHello. I'm trying to get connection to dBase file by using ODBC. I'm trying to use code like this:
CDatabase cdb; cdb.OpenEx( _T("DBQ=F:\\database\\a.dbf;DefaultDir=F:\\database\\;DRIVER=Microsoft dBASE Driver (*.dbf);DriverId=533;MaxBufferSize=2048;PageTimeout=5;"));
But i get message: string F:\database\a.dbf is an invalid path. But this file exactly exists!!! I'm using Visual Studio 2005. How should I solve the problem please?