Click here to Skip to main content
16,017,833 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem in Inserting ActiveX Control in SDI Pin
S_Murali2-Jun-07 2:32
S_Murali2-Jun-07 2:32 
JokeRe: Problem in Inserting ActiveX Control in SDI Pin
Hamid_RT2-Jun-07 20:28
Hamid_RT2-Jun-07 20:28 
QuestionRe: Problem in Inserting ActiveX Control in SDI Pin
Hamid_RT2-Jun-07 20:27
Hamid_RT2-Jun-07 20:27 
QuestionException! Pin
kcynic2-Jun-07 1:05
kcynic2-Jun-07 1:05 
GeneralRe: Exception! Pin
Rajesh R Subramanian2-Jun-07 1:11
professionalRajesh R Subramanian2-Jun-07 1:11 
GeneralRe: Exception! Pin
kcynic2-Jun-07 1:27
kcynic2-Jun-07 1:27 
GeneralRe: Exception! Pin
Rajesh R Subramanian2-Jun-07 1:33
professionalRajesh R Subramanian2-Jun-07 1:33 
GeneralRe: Exception! Pin
kcynic2-Jun-07 1:45
kcynic2-Jun-07 1:45 
my codes is so simple,and the exception was occured in the thirdpart codes.
I don't think the error could be handled using such no sense codes.
my codes like this:
CMyODBC db;<br />
	int rows=0;<br />
	if(!db.ConnectDB("Test","sa",""))<br />
	{<br />
		AfxMessageBox("Opent the database failed!");<br />
		return;<br />
	}<br />
	CString sql="SELECT * FROM [KB_USERS_ALL]";// <br />
	CODBCSet set;<br />
<br />
	db.PrepareSql(sql,set);<br />
	try<br />
	{<br />
		db.FetchData();<br />
		CString str;<br />
		char* msg=set.m_coldata[0].value;<br />
	}<br />
	catch (...)//CException *e<br />
	{<br />
		AfxMessageBox("Exception");<br />
//		e->Delete();<br />
	}<br />
	<br />
	try{	<br />
	while(db.FetchData())<br />
	{<br />
		rows++;<br />
		CString str;<br />
		for(int i=0;i<set.GetCols();++i)<br />
			str+=set.m_coldata[i].value;<br />
		AfxMessageBox(str);<br />
	}<br />
	}catch(...)<br />
	{<br />
		AfxMessageBox("dfgdsg");<br />
	}<br />
	CString str;<br />
	str.Format("there has %d records",rows);<br />
	AfxMessageBox(str);<br />
	try{<br />
//	db.DisConnect();<br />
	}catch(...)<br />
	{<br />
		<br />
	}


But thanks all the same.
Best regards to you.
GeneralRe: Exception! Pin
Rajesh R Subramanian2-Jun-07 2:00
professionalRajesh R Subramanian2-Jun-07 2:00 
AnswerRe: Exception! Pin
Matthew Faithfull2-Jun-07 1:59
Matthew Faithfull2-Jun-07 1:59 
JokeRe: Exception! Pin
Rajesh R Subramanian2-Jun-07 2:02
professionalRajesh R Subramanian2-Jun-07 2:02 
GeneralRe: Exception! Pin
kcynic2-Jun-07 2:15
kcynic2-Jun-07 2:15 
AnswerRe: Exception! Pin
Matthew Faithfull2-Jun-07 2:43
Matthew Faithfull2-Jun-07 2:43 
GeneralRe: Exception! Pin
kcynic2-Jun-07 21:40
kcynic2-Jun-07 21:40 
GeneralRe: Exception! Pin
Matthew Faithfull3-Jun-07 2:43
Matthew Faithfull3-Jun-07 2:43 
AnswerRe: Exception! Pin
Stephen Hewitt3-Jun-07 14:21
Stephen Hewitt3-Jun-07 14:21 
QuestionTo allign text in message box Pin
Mushtaque Nizamani2-Jun-07 0:29
Mushtaque Nizamani2-Jun-07 0:29 
AnswerRe: To allign text in message box Pin
Rajesh R Subramanian2-Jun-07 0:43
professionalRajesh R Subramanian2-Jun-07 0:43 
QuestionInverse of a matrix(urgent:) Pin
sujithkumarsl1-Jun-07 23:50
sujithkumarsl1-Jun-07 23:50 
AnswerRe: Inverse of a matrix(urgent:) Pin
Rajesh R Subramanian2-Jun-07 0:22
professionalRajesh R Subramanian2-Jun-07 0:22 
GeneralRe: Inverse of a matrix(urgent:) Pin
Mark Salsbery2-Jun-07 5:22
Mark Salsbery2-Jun-07 5:22 
AnswerRe: Inverse of a matrix(urgent:) Pin
toxcct2-Jun-07 6:04
toxcct2-Jun-07 6:04 
JokeWRONG!! Pin
Rajesh R Subramanian2-Jun-07 8:37
professionalRajesh R Subramanian2-Jun-07 8:37 
QuestionWH_KEYBOARD_LL Pin
nitin31-Jun-07 22:27
nitin31-Jun-07 22:27 
AnswerRe: WH_KEYBOARD_LL Pin
Rajesh R Subramanian1-Jun-07 22:43
professionalRajesh R Subramanian1-Jun-07 22:43 

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.