<?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/"
	>

<channel>
	<title>BDC Software &#187; Miscellaneous</title>
	<atom:link href="http://www.bdcsoftware.com/category/miscellaneous/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bdcsoftware.com</link>
	<description>Experience Matters</description>
	<lastBuildDate>Fri, 04 Jun 2010 17:55:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>VB AddErrorHandler</title>
		<link>http://www.bdcsoftware.com/vb-adderrorhandler/</link>
		<comments>http://www.bdcsoftware.com/vb-adderrorhandler/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 22:59:39 +0000</pubDate>
		<dc:creator>raf</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://www.bdcsoftware.com/?p=149</guid>
		<description><![CDATA[FREE Visual Basic 6 add-in, that will speed up adding error handling code to procedures and functions. It has built in CallStack and is fully customizable.

Best of all, it will add runtime CallStack capabilities to your applications. From now on, if an error occurs at runtime, you won&#8217;t have to guess what happened :-)


Download it [...]]]></description>
			<content:encoded><![CDATA[<p>FREE Visual Basic 6 add-in, that will speed up adding error handling code to procedures and functions. It has built in CallStack and is fully customizable.</p>
<p>
Best of all, it will add runtime CallStack capabilities to your applications. From now on, if an error occurs at runtime, you won&#8217;t have to guess what happened :-)
</p>
<p>
<a href="http://www.bdcsoftware.com/development/AddErrorHandler/AddErrorHandler.EXE">Download it here </a>
</p>
<p>
<strong>Short Description: </strong>
</p>
<p>
After installation, the add-in will load on startup of Visual Basic. A new toolbar <img src="http://www.bdcsoftware.com/development/AddErrorHandler/new_toolbar.gif" border="0" alt="Application error thumbnail" width="82" height="26" /> will be available. Button functions starting from the left:Add error handling code to the current procedure, add error handling code to the current module, plug-in options.
</p>
<p>
Depending on the option settings, the plug-in might add multiple files to your project. The source code to those files is in SRC directory of the plug-in. Feel free to customize it at will.
</p>
<p>
<strong>Screenshots: </strong>
</p>
<p>
<a href="http://www.bdcsoftware.com/development/AddErrorHandler/app_error_short.gif" rel="lightbox[149]"><img src="http://www.bdcsoftware.com/development/AddErrorHandler/app_error_short_tn.gif" border="0" alt="AddErrorHandler logo" width="200" height="46" /></a><br />
         <em>Standard error message </em>
</p>
<p>
<a href="http://www.bdcsoftware.com/development/AddErrorHandler/app_error_detailed.gif" rel="lightbox[149]"><img src="http://www.bdcsoftware.com/development/AddErrorHandler/app_error_detailed_tn.gif" border="0" alt="Toolbar image" width="200" height="145" /></a><br />
         <em>Detailed error message, <br />
   includes the callstack </em>
</p>
<p>
<a href="http://www.bdcsoftware.com/development/AddErrorHandler/options.gif" rel="lightbox[149]"><img src="http://www.bdcsoftware.com/development/AddErrorHandler/options_tn.gif" border="0" alt="Program Options" width="200" height="151" /></a><br />
         <em>Plug-in options </em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bdcsoftware.com/vb-adderrorhandler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exposing Activex objects in VB6</title>
		<link>http://www.bdcsoftware.com/exposing-activex-objects-in-vb6/</link>
		<comments>http://www.bdcsoftware.com/exposing-activex-objects-in-vb6/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 19:48:50 +0000</pubDate>
		<dc:creator>raf</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://www.bdcsoftware.com/?p=147</guid>
		<description><![CDATA[An example on how to use GetObject on custom made ActiveX EXE. (And Microsoft said that it cannot be done :-))

This sample will teach you how to expose classes from an ActiveX EXE to other Applications. I felt that a Main App / Plugin relationship (like in Photoshop) will be best suited to showcase this [...]]]></description>
			<content:encoded><![CDATA[<p>An example on how to use GetObject on custom made ActiveX EXE. (And Microsoft said that it cannot be done :-))</p>
<p>
This sample will teach you how to expose classes from an ActiveX EXE to other Applications. I felt that a Main App / Plugin relationship (like in Photoshop) will be best suited to showcase this cool solution.
</p>
<p>
<strong>This is how it works:</strong><br />
When an object gets created based on a class from an ActiveX Exe it gets created in its own memory area (Multiple objects based on the same class cannot share their data). In C++ that object registers itself with the ROT (Running Object Table) so that anybody who needs to, can access that instance of the object. For instance Excel. When Excel is running you can refer to the running instance from VBA/VB, and access any data that&#8217;s present in the spread sheet. However VB based objects lack that functionality. Activex EXE created in VB will NOT get registered in the ROT! (That&#8217;s why you can&#8217;t use GetObject on VB made ActiveX&#8217;s ;-) )
</p>
<p>
Anyhow, here is a solution that will register your ActiveX EXE in the ROT, and you will be able to reference the running instance of your object from any other application.
</p>
<p>
Please use this <a href="http://www.bdcsoftware.com/development/activex_1/project.zip">sample </a> as follows:
</p>
<ol>
<li>Extract Files from Zip (use folder names checked)</li>
<li>run MainApp.EXE (ActiveX EXE)</li>
<li>click on the OPEN icon</li>
<li>load the supplied BMP</li>
<li>wait for a few sec&#8230;.(sorry the image handling is awfully slow, I didn&#8217;t wanted to deal with DIB&#8217;s for simplicity reasons)</li>
<li>plugin Button should be enabled by now (this calls a ShellExecute and runs a regular EXE (our plugin)</li>
<li>In the plugin click on GetData (this will transfer the image from the main app)</li>
<li>click on modify image</li>
<li>click on Close Plugin &amp; Transfer data (this will transfer the modified image back to the main app)</li>
<li>Voila</li>
</ol>
<p>The benefits: If you expose your app&#8217;s objects up front, you can later on create any plugins/addons you want without modifying the original app.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bdcsoftware.com/exposing-activex-objects-in-vb6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
