Delphi-PRAXiS
Seite 1 von 2  1 2      

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi search inside an Exe (https://www.delphipraxis.net/92612-search-inside-exe.html)

mohfa 23. Mai 2007 10:42


search inside an Exe
 
Hi , i have made an HTML EXE using VirtualSite which stores all the html , htm files
so every thing goes good , but what i want is to make a search ( for a keyword ) in all these files without extract them like in html help file when you want to search for a keyword then the result will listed in listbox , and the webbrowser will automatically highlight the searched keyword

many thanks

chaosben 23. Mai 2007 10:49

Re: search inside an Exe
 
Hi!

The question is: In which format are the pages stored inside the exe? Is ist the raw html-code? Or is it compressed?
If it isn't compressed, u can open the file as filestream or something like this and search for the text u want to find.
If it is compressed or encoded in another way you have to extract the data.

mohfa 23. Mai 2007 10:56

Re: search inside an Exe
 
the files stored are stored in their original format ( Html ), no compression


thank you

Robert Marquardt 23. Mai 2007 11:04

Re: search inside an Exe
 
What an idiot thing is this? Converting the HTML to .chm would be good enough. Why adding an EXE which only calls IE? .chm does that already.

QuickAndDirty 23. Mai 2007 11:18

Re: search inside an Exe
 
Unlike you see on MTV, educated english men avoid the use of improper words like idiot.
If its bad, then say it is not good.

mohfa 23. Mai 2007 11:43

Re: search inside an Exe
 
Zitat:

Zitat von Robert Marquardt
What an idiot thing is this? Converting the HTML to .chm would be good enough. Why adding an EXE which only calls IE? .chm does that already.

OH my GOD thank you Robert Marquardt for this word : idiot

is this all what you can say .... :?:

Robert Marquardt 23. Mai 2007 11:49

Re: search inside an Exe
 
I call an idiot an idiot. I have a proper place for political correctness (i usually sit on it).
BTW i am referencing VirtualSite not mohfa.

chaosben 23. Mai 2007 12:11

Re: search inside an Exe
 
Zitat:

Zitat von mohfa
the files stored are stored in their original format ( Html ), no compression

Are you sure? Just test it: Open the exe with a hex editor an look for some html code. If you find some, u can be lucky.

mohfa 23. Mai 2007 12:30

Re: search inside an Exe
 
chaosben , you are correct there is no html code :roll:

so chaosben any suggestions

chaosben 23. Mai 2007 12:32

Re: search inside an Exe
 
Zitat:

Zitat von mohfa
so chaosben any suggestions

Zitat:

Zitat von chaosben
If it is compressed or encoded in another way you have to extract the data.



Alle Zeitangaben in WEZ +1. Es ist jetzt 19:43 Uhr.
Seite 1 von 2  1 2      

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz