View Full Version : CGI Front End app
bonkekrusher
01-17-2008, 04:33 PM
Hi,
I downloaded the CGI Front End source files and have been trying it out. I want to use it for offline and search a partitioned D:/ drive. When I run the app from either the D: or C: drive the links (on search results page) do not open the file. I have set my root to:
file:///D:/
To test whether the URL is valid, I copy and paste the URL in a IE address bar and the link opens the document.
What am I doing wrong?
Thanks,
Bones
wrensoft
01-17-2008, 09:47 PM
Which version of the Zoom FrontEnd (http://www.wrensoft.com/zoom/support/cgifrontend.html) are you using? And on which O/S?
Does anything happen when you click on a link in the ZFE window? Is there an error?
bonkekrusher
01-18-2008, 11:48 AM
Hi,
I am using VB.net with windows XP. I do not get any errors. When I click on it, nothing happens.
As a note when I generate an Index using a relative path for my base e.g. '../' and launch from my c:/ drive, it works. When using File:///D:/ is when it does nothing.
Thanks for the help.
Bones
wrensoft
01-18-2008, 07:35 PM
The VB.NET code was the V1.0 release. I think this was a bug in V1.0.
If you can download the V1.3 release (http://www.wrensoft.com/ftp/ZoomCGIFrontEnd_V1_3_1002.zip) (which was in C++), I think it will fix this.
If you need to use VB.NET and can't use the C++ code, then you might have to port the changed from the C++ code back to the VB.NET code.
bonkekrusher
01-21-2008, 12:05 PM
Hi thank you for the reply.
I downloaded the 1.3 C++ version. I don't know much about c++, but I loaded it into VS2005 anyway. I am unable to build the app. I receive 3 build errors. Without knowing much about c++, I can not trouble shoot.
In the VB version, do you know what the bug is? Is it in the CGI or the vb app?
Thanks,
wrensoft
01-21-2008, 09:42 PM
And unfortunately we don't know much about VB. But the bug would be in the VB app. Most likely just related to building up the path to the file correctly.
What were the build errors?
bonkekrusher
01-22-2008, 12:22 PM
Here are the errors:
Error 1 error LNK2019: unresolved external symbol __imp__PathCombineA@12
referenced in function "int __stdcall MainDlgProc(struct HWND__ *,
unsigned int,unsigned int,long)" (?MainDlgProc@@YGHPAUHWND__@@IIJ@Z) CGIFrontEnd.obj
Error 2 error LNK2019: unresolved external symbol __imp__PathIsRelativeA@4
referenced in function "int __stdcall MainDlgProc(struct HWND__ *,
unsigned int,unsigned int,long)" (?MainDlgProc@@YGHPAUHWND__@@IIJ@Z) CGIFrontEnd.obj
Error 3 fatal error LNK1120: 2 unresolved externals
.\Debug/CGIFrontEnd.exe
As for the VB I think the bug is in the webbrowser control not your app.
I created a new app, added a webbrowser and added these two lines:
Me.WebBrowser1.DocumentText = "<html><head></head>
<body><p><a href=""file:///D:\index.html"" target=""_blank"">Click me
</a></p></body></html>"
Me.WebBrowser1.DocumentText = "<html><head></head><body><p><a href=""http://www.wrensoft.com/zoom/"" target=""_blank"">
Click me</a></p></body></html>"
The http link worked, and the file:///d:/ did not.
After trouble shooting the frontend app (vb), this was confirmed. I noticed that the "zoom search engine" link at the bottom of the results works. This has a prefix of "http:///" and my links are file:///d:/
I conclude that it is the webbrowser control in vs2005. I will load it into vs2008 tonight and try again.
See here: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2690420&SiteID=1
Thanks for the help.
bonkekrusher
01-23-2008, 12:35 AM
I have confirmed that it is the webbrowser control. I was able to recreate the problem in vs2008
ahhhhhhh
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.