VBScript String Methods in a Simple PHP Class

August 24, 2009 No comments »

When some people start out in a new language, they are in it for the long haul.  Other people sometimes just need to touch on it without getting into the details.  PHP is one of those languages where you can do things in a quick and dirty way without getting into the details.  I have written a simple class for the kind of person that just wants to get a few things done quickly that is familiar with VBScripting.  The class is mainly a wrapper class that allows you to perform VBScript style methods on strings in PHP.  For instance, you can use VBScript::Left($string, $length) instead of using PHP’s substr($string, 0, $length).  Enjoy!
» Read more: VBScript String Methods in a Simple PHP Class

Microsoft Active Accessibility Methods and Inconsistent Implementations

August 12, 2009 No comments »

The C++ IAccessible interface offers a handful of methods that allow you to gather information or perform actions on an object. Each of these methods are well documented on MSDN, but it is up to the creator of an object to implement them correctly. In this article, I’ll be talking about a couple of the inconsistencies you may run into when using these methods due to improper implementations and a lack of restrictions on how they should be implemented.
» Read more: Microsoft Active Accessibility Methods and Inconsistent Implementations

Automating Excel 2007 in C++ by Importing the Excel 2007 Type Library

July 21, 2009 1 comment »

When I started trying to write automations for Excel 2007 using C++, I ran into problems right up front. I was trying to use #import to get to the type library for Excel 2007, and was importing what I thought was the correct file. The following was written for a C++ application in Visual Studio 2008 (VS2008), automating Excel 2007.
» Read more: Automating Excel 2007 in C++ by Importing the Excel 2007 Type Library