Feeds:
Posts
Comments

Archive for March, 2007

Keywords: Excel COM Error, 8008005
As a follow on to my amusing misadventures with Excel COM running server side, I did some more digging and found out more interesting details on this situation. For starters, it’s not supported:KB257757. That doesn’t really bother me so much, it’s stable enough to run a few reports. And [...]

Read Full Post »

I knew I was pushing my luck going for a ride today. Though it was a balmy 60 degrees with less than 10 MPH winds, it was wet and foggy. Plus the trails were in bad shape. I live near the Illinois Prairie Path, which is mostly limestone screenings, and at this [...]

Read Full Post »

Bike The Drive 2007

Registration is open for for the 2007 Bike the Drive tour on May 27. It’s an annual 30-mile tour along Chicago’s lake front, and they close down Lake Shore Drive for the duration. For those not in the know, Lake Shore Drive is a 6 to 8 lane thoroughfare in downtown Chicago. [...]

Read Full Post »

Keywords: Excel in C#, COM Interop, Primary Interop Assemblies (PIA), Errors
I don’t even know where to begin.
I recently had a report project that called for reports to be generated in an Excel spreadsheet. To figure out how to write Excel from C#, I drew on plenty of resources on the web, for example here, [...]

Read Full Post »

Keywords: Microsoft.Net, Visual Studio, -1073741819, file path name length
While developing a simple console application recently in Visual Studio, I encountered the error

The program ‘[3952] LongNamedApplicationRpt.vshost.exe:

Managed’ has exited with code -1073741819 (0xc0000005).
The application builds fine, but when trying to run the [...]

Read Full Post »

It turns out that the device introduced in my last post on this subject doesn’t really work with interfaces. In that solution, the class itself is satisfying two “logical interfaces”: the property’s getter is a public interface that clients can use to read and it’s setter is an internal interface that services can use [...]

Read Full Post »

I’ve been thinking a lot about interfaces lately. When I’m writing code, I often find myself slipping back and forth between several ways of thinking about interfaces. And if I’m not careful the result is a big mess!
The first way of thinking is “interface as contract”, and the second is “interface as behavior”, [...]

Read Full Post »

When I first started programming in C#, I wondered about the proper usage of the internal keyword. The C# language specification states that classes or interfaces or members marked internal are accessible to code defined in the same assembly. The combination protected internal makes the affected elements accessible to subclasses in [...]

Read Full Post »

A few months ago, I was talking to my next door neighbor Jeff about what he does for a living. Jeff works at a large private investment bank downtown, and he was tasked with sorting out their organization of data. This particular bank is like a lot of financial institutions in that [...]

Read Full Post »