<rss version="2.0">
<channel>
<title>firstobject.com discussion</title>
<link>http://www.firstobject.com/discussion.xml</link>
<description>Discussion and Beta Update Feed</description>
<language>en-us</language>
<lastBuildDate>Tue, 08 Sep 2009 13:24:00 GMT</lastBuildDate>
<ttl>180</ttl>
<image>
<title>firstobject.com comments</title>
<width>142</width>
<height>18</height>
<link>http://www.firstobject.com/</link>
<url>http://www.firstobject.com/firstobjectNews.gif</url>
</image>
<item>
<title>multiply defined symbol errors in easy zlib</title>
<link>http://www.firstobject.com/easy-zlib-c++-xml-compression.htm#20090908132400</link>
<guid isPermaLink="false">easy-zlib-c++-xml-compression.htm#20090908132400</guid>
<pubDate>Tue, 08 Sep 2009 13:24:00 GMT</pubDate>
<category>C++ Articles</category>
<description><![CDATA[
<p>First of all thank you for developing and sharing this extremely useful lib. It has all I ever wanted from zlib, but in much smaller and easier to use package. :) I wanted you to know that I compiled it under mac OS X using xcode 3.1 (intel mac). I found only one issue, the linker was reporting duplicate symbols for function (since multiple source files have easy zlib included).</p>

<pre><font color=blue>int</font> ezcompress( ezbuffer& bufDest, <font color=blue>const</font> ezbuffer& bufSrc )
and similar...</pre>

<p>I solved it by declaring the functions inline:</p>

<pre><font style='color:blue;background:#ffff00;'>inline</font> <font color=blue>int</font> ezcompress( ezbuffer& bufDest, <font color=blue>const</font> ezbuffer& bufSrc )
<font style='color:blue;background:#ffff00;'>inline</font> <font color=blue>int</font> ezuncompress( ezbuffer& bufDest, <font color=blue>const</font> ezbuffer& bufSrc )
<font style='color:blue;background:#ffff00;'>inline</font> <font color=blue>int</font> ezcompress( ezbuffer& bufDest, <font color=blue>const</font> MCD_STR& strSrc )
<font style='color:blue;background:#ffff00;'>inline</font> <font color=blue>int</font> ezuncompress( MCD_STR& strDest, <font color=blue>const</font> ezbuffer& bufSrc )</pre>
]]></description>
</item>
<item>
<title>Linking Problem of CMarkup V11.1</title>
<link>http://www.firstobject.com/fseeki64-ftelli64-in-vc++.htm#20090727061900</link>
<guid isPermaLink="false">fseeki64-ftelli64-in-vc++.htm#20090727061900</guid>
<pubDate>Mon, 27 Jul 2009 06:19:00 GMT</pubDate>
<category>CMarkup Articles</category>
<description><![CDATA[
<p>I'm using CMarkup (V11.1) class in my laboratory project (Windows XP & Visual C++ 6.0) for parsing xml documents. I've download Markup.h &amp; Markup.cpp from www.firstobject.com and added them into my VC++ project.</p>
<p>There's a problem in Markup.h, line 223: "<code><font color=blue>#elif</font> _MSC_VER >= 1000</code>". As the version of VC++ 6.0 is 1200, <code>MCD_FSEEK</code> and <code>MCD_FTELL</code> are defined as <code>_fseeki64</code> and <code>_ftelli64</code>. This causes 2 linking errors, e.g. "unresolved external symbol __ftelli64"</p>
<p>However, if I choose to "Use MFC in a Static Library", just the same as the sample project does, it's okay. But the size of execution file seems to be too big. So I changed the line 223 like this: "<code><font color=blue>#elif</font> _MSC_VER > 1200</code>", and the problem is solved. I also try version 11.0 of CMarkup and there's no such problem, because it define <code>MCD_FSEEK</code> as <code>_fseeki64</code> only when <code>_MSC_VER</code> is bigger than 1400 (VC++ 2005).</p>
<p>I would suggest that for VC++ 6.0, it's better to define <code>MCD_FSEEK</code> and <code>MCD_FTELL</code> as <code>fseek</code> and <code>ftell</code>, rather than <code>_fseeki64</code> and <code>_ftelli64</code></p>
]]></description>
</item>
<item>
<title>xml splitter</title>
<link>http://www.firstobject.com/split-xml.htm#20090701182500</link>
<guid isPermaLink="false">split-xml.htm#20090701182500</guid>
<pubDate>Wed, 01 Jul 2009 18:25:00 GMT</pubDate>
<category>XML Editor Articles</category>
<description><![CDATA[
<p>I am searching for a xml splitter to generate the file name using values from a child field. I can't make [<a href="http://www.firstobject.com/xml-splitter-script-video.htm">your script</a>] work for my specific file name. Is there a way to have the file name this way: <code>xmlOutput.Open( "test" + "_" + [Child value from REFERRAL_ID]  + "_"+ nFileCount + ".xml", MDF_WRITEFILE );</code> My XML is:</p>
<PRE lang=xml><FONT color=#0000ff>&lt;REFERRAL_DISCHARGE&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;FILE_VERSION&gt;</FONT><FONT style='color:black;font-weight:bold;'>1.0</FONT><FONT color=#0000ff>&lt;/FILE_VERSION&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;REFERRAL_ID&gt;</FONT><FONT style='color:black;font-weight:bold;'>9999</FONT><FONT color=#0000ff>&lt;/REFERRAL_ID&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;ORGANISATION_ID&gt;</FONT><FONT style='color:black;font-weight:bold;'>A12345-6</FONT><FONT color=#0000ff>&lt;/ORGANISATION_ID&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;ORGANISATION_TYPE&gt;</FONT><FONT style='color:black;font-weight:bold;'>100</FONT><FONT color=#0000ff>&lt;/ORGANISATION_TYPE&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;EXTRACT_FROM_DATE_TIME&gt;</FONT><FONT style='color:black;font-weight:bold;'>2009-06-01T00:00:00</FONT><FONT color=#0000ff>&lt;/EXTRACT_FROM_DATE_TIME&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;EXTRACTED_DATE_TIME&gt;</FONT><FONT style='color:black;font-weight:bold;'>2009-06-30T00:30:00</FONT><FONT color=#0000ff>&lt;/EXTRACTED_DATE_TIME&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;TEAM_CODE&gt;</FONT><FONT style='color:black;font-weight:bold;'>1111</FONT><FONT color=#0000ff>&lt;/TEAM_CODE&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;EVENT_HCU_ID&gt;</FONT><FONT style='color:black;font-weight:bold;'>AAA1234</FONT><FONT color=#0000ff>&lt;/EVENT_HCU_ID&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;SEX&gt;</FONT><FONT style='color:black;font-weight:bold;'>M</FONT><FONT color=#0000ff>&lt;/SEX&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;DATE_OF_BIRTH&gt;</FONT><FONT style='color:black;font-weight:bold;'>1900-05-05</FONT><FONT color=#0000ff>&lt;/DATE_OF_BIRTH&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;REFERRAL_FROM&gt;</FONT><FONT style='color:black;font-weight:bold;'>UN</FONT><FONT color=#0000ff>&lt;/REFERRAL_FROM&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;START_DATE_TIME&gt;</FONT><FONT style='color:black;font-weight:bold;'>2008-12-24T00:00:00</FONT><FONT color=#0000ff>&lt;/START_DATE_TIME&gt;</FONT><FONT style='color:black;font-weight:bold;'>
</FONT><FONT color=#0000ff>&lt;/REFERRAL_DISCHARGE&gt;</FONT><FONT style='color:black;font-weight:bold;'></FONT></PRE>
<p>The parent is REFERRAL_DISCHARGE. I need the file name exactly how you have it plus the individual value from REFERRAL_ID to make it easy to link to the data included. We are a not-for-profit organization and we have to report to the Ministry of Health and our data is to be packed as individual XML files. We are not dealing with huge files (this one is only 316kb).</p>
]]></description>
</item>
<item>
<title>11.1 Issue: linking fseeki64 and ftelli64</title>
<link>http://www.firstobject.com/fseeki64-ftelli64-in-vc++.htm#20090617223100</link>
<guid isPermaLink="false">fseeki64-ftelli64-in-vc++.htm#20090617223100</guid>
<pubDate>Wed, 17 Jun 2009 22:31:00 GMT</pubDate>
<category>CMarkup Articles</category>
<description><![CDATA[
<p>I got an error in my application which is a windows mobile program, developing in VS 2008. I created the application in the following steps:<p>
<p>a) Create a smartdevice project: New project -> smart device ->Win32 Smart Device project<br>
b) Add markup files: copy the two files into the project directory, then add them into the project, and select the "cmarkup.cpp", set it properties "Not Using Precompiled Headers"<br>
c) Add some code in the testmarkup.cpp: <code><FONT color=blue>#include</FONT> "Markup.h"</code> ... <code>CMarkup xml;	xml.Load(_T("UserInfo.xml"));</code><br>
d) Compile the project, then I got the following error [configuration Debug Windows Mobile 5.0 Pocket PC SDK (ARMV4I)]:</p>
<pre>...
WINVER not defined. Defaulting to 0x0400,
  which is appropriate for all supported Windows CE versions
