Click here to Skip to main content
15,887,325 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionMigration from MFC to STL Pin
hrishi32122-Jun-11 20:28
hrishi32122-Jun-11 20:28 
AnswerRe: Migration from MFC to STL Pin
Alain Rist22-Jun-11 22:44
Alain Rist22-Jun-11 22:44 
GeneralRe: Migration from MFC to STL Pin
hrishi32126-Jun-11 18:28
hrishi32126-Jun-11 18:28 
GeneralRe: Migration from MFC to STL Pin
Alain Rist26-Jun-11 21:18
Alain Rist26-Jun-11 21:18 
AnswerRe: Migration from MFC to STL Pin
Albert Holguin23-Jun-11 8:44
professionalAlbert Holguin23-Jun-11 8:44 
GeneralRe: Migration from MFC to STL Pin
hrishi32126-Jun-11 18:30
hrishi32126-Jun-11 18:30 
AnswerRe: Migration from MFC to STL Pin
Bram van Kampen19-Aug-11 15:00
Bram van Kampen19-Aug-11 15:00 
QuestionQuestion about inserting into dbf file Pin
monsieur_jj21-Jun-11 16:08
monsieur_jj21-Jun-11 16:08 
I have this code below that updates a dbf file now this code before also updates a cdx file but I changed something in the values I added now the cdx file is not inline with the dbf.

I have tried to "reindex" and "SET INDEX TO" however everytime I do an insert in the dbf table the modified date of the cdx file stays the same as the old one.

Should the cdx be updated everytime there is something new inserted?

DIAGNOSTICS_CHECKPOINT;
	LOG(L"AutoLoad File Connection String");
	LOG(this->_connectionstring.c_str());
	cnn->CursorLocation = adUseClient;
	try { hr = cnn->Open(this->_connectionstring.c_str(), L"", L"", 0); }
	catch (_com_error& e) 
	{	wss.str(L"");
		wss << L"Opening the AutoloadFile connection from '" 
			<< _connectionstring.c_str() 
			<< L"' has failed (COM Error: " << e.ErrorMessage()
			<< L", " << hr << L")." 
			<< std::endl;
		LOG(wss.str().c_str());
		throw;
	}

	DIAGNOSTICS_CHECKPOINT;
	wss.str(L"");
	wss << L"INSERT INTO " 
		<< this->_tablename
		<< L" VALUES ('" 
		<< trans_id << L"','" 
		<< params << L"','"
		<< status << L"',"
		<< rec_no << L")"
		;

	DIAGNOSTICS_CHECKPOINT;
	std::wstring sql(wss.str().c_str());
	LOG(L"Executing INSERT into the autoload file");
	LOG(sql.c_str());
	try 
	{	rs->Open(sql.c_str(), cnn.GetInterfacePtr(), 
			adOpenForwardOnly, adLockReadOnly, adCmdText);
	}
	catch (_com_error& e)
	{	wss.str(L"");
		wss << L"Executing SQL statement:\n" 
			<< sql.c_str() 
			<< L"'\n...has failed (COM Error: " 
			<< e.Error() << L", '"
			<< e.ErrorMessage()
			<< L"')." 
			<< std::endl;
		LOG(wss.str().c_str());
		throw;
	}

QuestionToolTip text in WTL Pin
SelvaKr20-Jun-11 21:03
SelvaKr20-Jun-11 21:03 
AnswerRe: ToolTip text in WTL Pin
Cool_Dev21-Jun-11 0:31
Cool_Dev21-Jun-11 0:31 
AnswerRe: ToolTip text in WTL Pin
Alain Rist21-Jun-11 4:29
Alain Rist21-Jun-11 4:29 
QuestionCompiler Warning C4407: How bad is it? Pin
Kyudos19-Jun-11 18:03
Kyudos19-Jun-11 18:03 
AnswerRe: Compiler Warning C4407: How bad is it? Pin
Richard MacCutchan19-Jun-11 22:20
mveRichard MacCutchan19-Jun-11 22:20 
GeneralRe: Compiler Warning C4407: How bad is it? Pin
Kyudos20-Jun-11 0:40
Kyudos20-Jun-11 0:40 
AnswerRe: Compiler Warning C4407: How bad is it? Pin
Albert Holguin20-Jun-11 13:44
professionalAlbert Holguin20-Jun-11 13:44 
GeneralRe: Compiler Warning C4407: How bad is it? Pin
Kyudos20-Jun-11 13:58
Kyudos20-Jun-11 13:58 
AnswerRe: Compiler Warning C4407: How bad is it? [modified] Pin
Albert Holguin20-Jun-11 17:10
professionalAlbert Holguin20-Jun-11 17:10 
GeneralRe: Compiler Warning C4407: How bad is it? Pin
Kyudos20-Jun-11 17:18
Kyudos20-Jun-11 17:18 
QuestionRe: Compiler Warning C4407: How bad is it? Pin
Albert Holguin20-Jun-11 17:22
professionalAlbert Holguin20-Jun-11 17:22 
AnswerRe: Compiler Warning C4407: How bad is it? Pin
Kyudos20-Jun-11 17:29
Kyudos20-Jun-11 17:29 
GeneralRe: Compiler Warning C4407: How bad is it? Pin
Albert Holguin20-Jun-11 17:53
professionalAlbert Holguin20-Jun-11 17:53 
GeneralRe: Compiler Warning C4407: How bad is it? Pin
Kyudos20-Jun-11 18:19
Kyudos20-Jun-11 18:19 
GeneralRe: Compiler Warning C4407: How bad is it? Pin
Albert Holguin20-Jun-11 18:21
professionalAlbert Holguin20-Jun-11 18:21 
GeneralRe: Compiler Warning C4407: How bad is it? Pin
Albert Holguin20-Jun-11 18:21
professionalAlbert Holguin20-Jun-11 18:21 
GeneralRe: Compiler Warning C4407: How bad is it? Pin
Kyudos20-Jun-11 18:27
Kyudos20-Jun-11 18:27 

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.