Anonymous editing of this Wiki page is disabled to hamper vandalism. To edit, you must first log in using the button in the left column.
|
|
Table of Contents
DIHtmlParser WikiAnonymous editing of this Wiki page is disabled to hamper vandalism. To edit, you must first log in using the button in the left column. DIHtmlMimeMesageDIHtmlMimeMessage is an add-on to DIHtmlParser to create MIME messages from existing HTML documents and automatically add required attachment files. It is excellent to send existing HTML documents as e-mails. Example projects demonstrate this with Indy, ICS, Synapse, and other Freeware Delphi Internet components. DIHtmlMimeMessage was last updated on 2009-08-10 to fix a few minor issues related to Delphi 2009. There are no known problems at the time of this writing. C++ Builder 6 SolutionsWhich folders to use?Include the Delphi 6 folders into your C++ Builder 6 search path:
IDE Installation
Open the Compilation ProblemsC++ Builder 6 compiles DIHtmlParser applications without errors if if has access to the full DIHtmlParser Source Code. The DIHtmlParser Commercial and Demo editions must instead use the *.hpp files which were auto-generated by Delphi 6. Unfortunately, Delphi adds a few errors to the conversion. Fortunately, they can be easily corrected. When you compile your project, you will likely encounter one or more of these errors: Auto-generated code: #include "DIHtmlParser.h" #include "DIUnicode.h" Corrected code: #include "DIHtmlParser.hpp" #include "DIUnicode.hpp" "E2241: VCL style classes need virtual destructors" on these lines, at different places: __fastcall ~TDIWriter(const unsigned Dummy = (unsigned)(0x0)); /* TDIWriter.DestroyNoFlushBuffer */ inline __fastcall ~TDIBinaryWriter( const unsigned Dummy = (unsigned)(0x0)) { } Correct this by removing the tilde signs (~) in both lines: __fastcall TDIWriter(const unsigned Dummy = (unsigned)(0x0)); /* TDIWriter.DestroyNoFlushBuffer */ inline __fastcall TDIBinaryWriter( const unsigned Dummy = (unsigned)(0x0)) { } After fixing the above, some versions of C++ Builder (like XE3) issue the following error in DIHtmlParser.hpp: [bcc32 Error] DIHtmlParser.hpp: E2238 Multiple declaration for '_fastcall TDIHtmlParser::TDIHtmlParser(TComponent *)' The two offending lines are: public: __fastcall virtual TDIHtmlParser(System::Classes::TComponent* AOwner); __fastcall virtual TDIHtmlParser(System::Classes::TComponent* const AOwner)/* overload */; Fix: Comment out the first line like this: public: /* __fastcall virtual TDIHtmlParser(System::Classes::TComponent* AOwner); */ __fastcall virtual TDIHtmlParser(System::Classes::TComponent* const AOwner)/* overload */;
The auto-conversion has dropped the __property unsigned LastChildNumber[void * PItem] = {read=GetLastChildNumber, write=SetLastChildNumber}; __property unsigned FirstChildNumber[void * PItem] = {read=GetFirstChildNumber, write=SetFirstChildNumber};
Fix this by inserting the missing __property unsigned LastChildNumber[const void * PItem] = {read=GetLastChildNumber, write=SetLastChildNumber}; __property unsigned FirstChildNumber[const void * PItem] = {read=GetFirstChildNumber, write=SetFirstChildNumber}; E2209 Unable to open include file
Include files for the precompiled Pascal units are located in the
For the Pascal source code units in
wiki/htmlparser/index.txt · Last modified: 2012/11/07 10:41 by admin
|
| Copyright (c) 2000-2011 Ralf Junker – http://www.yunqa.de/delphi/ – Disclaimer – Haftungsausschluss – Impressum |