Method for making VC no longer compiling help files

zhaozj2021-02-17  51

Method for making VC no longer compiling help files

Although VC help is very good, it is sometimes annoying, every compilation will automatically compile help files, ignore us whether we have modified RTF files, expensive and time consuming, really annoying.

How to get this help? Go online and ask, no one answered. I didn't find it in Project Settings. Google search, did not find it. At first, I suspect it was makehelp.bat, I really went to solve him, I didn't find any big problems when I compiled, I am so happy to go to the forum to express my opinion. But not good, netizen DemeTry texting told me that this method is not good, he tried. It's really no, I don't believe it, I am clear, I can try it. How can I not do it in his hand? Don't believe him, sending a letter saying that he is wrong. After one day, he sent a letter, came to a "" You tried it carefully. I have tried many times. You can't. "I tried it carefully, sweat, really can't.

Take a closer look, there is no special file in the project file, but there is a DSP file. Take a closer look with Notepad. I found that there are three places to be compiled by the help file. The root of the disaster is produced by these three code. Let's take a shovel.

Making Help File ...

Source =. / HLP / TEST.HPJ

! IF "$ (cfg) ==" TEST - WIN32 Release "

# PROP Ignore_Default_Tool 1 USERDEP__TEST_ = hlp / AfxCore.rtf hlp / AfxPrint.rtf hlp / $ (TargetName) .hm # Begin Custom Build -.. Making help file ... OutDir = / Release TargetName = Test InputPath = / hlp / Test .hpj inputname = TEST

"$ (Outdir) / $ (InputName) .hlp": $ (outdir) "$ (outdir)" Start / Wait HCW / C / E / M "HLP / $ (InputName) .hpj IF Errorlevel 1 Goto: Error if not exist "HLP / $ (InputName). HLP" Goto: Error Copy "HLP / $ (InputName) .hlp" $ (Outdir) Goto: Done: Error Echo HLP / $ (InputName). HPJ (1): Error: Type "HLP / $ (InputName) .log": Done # end custom Build

! Elseif "$ (cfg)" == "TEST - WIN32 Debug"

# PROP Ignore_Default_Tool 1 USERDEP__TEST_ = hlp / AfxCore.rtf hlp / AfxPrint.rtf hlp / $ (TargetName) .hm # Begin Custom Build -.. Making help file ... OutDir = / Debug TargetName = Test InputPath = / hlp / Test .hpj INPUTNAME = TEST "$ (outdir) / $ (InputName) .hlp": $ (intDir) "" $ (outdir) "Start / Wait HCW / C / E / M" hlp / $ InputName) .hpj "if Errorlevel 1 Goto: Error if not exist" HLP / $ (InputName) .hlp "Goto: Error Copy" HLP / $ (InputName) .hlp "$ (Outdir) Goto: Done: Error Echo HLP / $ (InputName) .hpj (1): Error: Type "HLP / $ (InputName) .log": Done # end custom Build

! ENDIF

# End source file # begin Source File

Replace this code with the following code, or simply delete it.

Source =. / Hlp / test.hpj # end source file # begin Source File

Making Help Include File ...

Source =. / Resource.h

! IF "$ (cfg) ==" TEST - WIN32 Release "

# Prop ignore_default_tool 1 # begin Custom Build - Making Help Include File ... TargetName = Test InputPath =. / Resource.h

"HLP / $ (TargetName) .hm": $ (outdir) "$ (outdir) echo.>" HLP / $ (targetname) .hm "echo // commands (id_ * and idm_ * "" HLP / $ (targetname) .hm "Makehm ID_, HID_, 0x10000 IDM_, HIDM_, 0x10000 Resource.H >>" HLP / $ (targetname) .hm "Echo. >>" HLP / $ (targetname) .hm "Echo // PROMPTS (IDP_ *) >>" HLP / $ (Targetname) .hm "Makehm IDP_, HIDP_, 0x30000 Resource.H >>" HLP / $ (targetname) .hm "echo. >>" HLP / (TARGETNAME).hm "echo // resources (iDR_ *) >>" HLP / $ (targetname) .hm "Makehm idR_, hidr_, 0x20000 resource.h >>" HLP / $ (targetname) .hm "echo . >> "Targetname) .hm" echo // Dialogs (IDD_ *) >> "HLP / $ (targetname) .hm" Makehm IDD_, hidd_, 0x20000 resource.h >> "HLP / $ (Targetname "HLP / $ (targetname) .hm" echo // frame controls (idw_ *) >> "HLP / $ (targetname) .hm" Makehm IDW_, HIDW_, 0x50000 Resource.h >> "HLP / $ (targetname) .hm" # End custom Build! Elseif "$ (cfg) ==" TEST - WIN32 Debug "

# Prop ignore_default_tool 1 # begin Custom Build - Making Help Include File ... TargetName = Test InputPath =. / Resource.h

"HLP / $ (TargetName) .hm": $ (outdir) "$ (outdir) echo.>" HLP / $ (targetname) .hm "echo // commands (id_ * and idm_ * "" HLP / $ (targetname) .hm "Makehm ID_, HID_, 0x10000 IDM_, HIDM_, 0x10000 Resource.H >>" HLP / $ (targetname) .hm "Echo. >>" HLP / $ (targetname) .hm "Echo // PROMPTS (IDP_ *) >>" HLP / $ (Targetname) .hm "Makehm IDP_, HIDP_, 0x30000 Resource.H >>" HLP / $ (targetname) .hm "echo. >>" HLP / (TARGETNAME).hm "echo // resources (iDR_ *) >>" HLP / $ (targetname) .hm "Makehm idR_, hidr_, 0x20000 resource.h >>" HLP / $ (targetname) .hm "echo . >> "Targetname) .hm" echo // Dialogs (IDD_ *) >> "HLP / $ (targetname) .hm" Makehm IDD_, hidd_, 0x20000 resource.h >> "HLP / $ (Targetname "HLP / $ (targetname) .hm" echo // frame controls (idw_ *) >> "HLP / $ (targetname) .hm" Makehm IDW_, HIDW_, 0x50000 Resource.h >> "HLP / $ (Targetname) .hm" # End Custom Build! Endif

# End source file # begin Source File

Replace it with the following code with the following content, don't delete it.

Source =. / Resource.h # end source file # begin Source File

Cogenous three, Copying Contents File ...

Source =. / HLP / TEST.CNT

! IF "$ (cfg) ==" TEST - WIN32 Release "

# Prop ignore_default_tool 1 # begin Custom Build - Copying Contents File ... Outdir =. / Release infutpath =. / Hlp / test.cnt inputname = test

"$ (Outdir) / $ (InputName) .cnt": $ (INTDIR) "$ (outdir)" Copy "HLP / $ (InputName) .cnt" $ (Outdir)

# END Custom Build! Elseif "$ (cfg) ==" TEST - WIN32 Debug "

# Prop ignore_default_tool 1 # begin Custom Build - Copying Contents File ... Outdir =. / Debug infutpath =. / Hlp / test.cnt inputName = TEST

"$ (Outdir) / $ (InputName) .cnt": $ (INTDIR) "$ (outdir)" Copy "HLP / $ (InputName) .cnt" $ (Outdir)

# End Custom Build

! ENDIF

# End source file # end group # begin Source File

Replace it with the following code with the following, it is best not to delete it.

Source =. / HLP / TEST.CNT # end source file # end group # begin Source File

Ok, solve it, the world has recovered clean.

Thank you, thank you, how doesn't have his care, maybe I have always thought that I have solved this problem.

转载请注明原文地址:https://www.9cbs.com/read-30556.html

New Post(0)