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

C / C++ / MFC

 
QuestionMSAccess through ODBC : Office needed ? Pin
Jerome Conus12-Oct-04 21:12
Jerome Conus12-Oct-04 21:12 
AnswerRe: MSAccess through ODBC : Office needed ? Pin
Kurt Muellner12-Oct-04 21:30
Kurt Muellner12-Oct-04 21:30 
AnswerRe: MSAccess through ODBC : Office needed ? Pin
Antony M Kancidrowski13-Oct-04 1:53
Antony M Kancidrowski13-Oct-04 1:53 
QuestionHow do I get 'class CString' to 'const char *' Pin
Jochum Wittebrood12-Oct-04 21:08
Jochum Wittebrood12-Oct-04 21:08 
AnswerRe: How do I get 'class CString' to 'const char *' Pin
GDavy12-Oct-04 22:14
GDavy12-Oct-04 22:14 
GeneralRe: How do I get 'class CString' to 'const char *' Pin
Rick York13-Oct-04 9:59
mveRick York13-Oct-04 9:59 
Questionhow to create a port Pin
sarath_babu12-Oct-04 21:04
sarath_babu12-Oct-04 21:04 
GeneralCListBox AddString Question/Problem Pin
otrcomm12-Oct-04 20:45
otrcomm12-Oct-04 20:45 
Hello,

I am testing Rob Grove's SQLite wrapper called CppSQLite posted here at CodeProject, but I am running it in a Dialog based application. (CppSQLite is a great wrapper for SQLite, by the way).

I have some code that is adding lines to a ListBox instead of 'cout'ing it, but it is behaving strangely. At least I think it is! The following is a section of my code:

<snip>
try
{
int i, fld;
time_t tmStart, tmEnd;
CppSQLiteDB db;

SQLResultsStr.Format(_T("SQLite Version: %s"),db.SQLiteVersion());
m_List_Sqlite_Results.AddString(SQLResultsStr);

remove(gszFile);
db.open(gszFile);

SQLResultsStr = _T("Creating emp table...");
m_List_Sqlite_Results.AddString(SQLResultsStr);

db.execDML("create table emp(empno int, empname char(20));");


SQLResultsStr = _T("DML tests");

m_List_Sqlite_Results.AddString(SQLResultsStr);
<snip>

The problem is that no lines are added to the ListBox until the program completes execution. Then they all come flowing in at once!

The question is, why don't the m_List_Sqlite_Results.AddString(SQLResultsStr) statements add the string to the ListBox immediately after they are executed?

I hope this is clear!

Thanks,
Murrah Boswell

GeneralRe: CListBox AddString Question/Problem Pin
Antony M Kancidrowski13-Oct-04 2:22
Antony M Kancidrowski13-Oct-04 2:22 
GeneralRe: CListBox AddString Question/Problem Pin
otrcomm13-Oct-04 5:15
otrcomm13-Oct-04 5:15 
GeneralRe: CListBox AddString Question/Problem Pin
Antony M Kancidrowski13-Oct-04 8:51
Antony M Kancidrowski13-Oct-04 8:51 
GeneralRe: CListBox AddString Question/Problem Pin
otrcomm13-Oct-04 11:20
otrcomm13-Oct-04 11:20 
GeneralRe: CListBox AddString Question/Problem Pin
Antony M Kancidrowski13-Oct-04 11:37
Antony M Kancidrowski13-Oct-04 11:37 
GeneralImage Editor Pin
Vini Deep12-Oct-04 20:38
Vini Deep12-Oct-04 20:38 
GeneralHelp Needed (Toolbar) Pin
Avinash Gupta12-Oct-04 20:28
Avinash Gupta12-Oct-04 20:28 
GeneralRe: Help Needed (Toolbar) Pin
Cedric Moonen12-Oct-04 20:49
Cedric Moonen12-Oct-04 20:49 
Generalhelp needed....Creating a 3D graph at the end of execution... Pin
Kiran Satish12-Oct-04 19:25
Kiran Satish12-Oct-04 19:25 
Generaldeleting double pointers Pin
Majid Shahabfar12-Oct-04 19:23
Majid Shahabfar12-Oct-04 19:23 
QuestionHow to solve this Problem? Pin
pubududilena12-Oct-04 18:34
pubududilena12-Oct-04 18:34 
AnswerRe: How to solve this Problem? Pin
Ryan Binns12-Oct-04 18:48
Ryan Binns12-Oct-04 18:48 
GeneralRe: How to solve this Problem? Pin
pubududilena12-Oct-04 19:06
pubududilena12-Oct-04 19:06 
AnswerRe: How to solve this Problem? Pin
Michael Dunn12-Oct-04 20:19
sitebuilderMichael Dunn12-Oct-04 20:19 
QuestionHow to put a progress in my project ? Pin
King of Merit12-Oct-04 16:57
King of Merit12-Oct-04 16:57 
AnswerRe: How to put a progress in my project ? Pin
Sujan Christo12-Oct-04 18:19
Sujan Christo12-Oct-04 18:19 
AnswerRe: How to put a progress in my project ? Pin
ThatsAlok12-Oct-04 18:45
ThatsAlok12-Oct-04 18:45 

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.