Hi, I have on MS-SQL server table without any key. When I use query analyzer I sould select from this table. But when I try the same sql command in my visual c++ application with oledb than it returns error on CCommand::Open. Only creating primary key helps. Should I any way open the table without any key? Thanks, Alex.
AlexEg
Posts
-
oledb and table with no key -
ODBC-Excel troublesHallo, I write into xls file. I try to create new table but I have problems with few characters in header. Do you know how to write "[" and "]" character into headr - field name? And when I need to write upper delta character? Thanks, Alex.
-
ADO: How to check if dBase-Record is deletedHi, I don't know how to detect deleted record via ADO, but I know the file structure and there is asterisk in the dbf file. Alex.
-
CListViewHallo, can anybody help me with CListView class? 1) I can use only one column with width on all view window. Problem is with scroll bar. I get the size of scroll bar in CListView::InitDialog using GetListCtrl().GetScrollBarCtrl()->GetWindowRect(). But at this time is not scroll bar known. So what is the good way? 2) I can't select any row in list control. I filter callbacks on mouse click but how about keyboard click? 3) I can't show header. I used GetListCtrl().SetExtendedStyle(LVS_NOCOLUMNHEADER); in the CListView::InitDialog but it has no effect. Thanks, Alex. Alex
-
GetProperty and VARIANTHi, I need read text value from property which is in registry defined like VARIAT. So I use following code: COleDIspatchDriver m_Driver; ... VARIANT res; VariantInit(&res); m_Driver.GetProperty(Id_PropText, VT_VARIANT, (void*)&res); ... And that returns res.vt=0x2008, res.bstrVal=0x0018f040. But no text even in the data source is correct text value of this property. Have you any idea where can be problem? Thanks Alex.
-
URGENT: Mouse hook problem, help meHi, do you have this line "#define _WIN32_WINNT 0x0400" before including Afxwin.h ? I found that without it that doesn't work right. Alex
-
Hiding a process in Task Manager !Try to look at following adress: http://www.codeguru.com/cgi-bin/bbs/wt/showpost.pl?Board=vc&Number=203057&page=0&view=collapsed&sb=5&category= Alex