Click here to Skip to main content
15,881,881 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncounterpart in C++ of C#'s UrlEncodeUnicode Pin
manchukuo28-Jul-09 6:25
manchukuo28-Jul-09 6:25 
QuestionRe: counterpart in C++ of C#'s UrlEncodeUnicode Pin
David Crow28-Jul-09 7:16
David Crow28-Jul-09 7:16 
AnswerRe: counterpart in C++ of C#'s UrlEncodeUnicode Pin
manchukuo2-Aug-09 19:27
manchukuo2-Aug-09 19:27 
Questionperformance counter with instance for physical components Pin
De@r28-Jul-09 4:18
De@r28-Jul-09 4:18 
QuestionLOGFONT Pin
kumar sanghvi28-Jul-09 4:08
kumar sanghvi28-Jul-09 4:08 
AnswerRe: LOGFONT Pin
«_Superman_»28-Jul-09 4:18
professional«_Superman_»28-Jul-09 4:18 
GeneralRe: LOGFONT Pin
kumar sanghvi28-Jul-09 4:55
kumar sanghvi28-Jul-09 4:55 
QuestionStrange error in CDatabase::Close()??? Pin
Arrin28-Jul-09 3:52
Arrin28-Jul-09 3:52 
Hi,
if i debug my application, and want to close them, i receive sometimes this strange error in

// Disconnect connection
void CDatabase::Close()
{
	ASSERT_VALID(this);

	// Close any open recordsets
	AfxLockGlobals(CRIT_ODBC);
	TRY
	{
		while (!m_listRecordsets.IsEmpty())
		{
			CRecordset* pSet = (CRecordset*)m_listRecordsets.GetHead();
			pSet->Close();  // will implicitly remove from list
			pSet->m_pDatabase = NULL;
		}
	}
	CATCH_ALL(e)
	{
		AfxUnlockGlobals(CRIT_ODBC);
		THROW_LAST();
	}
	END_CATCH_ALL
	AfxUnlockGlobals(CRIT_ODBC);

	if (m_hdbc != SQL_NULL_HDBC)
	{
		RETCODE nRetCode;
		AFX_SQL_SYNC(::SQLDisconnect(m_hdbc)); // here is error???
		AFX_SQL_SYNC(::SQLFreeConnect(m_hdbc));
		m_hdbc = SQL_NULL_HDBC;

		_AFX_DB_STATE* pDbState = _afxDbState;

		AfxLockGlobals(CRIT_ODBC);
		ASSERT(pDbState->m_nAllocatedConnections != 0);
		pDbState->m_nAllocatedConnections--;
		AfxUnlockGlobals(CRIT_ODBC);
	}
}


But the best is i dont habe any kind of database in my project included????
Does any one have a answer for this issue???

thanks for any help!
Arrin
AnswerRe: Strange error in CDatabase::Close()??? Pin
«_Superman_»28-Jul-09 4:00
professional«_Superman_»28-Jul-09 4:00 
GeneralRe: Strange error in CDatabase::Close()??? Pin
Arrin28-Jul-09 4:03
Arrin28-Jul-09 4:03 
QuestionWindow TopMost window on top??? Pin
Arrin28-Jul-09 3:39
Arrin28-Jul-09 3:39 
AnswerRe: Window TopMost window on top??? Pin
«_Superman_»28-Jul-09 3:51
professional«_Superman_»28-Jul-09 3:51 
AnswerRe: Window TopMost window on top??? Pin
john john mackey28-Jul-09 11:37
john john mackey28-Jul-09 11:37 
QuestionThreading STL Queue Pin
RS.Ratheesh28-Jul-09 1:40
RS.Ratheesh28-Jul-09 1:40 
QuestionRe: Threading STL Queue Pin
CPallini28-Jul-09 1:43
mveCPallini28-Jul-09 1:43 
AnswerRe: Threading STL Queue Pin
RS.Ratheesh28-Jul-09 2:02
RS.Ratheesh28-Jul-09 2:02 
GeneralRe: Threading STL Queue Pin
CPallini28-Jul-09 2:38
mveCPallini28-Jul-09 2:38 
AnswerRe: Threading STL Queue Pin
Maximilien28-Jul-09 3:16
Maximilien28-Jul-09 3:16 
NewsMessage Closed Pin
28-Jul-09 1:04
Dane Marcelo28-Jul-09 1:04 
GeneralRe: CppDepend: C++ tool for architect Pin
Garth J Lancaster28-Jul-09 1:24
professionalGarth J Lancaster28-Jul-09 1:24 
QuestionRe: CppDepend: C++ tool for architect Pin
CPallini28-Jul-09 1:44
mveCPallini28-Jul-09 1:44 
AnswerRe: CppDepend: C++ tool for architect Pin
Dane Marcelo28-Jul-09 5:04
Dane Marcelo28-Jul-09 5:04 
GeneralRe: [Message Deleted] Pin
ThatsAlok28-Jul-09 23:35
ThatsAlok28-Jul-09 23:35 
QuestionHow can get crashing locations of exe? Pin
Le@rner28-Jul-09 0:57
Le@rner28-Jul-09 0:57 
AnswerRe: How can get crashing locations of exe? Pin
Iain Clarke, Warrior Programmer28-Jul-09 2:26
Iain Clarke, Warrior Programmer28-Jul-09 2:26 

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.