|
1. some articles are [unedited], but some are not.
what is different between them?
2. some updated articles are displayed on front page of code-project. but why my articles are not displayed there after I modified them? what is policy about this? are they updated to front-page automatically or manually by web-masters?
hope someone kown my questions.
|
|
|
|
|
|
thx mate,
I post the 2 Qs on that forum...
I haven't used other frums so far except the VC one.
I guess one of my articles had been loaded to front-page after I updated it - but I am not sure, I just saw many traffic from code-project to my site on the second day after modification.
|
|
|
|
|
includeh10 wrote: I just saw many traffic from code-project to my site on the second day after modification.
thats Great!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Mr includeh10, you know CP very well, then you know this is not the right forum for such a question.
anyway, the articles in the unedited readers contribution are those which where submited with the article Wizard (instead of the mail submission). they will remain in this state as long as they are not poped from the stack by one of the CP editors (and believe me, the stack is very long ! lol)
the articles on the CP front page are the latest one which were newly submited or just updated.
|
|
|
|
|
I have a program taht must connect to a database to get a value, in a dialog class, I have entered the necessary code when (OnBnClickedButton1) ,then I copied un existing code "CDatabase _database;
if (!_database.Open("eChessDBSourceName"))........"
in compilation, many errors appears :
'CDatabase' : undecalred identifier
'_database' : undecalred identifier
salem ,c wiem.
|
|
|
|
|
you must include this file in your project !
Bravoone
|
|
|
|
|
As always when the compiler screams "undeclared identifier", make sure you're #include ing the file that declares the classes in question.
Steve
|
|
|
|
|
|
Thank you, i incuded just now, there are no errors but in running, when i connect to the database, it returns " unreachable data and driver name no specified".
what's wrong?
salem ,c wiem.
|
|
|
|
|
My database is snapshot and i dont no way is not working when i change in dynaset ?
so far i dont have any ideea how can i make it to run faster ( to load fast in my CListControl !
you have any ideea how ? i have 300.000 records to load !
Bravoone
|
|
|
|
|
doesn't this approach staisfies you ?
|
|
|
|
|
i need all the data to be loaded in my list !
because i dont now mutch about databases i use CListCtrl to search for data ! if is no other way ... i will need help on databases ! ...to search for data and some operations with databases !
Thank you !
and i will wait your answers !
Bravoone
|
|
|
|
|
You must be dealing with CRecordSet class in your application. I assume your code to fill the list is like this,
CRecordSet rs;
rs.Open( CRecordset::dynaset, NULL,
CRecordset::useMultiRowFetch );
while( !rs.IsEOF( ) )
{
for( int rowCount = 0;
rowCount < (int)rs.GetRowsFetched( );
rowCount++ )
{
}
rs.MoveNext( );
}
rs.Close( );
instead make changes to your code like this,
rs.Open( CRecordset::dynaset, NULL,
CRecordset::useMultiRowFetch );
rs.Open( CRecordset::dynaset,
_T( "Select count(*) from Tablename" ) );
for( int rowCount = 0;
rowCount < (int)rs.GetRowsFetched( );
rowCount++ )
{
}
now get first visible row in list control and last visible row .
and query database for those records only. and update rows of list control.
On each scroll you can query for corresponding rows. You can set flat to each rows , to know whether it is updated?
You need to handle this in WM_VSCROLL with wParam value as SB_ENDSCROLL .
|
|
|
|
|
No , you don t understand my class CRecordset is snapshot not dynaset !
and i want to search for data (if is no data in my list , how can i give the answer ?) i don t want to scroll my list ! i have some CEdits with onchange when i search for data in lists !
Bravoone
|
|
|
|
|
May be I'm not getting your problem, from described scenario. But my answer was based on "lazy evaluation" technique. Dont compute,allocate things unless needed.
|
|
|
|
|
if are other that are more fast then afxdb.h please tell me !?
Bravoone
|
|
|
|
|
Flaviu_2006 wrote: if are other that are more fast then afxdb.h please tell me !?
can you reorganize your sentence? I'm not getting you.
|
|
|
|
|
in my CRecord set class i use this file for odbc procedure if are other files like this please tell me ?
Bravoone
|
|
|
|
|
Sorry friend, no idea. Keep you posted if come across any.
|
|
|
|
|
at last is your problem solve
|
|
|
|
|
I have developed a VC++ program based on communication(online program). In
the application,i have used two threads for computation. The working time
of two threads is very less. my query is ...
1)If the thread is opened and closed each time for computation, will
the program memory grow??? or what is the drawback??
OR
Is it advisable to run the thread with sleep mode without closing the
thread??
Help me......
Empty mind is Devils-Workshop
|
|
|
|
|
madhu_v wrote: 1)If the thread is opened and closed each time for computation, will
the program memory grow??? or what is the drawback??
OR
every time when thread is created it will take some memory.. i.e. overhead.., if computation take less time , then why creating thread , why not include in main program!
madhu_v wrote: s it advisable to run the thread with sleep mode without closing the
thread??
yes and no! wholly depend upon the software design.. you can use event or waitforsingleobject to make thread wait
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Thread creation is a relatively expensive operation, both in space and time. If you spawn a thread and let it run to completion nothing is permanently lost however - assuming of course that your code doesn't contain any memory (or other resource) leaks.
If you’ve got lots of small tasks you want to run in another thread and you spawn a thread for each task you could easily find that the thread creation and destruction time dominates and causes performance problems. One solution to this is to use a thread pool. See the QueueUserWorkItem API.
Steve
|
|
|
|
|
Hi Folks,
I am getting this linker error :
error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@$$FQBEXXZ)
Does any of you encountered this before ?? am using VS2003 IDE...
Please let me know if you have the solution..
Thanks,
Hariharan.T
|
|
|
|