Microsoft KB Archive/77748

{|
 * width="100%"|

Nesting Quotation Marks Inside Windows Help Macros

 * }

Q77748

-

The information in this article applies to:


 * Microsoft Windows Software Development Kit (SDK) 3.1
 * Microsoft Win32 Software Development Kit (SDK), versions 3.5, 3.51, 4.0

-

In Windows Help macros, strings may be delimited in two ways. The string can be opened and closed by double quotation marks or the string can be opened by a single opening quotation mark and closed by a single closing quotation mark.

Any quoted strings contained in a string delimited with double quotation marks must be enclosed in opening and closing single quotation marks.

The single opening quotation mark is different from the single closing quotation mark. The single opening quotation mark (`) is paired with the tilde (~) above the TAB key on extended keyboards; the single closing quotation mark (') is the same as the apostrophe. For example,

  CreateButton(&quot;time_btn&quot;, &quot;&Time&quot;, &quot;ExecProgram(&quot;clock&quot;, 0)&quot;)

is illegal because the string &quot;clock&quot; uses double quotation marks within the double quotation marks used for the ExecProgram macro. The following example corrects the error by enclosing &quot;clock&quot; in single quotation marks:

  CreateButton(&quot;time_btn&quot;, &quot;&Time&quot;, &quot;ExecProgram(`clock', 0)&quot;)

Additional query words: win16sdk handtag

Keywords : kbtool

Issue type : kbinfo

Technology : kbWin32SDKSearch kbAudDeveloper kbWin3xSearch kbSDKSearch kbWin32sSearch kbWin32SDK400 kbWin32SDK350 kbWin32SDK351 kbWinSDKSearch kbWinSDK310