<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
 <channel>
  <title>Working Code Snippets</title>
  <link>http://www.xblite.com/forum/</link>
  <generator>http://www.eblah.com</generator>
  <description></description>
  <language>en</language>
  <item>
   <title>Simple filesystem using compressed archives</title>
   <link>http://www.xblite.com/forum/m-1220860449/</link>
   <comments>http://www.xblite.com/forum/m-1220860449/#num1</comments>
   <description><![CDATA[I am still working to (re)build my toolkit and i wrote a simple filesystem.It allow writting compressed/uncompressed files and reading files in compressed/uncompressed archives.<br /><br />I noticed zlib example on <a href="http://www.xblite.com">http://www.xblite.com</a> page has problems because functions are declared as CCALL functions and zlibwapi.dll functions are STDCALL functions, i had serious headaches before finding what was wrong.I inclued updated header file,lib and zlib 1.2.3 dll in the package.<br /><br />It seems free of bugs but if you find some, mail me <img src="/blahdocs/Smilies/wink.png" style="vertical-align: middle" alt="" /><br />The only problem is opening a file that is not in an archive is slow because zlib owns no function to find uncompressed file size.If someone finds a better solution than mine, i'll be happy.<br /><br />This is extracted from readme.txt :<br /><br /><blockquote>
 <div class="win3 quoteby"><strong>Quoted Text</strong></div>
 <div class="win quotebody">This is a file simple file system that allows to mount archives in TAR/TAR.GZ format and read in them transparently<br />It is is totaly recursive so you can mount nested archives (russian dolls <img src="/blahdocs/Smilies/lol.png" style="vertical-align: middle" alt="" />)<br />My first idea was to implement that with ZIP format but there are too much differents versions and compressions and<br />some ZIP programs create weird zip files.TAR/TAR.GZ if enough for me <img src="/blahdocs/Smilies/wink.png" style="vertical-align: middle" alt="" /><br /><br />It comes in 2 flavors : winapi &amp; zlib version.<br /><br />The winapi version allows TAR archives files mounting, linear reading and writting.<br />The zlib version allows TAR and TAR.GZ archives, .GZ files transparent reading (you read it same way you read a<br />non-compressed file) and compressed or linear writting.<br /><br />TAR / TAR.GZ / GZ archive format is widely used ad there are a lot of tools to build thems.This is the one is use :<br />ALzip : <a href="http://www.altools.com/ALTools/ALZip.aspx">http://www.altools.com/ALTools/ALZip.aspx</a></div>
</blockquote>
]]></description>
   <pubDate>Mon, 8 Sep 2008 03:54:09</pubDate>
   <dc:creator>26</dc:creator>
  </item>
  <item>
   <title>Low Level stuff (ASM inside)</title>
   <link>http://www.xblite.com/forum/m-1219570776/</link>
   <comments>http://www.xblite.com/forum/m-1219570776/#num1</comments>
   <description><![CDATA[I am working to rewrite some of my ASM and lowlevel code from NASM to include it directly in XBlite.This is a MMX copying demo and i'll post more if i think they can be usefull.<br /><br />]]></description>
   <pubDate>Sun, 24 Aug 2008 05:39:36</pubDate>
   <dc:creator>26</dc:creator>
  </item>
  <item>
   <title>Command-line arguments</title>
   <link>http://www.xblite.com/forum/m-1214701430/</link>
   <comments>http://www.xblite.com/forum/m-1214701430/#num1</comments>
   <description><![CDATA[A simple program that gets and displays what ever in the command line of the program.&nbsp;&nbsp;This is my first step to other command-line programs.<br /><br />--<br /><br />'<br />' ####################<br />' #####&nbsp;&nbsp;PROLOG&nbsp;&nbsp;#####<br />' ####################<br />'<br />' A console program template<br />'<br />VERSION &quot;0.0001&quot;<br />CONSOLE<br />'<br />&nbsp; &nbsp; &nbsp;IMPORT &quot;xst&quot;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;' Standard library : required by most programs<br />&nbsp; &nbsp; &nbsp;IMPORT &quot;xsx&quot;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;' Extended standard library<br />&nbsp; &nbsp; &nbsp;IMPORT &quot;xio&quot;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;' Console input/ouput library<br /><br />'&nbsp; &nbsp; &nbsp;IMPORT &quot;xst_s.lib&quot;<br />' IMPORT &quot;xsx_s.lib&quot;<br />' IMPORT &quot;xio_s.lib&quot;<br /><br />' IMPORT &quot;gdi32&quot;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;' gdi32.dll<br />'&nbsp; &nbsp; &nbsp;IMPORT &quot;user32&quot;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;' user32.dll<br />'&nbsp; &nbsp; &nbsp;IMPORT &quot;kernel32&quot;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;' kernel32.dll<br />'&nbsp; &nbsp; &nbsp;IMPORT &quot;shell32&quot;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;' shell32.dll<br />'&nbsp; &nbsp; &nbsp;IMPORT &quot;msvcrt&quot;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;' msvcrt.dll<br /><br />'<br />DECLARE FUNCTION Entry ()<br />'<br />'<br />' ######################<br />' #####&nbsp;&nbsp;Entry ()&nbsp;&nbsp;#####<br />' ######################<br />'<br />FUNCTION Entry ()<br />&nbsp; &nbsp; &nbsp;XstGetCommandLineArguments (@argc, @argv$[])<br />&nbsp; &nbsp; &nbsp;PRINT &quot;Number of command line arguments:&quot;; argc<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;FOR x = 0 TO argc-1<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;PRINT argv$[x]<br />&nbsp; &nbsp; &nbsp;NEXT x<br /><br />END FUNCTION<br />END PROGRAM]]></description>
   <pubDate>Sat, 28 Jun 2008 21:03:50</pubDate>
   <dc:creator>caeman</dc:creator>
  </item>
  <item>
   <title>Recording a .wav file using microphone</title>
   <link>http://www.xblite.com/forum/m-1214682878/</link>
   <comments>http://www.xblite.com/forum/m-1214682878/#num1</comments>
   <description><![CDATA[Attached is waverecord.x which uses mciSendStringA commands to <br />record a wave file from a microphone, and then save the file to disk.]]></description>
   <pubDate>Sat, 28 Jun 2008 15:54:38</pubDate>
   <dc:creator>XBLiteAdmin</dc:creator>
  </item>
  <item>
   <title>Post Working Samples Only</title>
   <link>http://www.xblite.com/forum/m-1214682728/</link>
   <comments>http://www.xblite.com/forum/m-1214682728/#num1</comments>
   <description><![CDATA[FYI -<br /><br />It is usually most helpful if code samples are complete working demonstrations<br />which have been tested. <br /><br />thanks,<br />D.]]></description>
   <pubDate>Sat, 28 Jun 2008 15:52:08</pubDate>
   <dc:creator>XBLiteAdmin</dc:creator>
  </item>
 </channel>
</rss>