...
.\Markup.cpp(1498) : error C3861: '_fseeki64': identifier not found
.\Markup.cpp(1499) : error C3861: '_ftelli64': identifier not found
...</pre>
]]></description>
</item>
<item>
<title>editor 2.3.5 help search, file mode subdocs</title>
<link>http://www.firstobject.com/dn_editcomments.htm#20090617213000</link>
<guid isPermaLink="false">dn_editcomments.htm#20090617213000</guid>
<pubDate>Wed, 17 Jun 2009 21:30:00 GMT</pubDate>
<category>XML Editor Articles</category>
<description><![CDATA[
<p><A href="http://www.firstobject.com/dn_editor.htm">Download the latest firstobject XML editor here</A>. Release 2.3.5 introduces help search and <a href="http://www.firstobject.com/cmarkup-11.1-release-notes.htm">CMarkup release 11.1</a> file mode subdocuments (see file mode sections of <A class="codelink" href="http://www.firstobject.com/dn_markGetSubDoc.htm">GetSubDoc</A> and <A class="codelink" href="http://www.firstobject.com/dn_markAddSubDoc.htm">AddSubDoc</A>) for handling pieces of XML files in memory and <a href="http://www.firstobject.com/split-xml-file-into-smaller-pieces.htm">splitting large xml files</a>.</p>
<p><li>Help search. Pressing <b>F1</b> on a term in a Program will search on that term if it is not a function or method. Type search terms into the editbox above the help</li>
<li>CMarkup <a href="http://www.firstobject.com/cmarkup-11.1-release-notes.htm">release 11.1</a> methods, features and fixes</li>
<li>mouse wheel code corrected for the editor and added to the tree</li>
<li>foal: improvements in the debugging display for CMarkup objects in file mode; the read and write file offset and the current position</li>
<li>output box right-click function to "Open in document window"</li>
<li>Redo Ctrl+Y now puts the cursor in the correct location</li>
<li>Undo Ctrl+Z combines consecutive typed characters on a line and will also combine consecutive backspaces on a line, and consecutive deletes on a line</li></p>

]]></description>
</item>
<item>
<title>Enter() and Leave() methods</title>
<link>http://www.firstobject.com/dn_marklevels.htm#20090612120501</link>
<guid isPermaLink="false">dn_marklevels.htm#20090612120501</guid>
<pubDate>Fri, 12 Jun 2009 12:05:01 GMT</pubDate>
<category>CMarkup Articles</category>
<description><![CDATA[
<p>...Also (and this is just a personal preference of mine, so please ignore it), I've renamed the functions "<code>IntoElem()</code>" and "<code>OutOfElem()</code>" to "<code>Enter()</code>" and "<code>Leave()</code>" respectively. I find 'em easier to type and read.</p>
]]></description>
</item>
<item>
<title>11.1 Issue: linking fseeki64 and ftelli64</title>
<link>http://www.firstobject.com/fseeki64-ftelli64-in-vc++.htm#20090612120500</link>
<guid isPermaLink="false">fseeki64-ftelli64-in-vc++.htm#20090612120500</guid>
<pubDate>Fri, 12 Jun 2009 12:05:00 GMT</pubDate>
<category>CMarkup Articles</category>
<description><![CDATA[
<p>I'm still on VC++ 6.0 (don't ask) and the functions <code>_fseeki64</code> and <code>_ftelli64</code> don't exist. To fix this, you just need to bump the compiler
version directive as follows:</p>
<p>Old line 223:<br>
<code><FONT color=blue>#elif</FONT> _MSC_VER >= 1000 <font color=green>// VC++</font></code></p>
<p>New line 223:<br>
<code><FONT color=blue>#elif</FONT> _MSC_VER > 1200 <font color=green>// > VC++ 6.0?</font></code></p>
]]></description>
</item>
<item>
<title>easy zlib checksum question</title>
<link>http://www.firstobject.com/easy-zlib-c++-xml-compression.htm#20090601090900</link>
<guid isPermaLink="false">easy-zlib-c++-xml-compression.htm#20090601090900</guid>
<pubDate>Mon, 01 Jun 2009 09:09:00 GMT</pubDate>
<category>C++ Articles</category>
<description><![CDATA[
<p>I've downloaded and used your easy zlib, it is really easy to use! But when I compress and decompress files using your library, the checksum of files are different.
Here is my sample source code:</p>
]]></description>
</item>
<item>
<title>declarations in write file mode</title>
<link>http://www.firstobject.com/dn_markxmldecl.htm#20090525133100</link>
<guid isPermaLink="false">dn_markxmldecl.htm#20090525133100</guid>
<pubDate>Mon, 25 May 2009 13:31:00 GMT</pubDate>
<category>CMarkup Articles</category>
<description><![CDATA[
<p>I've got large file writing mode working now, with one exception. My code uses the <code>SetDoc</code> method to add XML and style sheet declarations, like this:</p>
<pre>CString sXMLHeader(_T("&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n"));
<FONT color=blue>if</FONT> (m_bUseXSLT)
&nbsp; sXMLHeader.Append(_T("&lt;?xml-stylesheet type=\"text/xsl\" href=\"fs.xsl\"?&gt;\r\n"));
m_markup.SetDoc(sXMLHeader);</pre>
<p>I've noticed that when using <code>MDF_WRITEFILE</code> mode, <code>SetDoc</code> is not supported, so this code no longer works. Adding the XML declaration to the markup object constructor doesn't seem to work either. What's the right way to inject these declarations when using large file writing mode?</p>
]]></description>
</item>
<item>
<title>editor 2.3.4 better far east char performance</title>
<link>http://www.firstobject.com/dn_editcomments.htm#20090511104500</link>
<guid isPermaLink="false">dn_editcomments.htm#20090511104500</guid>
<pubDate>Mon, 11 May 2009 10:45:00 GMT</pubDate>
<category>XML Editor Articles</category>
<description><![CDATA[
<p>Release 2.3.4 has better text drawing performance which is especially noticeable when a lot of far eastern text (such as Chinese or Japanese) is in view and Windows GDI++ is on. This is a big step up from the solution started in 2.2.5. This release also completes <a href="http://www.firstobject.com/tree-customization-in-xml-editor.htm#20090508111600">tree customization lower level child element</a>, minor resource string improvements, and does not display a parse error when loading non-markup text documents.</p>
]]></description>
</item>
<item>
<title>Tree customization lower level child element</title>
<link>http://www.firstobject.com/tree-customization-in-xml-editor.htm#20090508111600</link>
<guid isPermaLink="false">tree-customization-in-xml-editor.htm#20090508111600</guid>
<pubDate>Fri, 08 May 2009 11:16:00 GMT</pubDate>
<category>XML Editor Articles</category>
<description><![CDATA[
<p>Is it possible to have a lower level child element (not direct child) displayed in the Tree? As an example, I have the following reoccurring nodes and would like the BusinessNameLine1 displayed on the SubsidiaryReturn tree.</p>
<PRE lang=xml><FONT color=#0000ff>&lt;SubsidiaryReturn&gt;</FONT><FONT style='color:black;font-weight:bold;'> 
  </FONT><FONT color=#0000ff>&lt;ReturnHeader&gt;</FONT><FONT style='color:black;font-weight:bold;'> 
    </FONT><FONT color=#0000ff>&lt;SubsidiaryCorp&gt;</FONT><FONT style='color:black;font-weight:bold;'> 
      </FONT><FONT color=#0000ff>&lt;EIN&gt;</FONT><FONT style='color:black;font-weight:bold;'>999999999</FONT><FONT color=#0000ff>&lt;/EIN&gt;</FONT><FONT style='color:black;font-weight:bold;'> 
      </FONT><FONT color=#0000ff>&lt;Name&gt;</FONT><FONT style='color:black;font-weight:bold;'> 
        </FONT><FONT color=#0000ff>&lt;BusinessNameLine1&gt;</FONT><FONT style='color:black;font-weight:bold;'>Company Name</FONT><FONT color=#0000ff>&lt;/BusinessNameLine1&gt;</FONT><FONT style='color:black;font-weight:bold;'> 
      </FONT><FONT color=#0000ff>&lt;/Name&gt;</FONT><FONT style='color:black;font-weight:bold;'></FONT></PRE>
<p>We've got over two hundred subsidiary returns in our consolidated Federal Tax Return XML eFile data which makes it very hard to traverse the list.</p>
]]></description>
</item>
<item>
<title>missing tag in huge XML file</title>
<link>http://www.firstobject.com/parse-huge-xml-file-in-c++.htm#20090508102200</link>
<guid isPermaLink="false">parse-huge-xml-file-in-c++.htm#20090508102200</guid>
<pubDate>Fri, 08 May 2009 10:22:00 GMT</pubDate>
<category>CMarkup Articles</category>
<description><![CDATA[
<p>So here is where we get into trouble... if a property is NULL, the .NET serializer doesn't write out the tag at all. So what happens when we use <code>FindElem("property1")</code> is that it scans to the end, and we can't read any more of the data. Do you have any suggestions? Is there some way to record where we started, and roll the file pointer back to that location so we can avoid the problem of a missing tag in the XML?</p>
]]></description>
</item>
<item>
<title>11.0 Bug: file read and write modes</title>
<link>http://www.firstobject.com/dn_markknown.htm#20090507120000</link>
<guid isPermaLink="false">dn_markknown.htm#20090507120000</guid>
<pubDate>Thu, 07 May 2009 12:00:00 GMT</pubDate>
<category>CMarkup Articles</category>
<description><![CDATA[
<p>(fixed in 11.1)</p>
<p>If you are using either read or write file mode (the <A class="codelink" href="http://www.firstobject.com/dn_markOpen.htm">Open</A> method) this is an important fix. Please replace the <code>ElemStack</code> <code>Unslot</code> method in Markup.cpp line 1274 as follows:</p>
<p><code><FONT color=blue>void</FONT> Unslot( TagPos& lp ) { <FONT color=blue>int</FONT> n=lp.iSlotNext,p=lp.iSlotPrev; <FONT color=blue>if</FONT> (n) pL[n].iSlotPrev=p; <FONT color=blue>if</FONT> (p) pL[p].iSlotNext=n; <FONT color=blue>else</FONT> anTable[lp.nSlot]=n; };</code></p>
<p><i>*Thanks Dave Terracino</i></p>
]]></description>
</item>
<item>
<title>pull from a huge XML file a little bit at a time</title>
<link>http://www.firstobject.com/parse-huge-xml-file-in-c++.htm#20090505065200</link>
<guid isPermaLink="false">parse-huge-xml-file-in-c++.htm#20090505065200</guid>
<pubDate>Tue, 05 May 2009 06:53:00 GMT</pubDate>
<category>CMarkup Articles</category>
<description><![CDATA[
<p>What we have is a rather large XML file [1.82GB] that we need to pull all the data from a little bit at a time. This is a file that was serialized to an XML file from a .NET application and needs to be read back in by our Visual C++ 6.0 application. We need this ASAP, as we've been trying other paths to no avail.</p>
]]></description>
</item>
<item>
<title>FOAL C++ short circuit evaluation</title>
<link>http://www.firstobject.com/dn_foal.htm#20090501103400</link>
<guid isPermaLink="false">dn_foal.htm#20090501103400</guid>
<pubDate>Fri, 01 May 2009 10:34:00 GMT</pubDate>
<category>XML Editor Articles</category>
<description><![CDATA[
<P>Something I noticed (the hard way) is that FOAL doesn't seem to support 'short circuit evaluation,' at least not in my usage in an 'if' test scenario. Not a big deal to work around it, just a difference from C++ that you might mention in the existing documentation about the differences between FOAL and C++.</P>
]]></description>
</item>
</channel>
</rss>
