To download the last version of the delphi preview handler check the new page of the project.
The current beta version of the preview handler (DelphiPreviewHandler.dll) is 1.0.1.168 please check the version installed before you report bugs.Some weeks ago I began a parallel project to the Delphi IDE Theme Editor, I name this project Delphi Preview Handler, which basically is a preview handler for windows vista and 7 which allow you read your object pascal, C++ and Assembly code with Syntax highlighting without open in a editor, this preview handler can render these file extensions .pp, .lpr, .lfm, .lpk, .inc, .pas, .dpr,.dfm, .dpk,.dproj, .bdsproj,.c, .cpp,. cc,.h, .hpp,.hh, .cxx, .hxx, . cu, .asm.
Features
- Supports Windows Vista y Windows 7 32 and 64 bits.
- +50 themes included to see your code with style
- Themes compatibles with the Delphi IDE Theme Editor
- Support these file extensions .pp, .lpr, .lfm, .lpk, .inc, .pas, .dpr,.dfm, .dpk,.dproj, .bdsproj,.c, .cpp,. cc,.h, .hpp,.hh, .cxx, .hxx, . cu, .asm.
Technical Stuff
- Written in Delphi XE
- Components used SynEdit
Screenshots
Video
Source Code
Soon, very soon.
Manual Installation
Follow these steps to register the preview handler
1. Choose Start > All Programs > Accessories.
2. Right-click on Command Prompt, Select Run As Administrator, and Authenticate.
3. Go to Delphi Preview Hander folder in Command Prompt.
4. Run “Register.bat”
5. Enjoy
Important Note about editing the Settings.ini file
You can change the theme used in the Preview Handler editing the Settings.ini file, but before to do this you must unregister the preview handler and close all the explorer windows. to avoid problems. please follow these steps :
1. unregister the dll
2.close all the windows explorer
3.edit the Settings.ini file
4.save the changes
5.register the dll
6.enjoy
Important Note about installing a new version
In order to avoid problems you must follow these steps when you install or register a new version of the preview handler.
1. close all the windows explorer windows which have the preview handler active or the preview handler was used (remember the dll remains in memory until the windows explorer was closed)
2. unregister the previous version executing the uninstaller located in C:\Program Files (x86)\TheRoadToDelphi\DelphiPreviewHandler or C:\Program Files\TheRoadToDelphi\DelphiPreviewHandler
3. If you install the preview handler manually you must unregister using the UnRegister.bat running as admin.
4.Now proceed with the installation of the new version.
June 2, 2011 at 5:45 am
Hi,
Looks nice!
I just whipped togheter a preview handler based on another post (http://www.uweraabe.de/Blog/2011/06/01/windows-7-previews-the-delphi-way/), and made a register batch file for it. However, you need to run it as administrator, which will change your working dir, which needs to be addressed in the bat file.
Here’s what I came up with:
@echo off
echo Register Cargolog Data Preview handler
regsvr32 %~dp0CargologDataPreviewHandler.dll
if ERRORLEVEL 1 GOTO ERROR
echo Done.
GOTO DONE
:ERROR
echo FAILED. Perhaps you forgot to start this with the “Run as Administrator” option from the context menu.
:DONE
pause
June 2, 2011 at 5:56 am
This is very usefull! I installed it and will not uninstall it ever again.
I’d very much like to have a look at the source of you are willing to share!
June 2, 2011 at 10:19 am
Thanks for your comments, the source code will be available soon.
June 2, 2011 at 6:04 am
I’m using Windows 7 Ultimate x64… installed your lovely Preview Handler, however…
DFM and DPR previews work great, but .pas files don’t show at all. Probably a small bug somewhere, but figured I’d let you know.
June 2, 2011 at 10:20 am
Simon, can you give more details about this?
June 2, 2011 at 6:43 am
Love it, keep up the good work!!!
June 2, 2011 at 10:21 am
Thanks for your comments and support Dorin ;
June 2, 2011 at 8:00 am
Not work. :(
June 2, 2011 at 10:21 am
Bogdan give more details to help you.
June 2, 2011 at 8:07 am
Very cool! I had a slight problem with installation. To get the DLL to register, I had to:
1. Choose Start > All Programs > Accessories.
2. Right-click on Command Prompt, select Run As Administrator, and authenticate.
3. Go to Delphi Preview Hander folder in Command Prompt.
4. Run “Register.bat”
Very pleased with this utility (and the theme editor as well).
Thanks!
June 2, 2011 at 10:23 am
Yes Michael this is the way ;) , the sames steps are show in the demo video, i will update the post to include the installation steps.
June 2, 2011 at 8:31 am
You are a genius! Great work. I’m gonna try this tomorrow when I go into work. Thank very much.
June 2, 2011 at 10:25 am
Thanks for your comments, i would like be a genius, but i am just another delphi guy ;)
June 2, 2011 at 8:40 am
I registered the Delphi Preview Handler and it’s working with everything but .PAS files. I have the .PAS file extension associated with MultiEdit on my machine. Could that be causing the problem?
June 2, 2011 at 10:27 am
Barry, for the moment i don’t know which can causing your problem, if you can fixed let me know to help to others with the same issue.
June 2, 2011 at 8:55 am
Nice work!
I’m getting an error trying to register it:
The module “DelphiPreviewHandler.dll” was loaded but the call to DllRegisterServer failed with error code 0x80004005.
I’m using Windows 7 (32bits).
Any suggestions?
June 2, 2011 at 10:28 am
Alexandre, you must follow the video steps to register. or
1. Choose Start > All Programs > Accessories.
2. Right-click on Command Prompt, select Run As Administrator, and authenticate.
3. Go to Delphi Preview Hander folder in Command Prompt.
4. Run “Register.bat”
5. Enjoy
June 2, 2011 at 1:17 pm
Hi Rodrigo,
I’m already registering it as administrator. The problem remains.
Regards
June 2, 2011 at 1:22 pm
Hi Rodrigo, disconsider last message! I was able to install it!
Best regards
June 2, 2011 at 1:29 pm
No problem.
June 2, 2011 at 9:14 am
Hey! What kind of coffee you drink? Maybe I need some of that too! :D
Keep the good working Rodrigo.
June 2, 2011 at 10:29 am
EMB Thanks for your comments and support. ;)
June 2, 2011 at 12:09 pm
Rodrigo, consider using this for a installation program: http://delphi.about.com/od/delphitips2009/qt/delphi-vista-registry-run-on-startup.htm
June 2, 2011 at 12:25 pm
It’s wonderful!!!
Can you also make this as a plugin to Total Commander?
June 2, 2011 at 12:41 pm
By the way I got an error after closing the Windows Explorer window:
“Runtime error 217 at 01804171”
Operating system is Windows 7 x32 and Image base of your dll when loaded to prevhost.exe is 017E0000
June 2, 2011 at 12:51 pm
This issue occurs every time which the explorer windows is closed? are modifying the settings.ini file while the preview handler still loaded?
June 4, 2011 at 3:22 pm
Yes it occurs everytime I close windows explorer. What I do was installed it with the bat, preview some files, then close the windows explorer. After that I changed the theme and viewed some more files.
btw I also lost the file associations..
June 5, 2011 at 4:35 pm
Pani, try downloading the new version which fix the issues related to the lost of the file associations.
June 2, 2011 at 5:43 pm
Very nice and handy!
Works great in Win7 SP1 64-bits, but had that runtime error which mentioned by another user once after installation, testing it in the explorer, and closing explorer window. Since then, the runtime error didn’t occur. I guess the first one happened because the explorer window was open during the installations.
Anyways, thanks alot!
June 2, 2011 at 5:52 pm
Ali, can you describe the exact scenario (the steps necessaries to reproduce) , to try to replicate in my machine?
June 3, 2011 at 8:06 am
Well, I just ran the installer, then opened an explorer window, opened preview pane, and clicked on a few .Pas, .DPR, .DFM files, then closed the explorer window, and got the runtime error. Opened explorer again and tried previewing some source files again, then closed the explorer and this time there was no runtime error.
BTW, I had to uninstall it because just like Vany, I lost file association after restarting Windows and to restore it, I had to uninstall preview handler.
Although file association was broken after restart, the preview was functioning properly without any runtime error. So I think the runtime error occurs only once just after the first time explorer is used after preview handler installation.
Thank you anyway :)
June 3, 2011 at 5:36 pm
Ali, thanks for you information I detect the issue and I am fixing now.
June 3, 2011 at 9:25 pm
Ali, the bug of the file associations was fixed and I added the eurekalog to the dll to capture and report issues, sorry for the problem :D
June 4, 2011 at 7:09 am
Rodrigo, thank you so much for your good work, it seems file association is fixed but there are still a few problems:
1- Still running explorer after installing preview handler will cause the handler to raise an error when explorer window is closed. I sent you a bug report on this.
2- Once the runtime error is raised, the handler will stop working, even restarting explorer doesn’t seem to fix it.
3- Zoom buttons work fine but the little bug button and style combobox do not work on my system. They are there but clicking on them will just flicker the explorer window without bringing up anything.
4- When the preview pane has the focus, mouse wheel still affects the file list rather than the source code. That is, when you scroll using mouse wheel, the source in the preview pane doesn’t move, instead the files list in the explorer starts scrolling.
Best Regards
June 4, 2011 at 2:05 pm
Ali about the point 1) I don’t receive yet the report which you mention (do you refer to the elf file generated by the eurekalog? if is yes , try sending this file to theroadtodelphi dot gmail.com) about the others points I can’t reproduce :( , You can please send the details of your system and type of user which your are using to make more tests.
June 2, 2011 at 6:56 pm
Good Job!! Working Fine…
June 3, 2011 at 3:44 am
Hi
Great work…
I installed yesterday, and worked perfectly. But, this moring when I started my PC the file associations of the .pas, .dfm, .dpr…. with Delphi dissapeared, I associated them again with Delphi, but then the Preview stopped to work, I tried to unregister and register again, but now it doesn’t work anymore.
Thx ;)
June 3, 2011 at 4:48 am
Vany many thanks for you feedback I will check now.
June 3, 2011 at 9:24 pm
Vany the bug of the file associations was fixed, sorry for the problem :D
June 6, 2011 at 3:31 am
Perfect Now, Thx for it ;)
June 3, 2011 at 8:14 am
I don’t know if it is possible (or feasible), but it would be really cool, if the preview of a .DFM file was (optionally?) the form itself and not the source code.
Ie. load the .DFM file into a TForm and display the form’s image in the preview pane…
June 3, 2011 at 5:35 pm
Hi there, this certainly seems like an awesome tool and I would love to try it out.
The download links are no longer working it seems, or am I just obtuse?
Much appreciated and thank you for maintaining such a brilliant resource here.
June 3, 2011 at 5:39 pm
Ryan I remove the download links for the moment because, I am fixing a bug of the tool, stay tuned to my twitter account and my blog to see the progress ;)
June 3, 2011 at 9:23 pm
Ryan the links was restored now.
June 5, 2011 at 3:10 pm
Hi, this is very nice! It works also well in Directory Opus 10 file-manager (http://www.gpsoft.com.au).
One question: How can I VISUALLY edit the theme files?
June 5, 2011 at 4:31 pm
The themes can be edited using the Delphi IDE Theme Editor
June 6, 2011 at 11:15 am
very good ^_^
June 6, 2011 at 11:17 am
Chinese displaying has a problem, display garbled state.
June 6, 2011 at 11:21 am
Sorry,File itself problem.
June 7, 2011 at 10:03 am
probably some problem with Unicode?
June 13, 2011 at 2:52 am
No, it’s my file itself has a problem, ha ha.
June 7, 2011 at 10:00 am
Very cool – but I would have preferred if the default preview style was the same as the one configured for Delphi.
June 7, 2011 at 10:06 am
Seems that I am unable to use the theme selection combo. Screen just flickers, but no combo drops down. (Windows 7 Ultimate 64-bit, Sp 1)
June 7, 2011 at 10:22 am
Lars sorry for that, another user report the same issue, unfortunately I can’t reproduce this problem on my test environment,. In a few days I will publish the full source code, then maybe you or another user can help me to debug the dll and find the issue.
June 13, 2011 at 4:18 pm
I have same problem under Windows 7 64bit. Can’t switch style with combobox.
Pingback: Diego M. Garcia » Ótimo plugin para explorer poder pré-visualizar códigos delphi !
June 10, 2011 at 7:38 am
Very cool!
June 27, 2011 at 12:02 pm
Great works!!!
November 24, 2011 at 3:18 am
Hi there,
I have recently upgraded to Delphi XE2 on Windows 7 64 bit. The following error occurs from time to time when Delphi is running:
“Error in TComPreviewHandler.IPreviewHandler_DoPreview – Message : System Error. Code 87. The parameter is incorrect: Trace”
Any assistance would be appreciated.
Thanks,
Kim.
November 24, 2011 at 10:49 am
Hi Kim, this kind of issue must be reported in the issue tracker of the project (http://code.google.com/p/delphi-preview-handler/issues/list) Also be sure of use the last version of the app.
Pingback: Delphi Preview Handler - ابزاری برای نمایش فایلهای پروژه در preview pane
July 7, 2012 at 12:15 pm
I’m using Windows 7 Ultimate x64 and the preview handler is a huge resource hog.
I try to play games but the system is tied up servicing preview handler and the games are un-playable.
Apart from this, it works well.