Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-03-29
10:13 • Closed ticket [527941ffff]: making winhelp with vc++ 6 plus 2 other changes artifact: 096a16959e user: davygrvy
10:13 • Open ticket [527941ffff]. artifact: cecca75a38 user: davygrvy
08:20 • Pending ticket [527941ffff]. artifact: 2fbf3b4bc2 user: davygrvy
06:41 • Ticket [527941ffff]: 5 changes artifact: 34864b1025 user: davygrvy
2002-03-27
17:40 • Ticket [527941ffff]: 4 changes artifact: aeece2b7d6 user: davygrvy
2002-03-26
16:56 • Ticket [527941ffff]: 4 changes artifact: d7c9145548 user: davygrvy
2002-03-09
23:27 • New ticket [527941ffff]. artifact: bc7a55e52f user: maurice_ulis

making winhelp with vc++ 6

Closed527941ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2002-03-09 23:27:55
Making winhelp for tcl8.4a4 with vc++ 6 under Win2k, I 
got:
Bad .AP macro: .AP CONST char ***argvPtr out
from the file SplitPath.3.
I modified the offended line to:
.AP "CONST char" ***argvPtr out.
But hcrtf.exe can't find the file tcl.hpj
I copied the file tcl.hpj.in to tcl.hpj.
But I can't get the resulting file tcl.hlp until I 
used hcrtf.exe interactively.
---------------
Don Poter replyied that the fix was made for the 
fileSplitPath.3
but asked for me to registrate this.
---------------
Jeffrey Hobbs replyied that HTMLHelp is more 
convenient (and it is).
---------------
winhelp has been supressed from tk8.4a4.
Maybe better that winhelp be supressed from tcl8.4a4.

ulis
davygrvyplain2002-03-26 16:56:04
Logged In: YES 
user_id=7549

It just needs fixing, that's all.  What would be even 
better if all the man pages where the end-point from a 
neutral format like XML, rather than transforming troff 
into rtf...
davygrvyplain2002-03-27 17:40:13
Logged In: YES 
user_id=7549

I address the tcl.hpj problem in bug 533862.  Essentially, 
just replace the entire section with the following.  It was 
just a missing dependency, but I was unhappy with it 
anyways and just included the whole thing as a temp file so 
some values can come from macros.

#-----------------------------------------------------------
----------
# Build the windows help file.
#-----------------------------------------------------------
----------

MAN2TCL= $(TOOLSDIR)\man2tcl
TCLRTF= $(TOOLSDIR)\$(PROJECT).rtf
MAN2HELP= $(TOOLSDIR)\man2help.tcl

winhelp: $(TCLHLP)

$(TCLHLP): $(TCLRTF)
cd $(TOOLSDIR)
start /wait hcrtf.exe -x <<$(PROJECT).hpj
[OPTIONS]
COMPRESS=12 Hall Zeck
LCID=0x409 0x0 0x0 ; English (United States)
TITLE=Tcl/Tk Reference Manual
CNT=$(TCLHLPBASE).cnt
HLP=$(TCLHLPBASE).hlp

[FILES]
$(PROJECT).rtf

[WINDOWS]
main="Tcl/Tk Reference Manual",,0

[CONFIG]
BrowseButtons()
CreateButton(1, "Main Web Site", ExecFile
("http://www.tcl.tk"))
CreateButton(2, "Sourceforge", ExecFile
("http://sf.net/projects/tcl"))
CreateButton(3, "Wiki", ExecFile("http://wiki.tcl.tk"))
<<
cd $(MAKEDIR)
copy $(TOOLSDIR)\$(TCLHLPBASE).hlp $(OUT_DIR)
copy $(TOOLSDIR)\$(TCLHLPBASE).cnt $(OUT_DIR)

$(MAN2TCL).exe:
cd $(TOOLSDIR)
$(cc32) -nologo -G4 -ML -O2 $(MAN2TCL).c
cd $(MAKEDIR)

$(TCLRTF): $(MAN2TCL).exe $(TCLSH)
cd $(TOOLSDIR)
..\win\$(TCLSH) $(MAN2HELP) $(PROJECT) $(VERSION) 
$(ROOT)/doc
cd $(MAKEDIR)
davygrvyplain2002-03-29 06:41:50
Logged In: YES 
user_id=7549

changes now committed to both Tcl and Tk.  I changed the 
color scheme a bit and added a bitmap.  The install portion 
for Tk will need some work.  I'll have to call winhlp32.exe 
with a special switch so the master content file gets 
merged.  I never done this before.  I'll have to do some 
reading.  syntax errors in the man files haven't been 
addressed.
davygrvyplain2002-03-29 08:20:35
Logged In: YES 
user_id=7549

let me know how this is working.  thanks.
davygrvyplain2002-03-29 10:13:20
Logged In: YES 
user_id=7549

"Maybe better that winhelp be supressed from tcl8.4a4"

That's a non-assist, but thank you for expressing yourself.
Maybe better if you learn to send patches inplace of gripes.
davygrvy Closed ticket [527941ffff]. [History diff]2002-03-29 10:13:49
Log in (anonymous is fine) to add a comment.