<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Jons Techbits &#187; code</title>
	<atom:link href="http://jonstechbits.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonstechbits.com</link>
	<description>This blog is a collection of experiences with different techs, software and gadgets.</description>
	<lastBuildDate>Wed, 01 Feb 2012 16:41:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jonstechbits.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Jons Techbits &#187; code</title>
		<link>http://jonstechbits.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jonstechbits.com/osd.xml" title="Jons Techbits" />
	<atom:link rel='hub' href='http://jonstechbits.com/?pushpress=hub'/>
		<item>
		<title>Upgrading to MIL-Lite 9</title>
		<link>http://jonstechbits.com/2008/09/27/upgrading-to-mil-lite-9/</link>
		<comments>http://jonstechbits.com/2008/09/27/upgrading-to-mil-lite-9/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 14:13:44 +0000</pubDate>
		<dc:creator>Jon</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[matrox]]></category>
		<category><![CDATA[mil-lite]]></category>

		<guid isPermaLink="false">http://jonstechbits.wordpress.com/?p=14</guid>
		<description><![CDATA[More about the MIL-Lite upgrade, I have had several problems. I should start by mentioning that we require our applications to work on MIL-versions back to 6, in order to be able to support the excisting customer base: - Matrox have strengthen the typing on all MxxxInquire functions. Probably a good idea, but it means [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jonstechbits.com&amp;blog=908157&amp;post=14&amp;subd=jonstechbits&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>More about the MIL-Lite upgrade, I have had several problems. I should start by mentioning that we require our applications to work on MIL-versions back to 6, in order to be able to support the excisting customer base:</p>
<p>- Matrox have strengthen the typing on all MxxxInquire functions. Probably a good idea, but it means that all previous uses of the functions, for example MBufInquire is not supported anymore and have to be upgraded. Since we are dealing with pointers here, pointers to stuff of different lengths, this is not an easy upgrade. My solution was to use #if M_MIL_CURRENT_INT_VERSION  &gt;=  0&#215;0900 in those places where I was unsure about whether further use of the pointers required a specific width.</p>
<p>- I am unable to retrieve previous hanlder ptr and user handler ptr:<br />
	<code>MappInquire(M_CURRENT_ERROR_HANDLER_PTR,&amp;m_HandlerPtr);</code><br />
The type of the third parameter is not supported anymore (<code>MAPPHOOKFCTPTR</code>)</p>
<p>- The most serious problem is that Matrox has ceased support for the Mvga functions. I used them for getting a pointer to a DIB structure, in order to draw the dib to a printer device context. I canot find a real alternative to these functions</p>
<p>- And, not related to code, I am not able to debug the application as I constantly get an error message about missing license. However I have a Matrox Meteor 1394 card installed, with a Sony 1394b camera. I am not sure why this does not work &#8211; perhaps the Meteor is not supported in version 9, or there is still problems with 1394b speeds. Anyway I will order a USB license key.</p>
<p>- The Matrox developer forum is a closed one. Whenever I try to enter, typically every sixth month, I am not able to log on. Of course I have a valid support agreement and all that, but I do not remember my username or my password. I do remember the email address I am registered with, but it seems not to be enough. So I am not able to see any posts. I don&#8217;t understand why the access needs to be that restricted. </p>
<p>So at the moment, I am not able to get Mil-Lite 9 to work on Vista &#8211; or any version of MIL to work on Vista, I am not able to get help through the forums, and I wonder whether I rather should switch to another vendor!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jonstechbits.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jonstechbits.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jonstechbits.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jonstechbits.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jonstechbits.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jonstechbits.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jonstechbits.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jonstechbits.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jonstechbits.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jonstechbits.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jonstechbits.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jonstechbits.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jonstechbits.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jonstechbits.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jonstechbits.com&amp;blog=908157&amp;post=14&amp;subd=jonstechbits&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jonstechbits.com/2008/09/27/upgrading-to-mil-lite-9/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jon</media:title>
		</media:content>
	</item>
		<item>
		<title>Cleaning up 10 years of outlook history</title>
		<link>http://jonstechbits.com/2007/03/24/cleaning-up-10-years-of-outlook-history/</link>
		<comments>http://jonstechbits.com/2007/03/24/cleaning-up-10-years-of-outlook-history/#comments</comments>
		<pubDate>Sat, 24 Mar 2007 00:08:41 +0000</pubDate>
		<dc:creator>Jon</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jonstechbits.wordpress.com/2007/03/24/cleaning-up-10-years-of-outlook-history/</guid>
		<description><![CDATA[When upgrading to Vista and Outlook 2007, I decided to go through various backups and get 10 years of outlook use into one mailbox file (outlook.pst). After collecting several different .pst files, I opened all in Outlook. Thereafter I moved mail messages from the backup .pst files into the current one. However, then a problemed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jonstechbits.com&amp;blog=908157&amp;post=8&amp;subd=jonstechbits&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When upgrading to Vista and Outlook 2007, I decided to go through various backups and get 10 years of outlook use into one mailbox file (outlook.pst). After collecting several different .pst files, I opened all in Outlook. Thereafter I moved mail messages from the backup .pst files into the current one. However, then a problemed surfaced: When moving a folder hierarchy of mails (e.g. &#8220;personal folders\archive\&#8230;&#8221;) between an old .pst file into a new one with an identical folder hierarchy outlook automatically create a sequence numbered folder (e.g. &#8220;personal folders\archive1\&#8230;&#8221;). This was not what I wanted, and not what you are used to when moving files around your harddisk(in that case you get a replace question or something like that).</p>
<p>Anyway, there was no easy solution here, other than going through that hierarchy and copying the contents of each subfolder in the backup .pst to the similar subfolder in the target .pst. After pondering about for close to an hour, I created this macro vbscript to do the job:</p>
<p><code>Option Explicit</p>
<p>Sub MoveToArkiv()</p>
<p>Dim objFolder As Outlook.MAPIFolder<br />
Dim objFolderFromBase As Outlook.MAPIFolder<br />
Dim objFolderToBase As Outlook.MAPIFolder</p>
<p> Set objFolder = Application.Session.Folders.Item("Personal Folders")</p>
<p> ' Set the two next lines to the approprite to and from folders<br />
Set objFolderFromBase = objFolder.Folders.Item("Arkiv3")<br />
Set objFolderToBase = objFolder.Folders.Item("Arkiv")</p>
<p>' Recursively go thorugh the folders and subfolders, moving every item<br />
MoveItems objFolderFromBase, objFolderToBase</p>
<p>End Sub</p>
<p>Sub MoveItems(objFolderFromFolder As Outlook.MAPIFolder, objFolderToFolder As Outlook.MAPIFolder)</p>
<p>Dim objFolderSource As Outlook.MAPIFolder<br />
Dim objFolderTemp As Outlook.MAPIFolder<br />
Dim objFolderTarget As Outlook.MAPIFolder<br />
Dim blnFound As Boolean<br />
Dim objMailToMove As Outlook.MailItem</p>
<p>For Each objFolderSource In objFolderFromFolder.Folders<br />
    blnFound = False<br />
    ' check whether a similar folder exist in target<br />
    For Each objFolderTemp In objFolderToFolder.Folders<br />
        If objFolderTemp.Name = objFolderSource.Name Then<br />
            Set objFolderTarget = objFolderTemp<br />
            blnFound = True<br />
        End If<br />
    Next<br />
    ' If not found, create<br />
    If Not blnFound Then<br />
        Set folderTarget = folderToFolder.Folders.Add(folderSource.Name)<br />
    End If</p>
<p>    ' For each subfolder runs this procedure<br />
    MoveItems objFolderSource, objFolderTarget<br />
Next</p>
<p>' Then copy all items in the folder<br />
For Each objMailToMove In objFolderFromFolder.Items<br />
       objMailToMove.move objFolderToFolder<br />
 Next<br />
End Sub</code></p>
<p>To use it edit the two lines at the top to set the correct base folders for moving from and moving to. The script was used with Outlook 2007 but should work on Outlook 2003 as well.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jonstechbits.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jonstechbits.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jonstechbits.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jonstechbits.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jonstechbits.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jonstechbits.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jonstechbits.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jonstechbits.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jonstechbits.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jonstechbits.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jonstechbits.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jonstechbits.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jonstechbits.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jonstechbits.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jonstechbits.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jonstechbits.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jonstechbits.com&amp;blog=908157&amp;post=8&amp;subd=jonstechbits&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jonstechbits.com/2007/03/24/cleaning-up-10-years-of-outlook-history/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jon</media:title>
		</media:content>
	</item>
	</channel>
</rss>
