« Refactoring | Reprints Archives | Role Playing »

Reprints - OLEDB; no pain, no gain

| 5 Comments
I've just finished posting several OLE DB provider articles from back in 1999 and 2000 when the favourite method of data access that Microsoft recommended was OLE DB. This was relatively easy to use as a data consumer, especially from VB. Writing a data provider was another matter entirely. The OLE DB documentation was mostly written in a style that assumed that you were only using it for reference, this made it hard to get to grips with when you first started working with it. The ATL OLE DB provider templates offered some help, but, to be honest, as soon…

Three reprints from when COM ruled the land

| 0 Comments
I've just finished posting three reprints from back in 1998 and 2002 when I was working on lots of COM stuff. 1) Sinking connection points in C++ objects - shows you how to use the least COM possible to connect to Connection Points and provides a C++ template that does all of the hard work for you. 2) Designing asynchonous COM components for VB - This example COM component provides three COM objects for using the Win32 Mailslot IPC mechanism. The component may be useful if you need to communicate from VB using Mailslots. However, the reason I wrote it…

More Reprints - CORBA, C++ and Java

| 0 Comments
I've just finished posting some more reprints from back in 2001 when I was working on CORBA systems with C++ and Java. The articles mostly compare CORBA to COM and show why providing a reference counted server object lifetime management system is harder than it appears. 1 - CORBA - Reference Counting. Adding reference counting to CORBA objects isn't as easy as it first seems. 2 - CORBA - More Reference Counting. Although we managed to develop a working solution in the first CORBA reference counting article the results were ugly and fragile. In this article we attempt to clean…
OpenSSL is an open source implementation of the SSL and TLS protocols. Unfortunately it doesn't play well with windows style asynchronous sockets. This article, which was first published in Windows Developer Magazine and then reprinted on my company web site, provides a simple connector that enables you to use OpenSSL asynchronously. A new posting in the blast from the past reprints area. The article is here.…

Reprints

| 0 Comments
I've started a new category, reprints, these are things from 'way back' that have been previously published on the web in other forms. First in this blatant search for more search engine hits is an old Java article I wrote in 2001 about caches in the middle tier.…

Using OpenSSL with Asynchronous Sockets

| 25 Comments
OpenSSL is an open source implementation of the SSL and TLS protocols. Unfortunately it doesn't play well with windows style asynchronous sockets. This article - previously published in Windows Developer Magazine and now available on the Dr. Dobbs site - provides a simple connector that enables you to use OpenSSL asynchronously. Note: If you need high performance SSL over TCP/IP then this is available as an optional part of The Server Framework; see here for details.…

Sinking connection points in C++ objects.

| 2 Comments
Sometimes it would be nice to be able to use a simple C++ object as a sink for Connection Point notifications. This article shows you how.…

Designing asynchonous COM components for VB

| 0 Comments
This example COM component provides three COM objects for using the Win32 Mailslot IPC mechanism. The component may be useful if you need to communicate from VB using Mailslots. However, the reason I wrote it was to demonstrate creating a COM component in C++ that integrates well with VB and can fire asynchronous events.…

AVL Tree

| 2 Comments
A "generic" AVL Tree, from the dark days before templates... The code here is some of my first C++. Back in 1991 C++ was still pretty new. Looking back at my early C++ is better than looking back at my early C. At least my early C++ just looked like OKish C with some odd keywords...…

Rooms 1.7

| 0 Comments
In 1989 I taught myself C to write an adventure game, the code's fairly bad, but 10 year's later, the game's still quite cool!…

Java caches in the middle tier

| 5 Comments
A common way to improve the performance of Java code is to cache objects rather than repeatedly create and destroy them. This is especially true when you're writing middle tier servers that service client requests and return results objects. Implementing a flexible caching scheme in Java is relatively easy, but there are a few things to watch for.…

The CORBA Evictor Pattern in Java

| 0 Comments
When a CORBA server allows its clients to create and destroy objects one of the recommended ways to handle the object lifetime issues is using the Evictor Pattern. In The Evictor Pattern we solved the problem for C++ servers, here we do the same for Java servers.…

CORBA - Keep Alive

| 0 Comments
One way of making a reference counted implementation more robust is to run the keep-alive protocol yourself. We demonstrate this option here.…

CORBA - The Evictor Pattern

| 0 Comments
Since CORBA doesn't really support reliable reference counting implementations we'll compare one of the recommended methods of servant life-time management with our reference counted iteration interface.…

