|
Thanks for your reply, Jeremy! I think I'm going to try InnoSetup for now because I don't want to have the user download MSI. (Many of my users run Win9x/ME).
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Probably a simple question. i'm trying to call ScrollWindowEx as a method of the object CListBox yet the list box is not scrolling to the position I would expect it to go.
So far i have this,
ScrollWindowEx(0, rt.bottom, &rt, &rt, NULL, &rt, SW_ERASE | SW_INVALIDATE);
Perhaps I'm misinterpreting the parameters.
Anyone have some familiarity with this method?
Thanks!
"Why are we hiding from the police, Daddy?"
"We use VI, son. They use Emacs."
|
|
|
|
|
Use CListBox::SetTopIndex.
Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
|
|
|
|
|
Could somebody point me to some internationalization (localization) code, on how to write such an app? I have to write a bilingual app, and I have to rely on the locale, not only the language (for money, date displays).
tx
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
try looking up GetCurrencyFormat() on msdn and this will point you to all the other locale related API functions.
|
|
|
|
|
|
I have:
void DbClass::DeleteRecord( int nIndex)
{
m_pRecordset->PutAbsolutePosition((PositionEnum)nIndex);
m_pRecordset->Delete(adAffectCurrent);
m_pRecordset->UpdateBatch (adAffectAll);
m_pRecordset->Requery(-1);
}
Is this adequate ? After deleting say ,record#4, and after the requery, where is my recordset pointing to?
Instead of requery should I do a movenext or something? Danger is what is its the last record? Then do I go one back? Very unsure
ns
|
|
|
|
|
I have an MDI app that uses a RichEditCtrl for one frame of its view. When a file is opened, the data goes to the RichEditCtrl. On the OnInitalUpdate I do the following.
SendMessage(WM_SETREDRAW,(WPARAM)FALSE,0);
ExamineJournalFile();
SendMessage(WM_SETREDRAW,(WPARAM)TRUE,0);
Invalidate(TRUE);
The ExamineJournalFile() basically does searches on the text in the control and does some cleanup and highlighting. However, it does this for 10 different keywords, and then places the file location of those keywords into a treeview in a splitter window.
Functionally, everything is fine. My issue is with the speed on large files. I have just begun to play with threading the finds, but I am not sure if that is the safest or the best way.
Anyone encoutered this, or have a better suggestion?
Thanks
|
|
|
|
|
What search routine are you using? I think this can make much of a difference. Fast search routines are based on the so-called Boyer-Moore algorithm (do a search on the net for info and implementations).
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Curently I am using the FindTextSimple() function of the CRichEditView class for the searching because I also need the position (but I guess as long as I know its a position, the row&col can be calculated).
|
|
|
|
|
I presume you're traversing the list 10 times ? Why not provide a vector & as an arguement to ExamineJournalFile and search for all 10 at the same time ? Threading is also probably a good idea if you want your UI to be responsive while this occurs.
The other option is to put your data into a set as you read it, because then searches will be a whole lot faster.
vector and set are part of the STL, if you don't know. Plenty of articles on CP if you need to know more, I've written several.
Christian
We're just observing the seasonal migration from VB to VC. Most of these birds will be killed by predators or will die of hunger. Only the best will survive - Tomasz Sowinski 29-07-2002 ( on the number of newbie posters in the VC forum )
Cats, and most other animals apart from mad cows can write fully functional vb code. - Simon Walton - 6-Aug-2002
|
|
|
|
|
ExamineJournalFile does this:
{
//some text changing and highlighting in the view
FindItems("Chk", "Checks", 5,15,true, true, false,true);
FindItems("Tbl", "Tables", 5,3, true, false,false,true);
FindItems("CE:", "Employees", 7,69,true, true,1,true);
FindItems("CC:", "Cashiers", 7,80,true, true, false,true);
FindItems("Cancelled", "Cancelled", 16,13,false,true, true,false);
FindItems("Payment", "Payments", 18,11,true, true, true,false);
FindItems("No Sale", "NoSales", 18,11,false,true, true,false);
FindItems("Change Due","Change", 15,14,true, true, true,false);
FindItems("Cash", "Cash", 21,8, true, true, true,false);
}
FindItems goes thru the text of the control using FindTextSimple, takes the returned found position and then places the "index" in a treeview control.
I will look at putting the data into a set on the reading of the data. During the serilizing of the archive? Is the set still going to be faster than on a CString::Find()? I would think that ultimately, thats all the CRichEditView::FindTextSimple() does.
Anyway, thanks for the ideas.
|
|
|
|
|
Wade H. wrote:
Functionally, everything is fine. My issue is with the speed on large files
Don't guess. Use the profiler to check what's worth optimizing. Otherwise you'll spend your time doing irrelevant stuff.
Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
|
|
|
|
|
Hi there,
When i you open a Access 2000 database ...
Access engine make a temproray(*.LDB) file beside your database file ...
How can i change the temproray file path ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I'm not sure if you can! The ldb file is used by Access to control multi-user db access, locking etc. so it is vitally important that the file is closely linked to the opened database. You might not have control over the where abouts of this location. Its purpose is not a 'regular' temporary file and as such is not placed in the usual temp location.
If anyone knows otherwise, let me know.
Richard Chin
|
|
|
|
|
You are absolutely correct. MS even published exactly how the ldb works. It MUST reside where the mdb is. No choice.
In code it is possible to open a mdb read-only and exclusive which basically tells it not to use the ldb. This is useful when opening a mdb on a cdrom for static data. This is the only time this kind of thing should be done.
Joel Lucsy (jjlucsy@ameritech.net)
|
|
|
|
|
Hi there,
How can i change the static box background ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
|
Hello Pavel and thanks for sample
Regards
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hi there,
I played a movie by MCI ...
I want to move back the movie to first and play again and again !!!
How can i repeat the movie ???
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
have you tried sending MCI_SEEK with MCI_SEEK_TO_START?
|
|
|
|
|
"Things that don't work on my system (Win 98) all relate to the date based patches (WFP is my only date based patch).
- When I set the date, the messages indicate that the date based files have been copied into SIMPATCH, but they actually haven't been. Eg. When I set the date the 161001, I assume that all the files in the 13 WFPdate folders from 150801 to 161001 should be copied into DATA/SIMPATCH, but by checking in the SIMPATCH folder I can see that non of these date based files are there.
- The 'date:browse' button still doesn't seem to work. When clicked, nothing happens. Funny because the other browse button (for the .exe) works fine. I have to enter date manually.
- The 'modify campaign' button doesn't seem work for me either. When clicked, the date dialog box just disappears."
What he's talking about has to do with an MFC application, RBPatch, which I have been working on. The issues he's having are related to a CFileDialog object, and some CopyFile + FindXFile operations. People running WinXP or WinME have absolutely no issues, but there have been some people running 98 and 95 OSR2 having the exact same issues.
Any ideas?
TIA,
Jam
http://benchmarksims.com
Your One-Stop Shop for Benchmark PC Simulation News.
|
|
|
|
|
How can I load/get/retrieve the 16x16 pxls icon (Information/Error/Question) that I see in the balloon-tooltip what-so-ever it name is (It shows me my connection speed in the system tray when connected)? Its size is important, must be 16x16.
10x.
--BlackSmith--
/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
|
|
|
|
|
You can retrieve it manually: When the icon is being shown, press the key "Print Screen". Launch MSPaint, paste into it, cut the icon and paste it into your resources editor.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Man, I wanna have no resources in my class. I worked kinda hard to create the
icons, pixel by pixel in a matrix...(feels stupid, but hey, you know me...). I wanna load what exists. Me wish not invent no wheel...Man.
Any other ideas?!
--BlackSmith--
/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
|
|
|
|
|