Click here to Skip to main content
15,905,414 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: Multiple Inheritance by IDispatch Pin
Stuart Dootson4-Jun-07 21:02
professionalStuart Dootson4-Jun-07 21:02 
GeneralRe: Multiple Inheritance by IDispatch Pin
ajitatif angajetor4-Jun-07 22:06
ajitatif angajetor4-Jun-07 22:06 
GeneralRe: Multiple Inheritance by IDispatch Pin
Stuart Dootson4-Jun-07 23:11
professionalStuart Dootson4-Jun-07 23:11 
QuestionCan't stop the ATL Service in windows 2003 Pin
sumathi pandarinathan3-Jun-07 17:08
sumathi pandarinathan3-Jun-07 17:08 
QuestionTwo Custom Context Menu Extensions are Now Mutually Exclusive (Vista) Pin
Jeffrey Walton3-Jun-07 16:58
Jeffrey Walton3-Jun-07 16:58 
AnswerRe: Two Custom Context Menu Extensions are Now Mutually Exclusive (Vista) Pin
Jeffrey Walton4-Jun-07 14:32
Jeffrey Walton4-Jun-07 14:32 
Questionproblem with adding toolbar using shared addin? Pin
Banks K31-May-07 1:37
Banks K31-May-07 1:37 
QuestionOLE DB Pin
User 1278230-May-07 18:59
User 1278230-May-07 18:59 
I've been working on an application that uses OLE DB to read and store data from an ODBC source (currently an access file on the local machine). Up until today everything has been working perfectly when I made some changes to the database structure and several query functions. The odd thing is I haven't changed the code in this function or the connection setup code. In the example below, the SQL statement is something to the effect of "SELECT * FROM Sensor WHERE SensorVar='Temperature' ORDER BY -SensorID;" which is a query that worked yesterday.

<br />
	HRESULT hRet;<br />
	if(FAILED(hRet=m_Accessor.Open(m_Sess,sSQL,m_Propset)))<br />
	{<br />
		return FALSE;<br />
	}<br />


The function values with a hRet value of 0x80040E21, which corresponds with "Multiple step OLE DB operation generated errors" or DB_E_ERRORSOCCURRED, depending on which google result one believes. Since the problem occurred after the database changes (the net effect being the addition of a table) I'm inclined to believe the problem lies there, but I've included the relevant code and I'm open to any suggestions

Thanks!




<br />
	CDataSource		m_Source;<br />
	CSession		m_Sess;<br />
	CCommand		<CAccessor<CSomeAccessor>> m_Accessor;<br />
	CDBPropSet*		m_Propset;<br />
<br />
<br />
..............<br />
<br />
<br />
	if(m_Source.OpenFromInitializationString(A2OLE(szBuff),FALSE)!=S_OK)<br />
	{<br />
		m_Source.Close();<br />
		return FALSE;<br />
	}<br />
<br />
	if(m_Sess.Open(m_Source)!=S_OK)<br />
	{<br />
		m_Sess.Close();<br />
		m_Source.Close();<br />
		return FALSE;<br />
	}<br />
<br />
	m_Propset=new CDBPropSet(DBPROPSET_ROWSET);<br />
	m_Propset->AddProperty(DBPROP_IRowsetChange,true);<br />
	m_Propset->AddProperty(DBPROP_CANFETCHBACKWARDS,true);<br />
	m_Propset->AddProperty(DBPROP_CANSCROLLBACKWARDS,true);<br />
	m_Propset->AddProperty(DBPROP_UPDATABILITY,DBPROPVAL_UP_CHANGE|DBPROPVAL_UP_INSERT|DBPROPVAL_UP_DELETE);<br />
<br />


szBuff is a ODBC connection string.

modified 12-Jul-20 21:01pm.

QuestionCreate an ActiveX control through code Pin
arjunmarwaha29-May-07 18:35
arjunmarwaha29-May-07 18:35 
AnswerRe: Create an ActiveX control through code Pin
Clebson Derivan31-May-07 4:17
Clebson Derivan31-May-07 4:17 
QuestionHow to represent correctly UTF8 strings in WTL controls? Pin
Vlad029-May-07 7:01
Vlad029-May-07 7:01 
AnswerRe: How to represent correctly UTF8 strings in WTL controls? Pin
Michael Dunn29-May-07 9:04
sitebuilderMichael Dunn29-May-07 9:04 
GeneralRe: How to represent correctly UTF8 strings in WTL controls? Pin
Vlad030-May-07 4:09
Vlad030-May-07 4:09 
QuestionHow can i use a ATL Simple Object as word addin? Pin
Banks K28-May-07 21:28
Banks K28-May-07 21:28 
QuestionBHO event about IE focus Pin
dynfrompoly24-May-07 11:21
dynfrompoly24-May-07 11:21 
QuestionCOM applications. Pin
tom groezer24-May-07 9:19
tom groezer24-May-07 9:19 
AnswerRe: COM applications. Pin
Michael Dunn24-May-07 13:46
sitebuilderMichael Dunn24-May-07 13:46 
QuestionCode Pin
tom groezer24-May-07 9:15
tom groezer24-May-07 9:15 
AnswerRe: Code [modified] Pin
Stuart Dootson24-May-07 10:47
professionalStuart Dootson24-May-07 10:47 
AnswerRe: Code Pin
Michael Dunn24-May-07 13:47
sitebuilderMichael Dunn24-May-07 13:47 
QuestionATL dialog Pin
tom groezer24-May-07 9:11
tom groezer24-May-07 9:11 
AnswerRe: ATL dialog Pin
Michael Dunn24-May-07 13:48
sitebuilderMichael Dunn24-May-07 13:48 
QuestionDownload progressbar implementation Pin
Arif Siddiquee22-May-07 8:37
Arif Siddiquee22-May-07 8:37 
AnswerRe: Download progressbar implementation Pin
Hamid_RT22-May-07 8:48
Hamid_RT22-May-07 8:48 
GeneralRe: Download progressbar implementation Pin
Arif Siddiquee22-May-07 8:54
Arif Siddiquee22-May-07 8:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.