CORBA - Iteration

| 0 Comments
A CORBA style method of enumeration can be seen in the iteration interfaces on the CORBA Naming Service. Given the code we've already written for the enumeration interface we can easily implement an iteration interface as well as (or, more likely, instead of).…

CORBA - Enumeration

| 0 Comments
CORBA provides sequences as a way of returning collections of items from an method call. The problem with just using unbounded sequences is that the client has no control over how many items it receives as a result of the call. COM gets around this problem using the IEnum style interfaces that allow a client to control how it accesses the items in a collection.…

CORBA - Reference Counting Issues

| 0 Comments
At the end of the second article we have developed a self contained reference counting implementation that appears to work. Unfortunately, it's still far from reliable as CORBA doesn't provide the level of support for reference counting that's built into COM. In this article we discuss the problem and the various CORBA methods for controlling server object lifetime.…

CORBA - More Reference Counting

| 0 Comments
Although we managed to develop a working solution in the first CORBA reference counting article the results were ugly and fragile. In this article we attempt to clean things up a little and, in doing so, get intimate with the Portable Object Adapter and its Servant Managers.…

CORBA - Reference Counting

| 0 Comments
We've been developing code on Windows and Unix for quite some time, but most of the distributed component work we've been involved in has been done using COM. That's changing now as clients have more requirements for Unix based component solutions. We're currently evaluating CORBA ORBs and learning how the CORBA way of doing things differs from the COM way. The first difference that we came across was the way that CORBA servers deal with object lifetime issues. Adding reference counting to CORBA objects isn't as easy as it first seems Please note that these articles initially explore COM concepts…

COM+ Administration

| 0 Comments
COM+ applications can be complex to configure and there's no standard way to save that configuration in a form that can be placed under version control. Luckily the COM+ Catalog is accessible by a set of completely scriptable COM objects. These scripts take advantage of this to provide some functionality that should really come as standard.…

OLEDB - Disconnected Recordsets

| 0 Comments
If you are going to use the client cursor engine then often it's a good idea to disconnect your recordset...…

MFC - Include/Exclude list boxes

| 0 Comments
How to package lots of standard functionality into a CListBox derived class.…

Using COM to write extensible applications

| 0 Comments
Localise design decisions by writing key application functionality as pluggable COM objects. When the requirements change you just write a new plug in...…

It's a wonder any code is ever reused

| 0 Comments
It's rare that code can be viewed as a black box for reuse. If you include design choices and dependencies as valid parts of the code's interface then it's easier to explain why reusing nontrivial code is often harder than writing it from scratch.…

OLEDB - Client Cursor Engine updates

| 0 Comments
Making the ADO Client Cursor Engine believe that your rowset is updateable involves jumping through a few extra hoops...…

OLEDB - Updating data through an ADO recordset

| 0 Comments
The ATL OLE DB Provider templates only seem to support read-only rowsets, and making them support updating of data isn't as easy as you'd expect!…

OLEDB - IRowsetLocate and Bookmarks

| 0 Comments
Adding bookmark functionality is relatively easy and it enables our ADO recordset to be used with a greater number of data bound controls.…

OLEDB - Custom Rowsets

| 0 Comments
The ATL OLE DB Provider templates appear to rely on the fact that your data is kept in a simple array, but that's not really the case at all!…

OLEDB - Objects via ADO

| 0 Comments
ADO seems to be the ideal way to expose tabular data from your own COM objects and the ATL OLE DB Provider templates can help!…

MFC - Templates

| 0 Comments
Templates are a great way of reusing code, unfortunately MFC makes it hard to write MFC friendly template classes...…

IEnumXXXX

| 0 Comments
COM objects generally provide access to sequences using an IEnumXXXX style interface, this class wraps that with an STL style iterator…
« Refactoring | Reprints Archives | Role Playing »

About this Archive

This page is an archive of all entries in the Reprints category.

Refactoring is the previous category.

Role Playing is the next category.

I usually write about C++ development on Windows platforms, but I often ramble on about other less technical stuff...

Find recent content on the main index or look in the archives to find all content.

I have other blogs...

Subscribe to feed The Server Framework - high performance server development
Subscribe to feed Lock Explorer - deadlock detection and multi-threaded performance tools
Subscribe to feed l'Hexapod - embedded electronics and robotics
Subscribe to feed MegèveSki - skiing