Ways to get VCs to no longer compile Help files

Source: Internet
Author: User
Tags goto win32

Let VC ways to no longer compile Help files <?xml:namespace prefix = o ns = "Urn:schemas-microsoft-com:office:office"/>

VC help Although very good, but sometimes very annoying, every compilation will automatically compile Help files, ignore we have modified RTF file, exhausting and time, really annoying.

How to get rid of this help. Go online and ask, no one answered. I didn't find it in project settings. Google search, also did not search. At first I suspected that it was makehelp.bat, and really to solve him, the compilation did not find any major problems, but also happy on the forum to express their own views. But the bad thing is, the Netizen demetry text to tell me this method not, he tried. Really do not, I did not believe in the beginning, obviously I tried is ok, how to his hands on it. If you don't believe him, send a letter saying he's not doing it wrong. After one by one days, he sent a letter, a sentence "You are trying carefully." I have tried many times. You can't do it this way. "I tried it carefully, embarrassed, really not."

Look carefully, there is no special file in the project file, but there is a DSP file, open this file with Notepad to look closely, found that there are three places to handle the compilation of Help files. The curse is generated by these three pieces of code, and here we come together to eradicate the curse.

Bane One, 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": $ (SOURCE) "$ (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:D One

: Error

echo hlp/$ (InputName). HPJ (1): Error:

Type "hlp/$ (InputName). Log"

:d One

# 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": $ (SOURCE) "$ (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:D One

: Error

echo hlp/$ (InputName). HPJ (1): Error:

Type "hlp/$ (InputName). Log"

:d One

# End Custom Build

! ENDIF

# End Source File

# Begin Source File

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

Source=./hlp/test.hpj

# End Source File

# Begin Source File

Bane II, 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": $ (SOURCE) "$ (INTDIR)" "$ (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. >> "hlp/$ (TargetName). HM"

echo//Dialogs (idd_*) >> "hlp/$ (TargetName). HM"

Makehm idd_,hidd_,0x20000 resource.h >> "hlp/$ (TargetName). HM"

Echo. >> "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": $ (SOURCE) "$ (INTDIR)" "$ (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. >> "hlp/$ (TargetName). HM"

echo//Dialogs (idd_*) >> "hlp/$ (TargetName). HM"

Makehm idd_,hidd_,0x20000 resource.h >> "hlp/$ (TargetName). HM"

Echo. >> "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 the above code with the following: Don't delete it.

Source=./resource.h

# End Source File

# Begin Source File

Bane III, 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

Inputpath=./hlp/test.cnt

Inputname=test

"$ (OutDir)/$ (inputname). CNT": $ (SOURCE) "$ (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

Inputpath=./hlp/test.cnt

Inputname=test

"$ (OutDir)/$ (inputname). CNT": $ (SOURCE) "$ (INTDIR)" "$ (OutDir)"

Copy "hlp/$ (InputName). CNT" $ (OutDir)

# End Custom Build

! ENDIF

# End Source File

# End Group

# Begin Source File

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

Source=./hlp/test.cnt

# End Source File

# End Group

# Begin Source File

Well, the solution, the world has been restored to a pure.

In this also thank demetry, how not his careful, perhaps I have always thought that they have solved the problem.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.