PRB: WWWQuote Sample Fails With Error MessageLast reviewed: August 7, 1997Article ID: Q166958  | 
	
	
 
 
The information in this article applies to:
 
 SYMPTOMSWhen you try to display a welcome page associated with the WWWQuote sample through a browser, the following error message appears: 
 "Could not find string 129"You will see similar errors when you try to access other pages in the sample directly. The IDs will be different. 
 CAUSEThis behavior is due to a bug in the resource compiler with Visual C++ 5.0. The CWWWQuote::LoadLongResource function is trying to find a custom resource of type "HTML." The resource compiler with Visual C++ 5.0 modifies the custom resource of type "HTML" to "#23." The function is unable to find the resource, so it displays the error message. 
 RESOLUTIONChange the custom type resource "HTML" to a different type so that the resource compiler does not modify it. Open the resource file as text and modify it as follows: Original lines: 
 ... //////////////////////////////////////////////////////////////////////// // // // HTML // IDS_HTML_WELCOME HTML DISCARDABLE "HTML\\welcome.htm" IDS_HTML_LOOKUPMETHOD HTML DISCARDABLE "HTML\\issueerr.htm" IDS_ISSUES_HEADER HTML DISCARDABLE "HTML\\Selhead.htm" IDS_ISSUES_TRAILER HTML DISCARDABLE "HTML\\Seltail.htm" IDS_GET_QUOTES_ERROR HTML DISCARDABLE "HTML\\quoteerr.htm" IDS_PREV_BUTTON HTML DISCARDABLE "HTML\\Prev.htm" IDS_NEXT_BUTTON HTML DISCARDABLE "HTML\\Next.htm" IDS_QUOTE_HEADER HTML DISCARDABLE "HTML\\quothead.htm" ...After Modification to use type "MYHTML" 
 ... //////////////////////////////////////////////////////////////////////// // // // MYHTML // IDS_HTML_WELCOME MYHTML DISCARDABLE "HTML\\welcome.htm" IDS_HTML_LOOKUPMETHOD MYHTML DISCARDABLE "HTML\\issueerr.htm" IDS_ISSUES_HEADER MYHTML DISCARDABLE "HTML\\Selhead.htm" IDS_ISSUES_TRAILER MYHTML DISCARDABLE "HTML\\Seltail.htm" IDS_GET_QUOTES_ERROR MYHTML DISCARDABLE "HTML\\quoteerr.htm" IDS_PREV_BUTTON MYHTML DISCARDABLE "HTML\\Prev.htm" IDS_NEXT_BUTTON MYHTML DISCARDABLE "HTML\\Next.htm" IDS_QUOTE_HEADER MYHTML DISCARDABLE "HTML\\quothead.htm" ...You also have to modify the following line in wwwquote.cpp so that you are looking for the correct resource type: 
    static const TCHAR szHTMLType[] = _T("HTML");
to:
    static const TCHAR szHTMLType[] = _T("MYHTML");
STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. 
 MORE INFORMATION
 Steps to Reproduce Behavior
 
  | 
	
	Additional query words: WWWQuote 
 © 1998 Microsoft Corporation. All rights reserved. Terms of Use.  |