rejetto forum
Software => HFS ~ HTTP File Server => Programmers corner => Topic started by: Anonymous on March 30, 2006, 04:27:48 PM
-
It seems lost 'ftmExceptionForm.dcu'. I can't find this file in delphi 6's directory. Is that file in "C:\Program Files\Borland\Delphi6\Lib\Debug" ?
i can't distribute it because it is not mine
anyway
1. redownload sources
2. edit defs.inc and remove the first line
Can you give a list of VCL which needed to compile the sources. e.g. ICS, GIFImage, JCL and the othors.
I'm not a developer , when I compile the sources, some errors prompt me that compiler no found *.dcu . But I don't know where can I find the files. Please offer me the files which compile the sources needed it, if you can :)
I just want to compile hfs myself.
-
Can you give a list of VCL which needed to compile the sources. e.g. ICS, GIFImage, JCL and the othors.
the list is meant to be in main.pas
but i see many people having problems finding it, so i will move it to a separate file.
i'll warn you as soon as i update the src package
-
:) I'M NOT ALLONE :P
-
Well I found all the needed libraries to compile last version 2 before fix for "+" chars in file names. Thanks for the well commented sources found all needed 3rd party stuff with no problems. :D
Unfortunately I am getting an error compiling this latest one with the fix for "+" character :cry: but I figure I am not far from getting it wroking but couldn't find enough info for work around searching web and my Delphi skills are poor. :lol:
These are the errors I have:
[Error] HSlib.pas(318): Incompatible types: 'Integer' and 'WideChar'
[Fatal Error] main.pas(44): Could not compile used unit 'HSlib.pas'
Sinced I have altered and //commented out some things I wasn't needing these line numbers may be differnt form the originals and most probably are in my case.
So the specific code givign me a problem in hslib.pas is this line:
StringToWideChar(c,@buffer,4);
The whole procedure or the part in reference to it is this:
----------------------------------------------------------------------------------
procedure includeTrailingString(var s:string; ss:string);
begin if copy(s, length(s)-length(ss)+1, length(ss)) <> ss then s:=s+ss end;
function charToUnicode(c:char):word;
var
buffer: integer;
begin
StringToWideChar(c,@buffer,4);
result:=word(buffer);
end; // charToUnicode
-----------------------------------------------------------------------------------
I am using Borland Delphi 7 Enterprise specifically if that helps.
If anyone has any pointers, hints or workaround for this a post back would really be appreciated.
Btw thanks rejetto version 2.0 looks great and so do the knew additions to the site ... very professional looking! :D :^^:
Have a great weekend. B)
Peace,
Azag
-
Never mind it was something I did in Project --> Options before compiling I think error is gone. :lol: Thanks again. ;)
- Azag
-
Why prompt me:
[Error] HSlib.pas(1166): Undeclared identifier: 'SD_BOTH'
What can i do ?
-
Why prompt me:
[Error] HSlib.pas(1166): Undeclared identifier: 'SD_BOTH'
What can i do ?
update your wsocket lib (ics)
-
thx
Simplified Chinese will be coming soon
-
What dose the option do
e.g. menu "Compressed browsing","realm" ...
I hope there is a detailed description of each option about HFS 2.0...
-
What dose the option do
e.g. menu "Compressed browsing","realm" ...
I hope there is a detailed description of each option about HFS 2.0...
Wouldn't it be better for you to learn how HFS works FIRST and learn what each option does BEFORE you try to translate to another language. If you read through the threads you will already see that HFS v2.0 Final has already been translated to chinese.
-
everything will be documented.
i'm installing a wiki so anyone can help documenting.
-
everything will be documented.
i'm installing a wiki so anyone can help documenting.
expect it
-
I have a trouble
after compile, running exe, click Menu->other options->MIME types...
a dialog appeared like this:
(http://www.playball.com.cn/top/hanzify/hfserr.png)
I uncertainty is a problem of my system, but the unmodified source is the same. why?
you can try compile my modified of source below:
http://www.playball.com.cn/top/hanzify/hfs.rar
this is Simplified Chinese version,but Incomplete :(
the same to click 菜单->其他选项->MIME类型..
(http://www.playball.com.cn/top/hanzify/hfsmenu.png)
-
other than fixing bugs, now should be easier to compile sources.
i removed some problem, and included in notes.txt a list of used libs with URLs.
-
I've just tried to compile the source.
I get an error inmain.pas, these files are not found: wsocket, httpProt, icsMD5, GIFimage, zlibex,
In notes.txt there are no links to these files, where can I find it ?
-
Okay, I've just found the links in "dev notes.txt" and I've copied all needed files to the source code folder
But now I get an error:
destructor ThttpConn.destroy;
begin
P_destroying:=TRUE;
if assigned(sock) then
begin
sock.Shutdown(SD_BOTH); <----------------- Error - undefinded
sock.WaitForClose();
end;
srv.offlines.remove(self);
freeAndNil(stream);
freeAndNIL(sock);
end; // destroy
-
it's part of Delphi.
i guess you have an old version of Delphi.
it's defined in unit Winsock, and it is a costant
const
SD_BOTH = 2;
-
Thanks for your reply.
I use "Turbo Delphi Explorer" and I've downloaded it from http://cc.codegear.com/free/turbo (http://cc.codegear.com/free/turbo)
It's Version 10.0.2288.42451
Another problems are:
1.
When I run the project I get these messages (I translated it, because I use the german version):
Exception in project hfs.exe with class EConvertError with the message "invalid argument to encoding the date"
2.
In the menĂ¼ under "Other Options" I only see "Auto-copy URL on addition" and "Always on top"
Don't know why...
Do I use a wrong Delphi ?
I'm programmer but don't know really Delphi, I just want to make some small modifications.
-
i use Turbo Delphi as well, you just didn't install some small updates.
indeed my version is 10.0.2558.35231
1. exceptions are normal. The point is that they must be catched/handled. if you see an uncatched exception, let me know the line.
2. switch to expert mode
-
1. exceptions are normal. The point is that they must be catched/handled. if you see an uncatched exception, let me know the line.
After compiling I get no errors :)
2. switch to expert mode
Argh, I am so stupid :-X
Thanks a lot for your support and thanks a lot for this great tool.