|
i use InnoSetup for everything i put out. it handles everything i've thrown at it nicely. for my needs, and for the price, it's nearly perfect. i do all my scripts by hand (my largest script is only like 30 lines, so it's a trivial task).
i've only found one or two oddball things that it doesn't do that i wish it did: like, i haven't found a way to make it install to a specific folder based on the contents of a registry key, for plug-ins (read the key to find the location of the host app, then install to that folder). but that's not really a big deal.
-c
For men use, if they have an evil turn, to write it in marble:
and whoso doth us a good turn we write it in dust.
-- Sir Thomas More
|
|
|
|
|
Thanks, Chris! I'm going to give it a shot.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I use InnoSetup all the time.
Never had a single problem, for the price you can't beat it.
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
Thanks, Asim! I'm going to give it a shot.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I use the installed that comes with VS.NET. It integrates very nicely with my source code.
With just one step, I could rebuild all my projects and have them packaged in an MSI file (wizards and all).
Quite a time saver.
Jeremy.
Jeremy Pullicino
Professional C++ Developer
Done any hacking lately?
|
|
|
|
|
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
|
|
|
|
|