|
Look at the doc here[^]. At the bottom of the page, it shows you which header file you need to include and to which library your program needs to be linked to. So, you have to link to shlwapi.lib (check in your project settings for that).
|
|
|
|
|
Can anybody tell me how to get the Scrollbar's thumb coordinates? Not its thumb position, but its coordinates (CRect).
Plzzzz, help me.
|
|
|
|
|
You cannot ... directly.
I've never thought of that, but isn't the thumb a child window of the scrollbar? I think it is. If it is so, then you could enumerate the children, identify the one representing the thumb, then ask for its rect.
SkyWalker
|
|
|
|
|
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
|
|
|
|