Geeks With Blogs


Neil Smith [blog]code til ur fingers bleed June 2006 Entries
Office 2007 Primary Interop Assemblies
With Office 2007 release looming, I thought i'd better check out compatibility with previous versions when it comes to automation. I've got apps in vb6, and c# that link to Word and Excel. I remember I had a few coding changes to do between versions 9 (Office 2000) and 10 (Office XP) of the PIA's and also had to apply a registry hack and update references and recompile exes between versions 10 and 11 (Office 2003). Good news though, all of my software works fine with Office 2007 beta, cool. ......

Posted On Thursday, June 29, 2006 7:48 AM

Analysing MSIL
I’ve been looking into MSIL mostly comparing the generated code from both vb and c# as I’m about to start an app where execution speed is going to be important, I’ll need to keep boxing down to a minimum, c++ is not an option because of time constraints. I’ve found a few handy tools along the way. Excellent tool this, version 3 of ILIDE can be downloaded from here unfortunately it appears to be tied to version 1.1 of the framework and therefore knows ......

Posted On Tuesday, June 27, 2006 8:53 AM

Free .net controls

.. like it says, free .net controls, yay.

Posted On Wednesday, June 21, 2006 8:59 AM

C# Generics Simplified
I’ve written a windows exe which I think highlights the advantages of using generics, the sample features a stack type class called nsStack, the source code for which is :- namespace nsGenerics { class nsStack { private T[] m_ItemsArray; private int m_Index = 0; public const int MAX_SIZE = 5; public nsStack() { m_ItemsArray = new T[MAX_SIZE]; } public T Pop() { if (m_Index == 0) throw new System.InvalidOperationExce... is empty."); return m_ItemsArray[--m_Index]; } public void Push(T ......

Posted On Thursday, June 15, 2006 9:41 AM

More adventures in code..
Dynamically having web sites generate PDF documents is quite a common requirement, I’ve had to do it for order forms, invoices, etc. There are a few third party components that can make the job easier, though I’ve found they tend to be quite expensive to buy, take for example The good news is that as of crystal reports 8.5, PDF is one of the export options that covers the versions of crystal that ship with visual studio 2003 and 2005 editions. Using the ......

Posted On Tuesday, June 13, 2006 6:56 AM

Microsoft IE Flash Plug-In hot fix
If you've got Windows automatic updates turned on the chances are you've noticed a change recently in the way flash movies are displayed within IE. You'll find you have to move your mouse pointer over the flash movie which will cause the borders of the movie to highliight and then click your mouse to 'acitvate' the control and only then can you interact with the movie. At best it's an inconvenience, at worst it can stop a site functioning as a customer of mine has just rung me to point out. Thankfully ......

Posted On Wednesday, June 7, 2006 12:47 PM

Surely there's a simpler way!..
Ever tried getting a UNC filename from the mapped drive letter notation in a .net language? I've just had to do it for the first time through Surely there's a simpler way than the following code... Imports System.Runtime.InteropServices Public Class Form1 Private Const NO_ERROR As Long = 0& Private Const ERROR_MORE_DATA As Long = 234& Private Structure REMOTE_NAME_INFO _ Public lpUniversalName As String _ Public lpConnectionName As String _ Public lpRemainingPath As String End Structure ......

Posted On Wednesday, June 7, 2006 11:58 AM

Todays ramblings..
I'm reading expert c# 2005 business objects by Rockford Lhotka at the moment, first impressions are that this is the best .net book i've seen in a long time. I'm in the process of writing my own application framework for multi lingual, multi rdbms distributed programs and have decided to hold off on any more coding until i'm further into this book. On a lighter note, my competition entry tune is nearing completion, the deadline is this Friday. Two months ago me and 3 friends decided to create a song ......

Posted On Monday, June 5, 2006 7:28 PM

Is an assembly installed???
Sent Sage £1500 and got 4 cds and a thank you letter in return, nice. This entitles me to use their development SDK for a whole year so the sooner I get my programs linking to it the better. I've decided the best approach will be a windows service which runs on one machine and polls a folder every x minutes and reads in xml documents which my various programs will create. Given that the Sage SDK is actually an ActiveX class library at the time of writing called SdoEng120.dll, this service is ......

Posted On Friday, June 2, 2006 10:49 AM

Copyright © Neil Smith | Powered by: