Contents tagged with Code
-
2008 Scripting Games - My solutions
-
All Outlook object model calls run on the main thread
While writing an Outlook addin, lots of people feel that they should try to help with Outlook performance by running their addin code on a background thread. While this can help in some scenarios it can actually make things worse in others, particularly if the addin is interacting primarily with the Outlook Object Model (OOM). The OOM is run in a single threaded apartment COM server, therefore every COM call is executed on the main thread of outlook.exe.
-
Issues with the XmlSerializer in medium trust environments
In my last post I briefly mentioned that CodeHTMLer had issues running in a medium trust environment. The simple web application front end I created kept failing before it ever got started. It keep hitting a SecurityException nested in an InvalidOperationException which looks something like:
-
Fun with C# functions
Dustin Campbell has an interesting series on C# functions on his Did it with .NET blog.
-
Failure creating an Outlook application object on Vista
While creating a Outlook application object from another process in C# like:
-
Why does my Outlook event seem to stop working?
Imagine we have some code in an Outlook addin that looks similar to code below. Does anyone see anything wrong with it? It simply places a button on the menu bar and shows a message box when the button is clicked. The code works for sometime but then all of a sudden the button mysteriously stops working. What gives?
-
Powershell script to find strings and highlight them in the output
After reading about Brad's find script I starting thinking about how cool it would be if I could highlight the search pattern in the output. So I wrote my own custom Find-String script to highlight the results.
-
Retrieving your Outlook appointments for a given date range
Before we dive into the code sample lets take a quick look at what it means for an appointment to fall into a given date range.
-
Powershell version of cmd set
If you are like me and are just so used to typing set to list and set environment variables then you might find this script useful.
-
How do I access my Outlook contacts from my web application?
How do I access my Outlook contacts from my web application?