Average article rating: 4.50
Combo & List Boxes
Include/Exclude List Boxes
Posted: 25 Feb 2000
Updated: 25 Feb 2000
Views: 100,321
Rating: 4.58/5
Votes: 8
Popularity: 4.14
Licence: The Code Project Open License (CPOL)
Bookmarked: 43
Downloaded: 1,809
How to package lots of standard functionality into a CListBox derived class.
Shell and IE programming
A Task Tray Applet Framework
Posted: 24 Feb 2000
Updated: 24 Feb 2000
Views: 123,581
Rating: 4.41/5
Votes: 18
Popularity: 5.53
Licence: The Code Project Open License (CPOL)
Bookmarked: 51
Downloaded: 998
A framework for system tray applets
Database
Making ATL OLE DB Provider templates support updating of data - Part 1
Posted: 20 Feb 2000
Updated: 20 Feb 2000
Views: 55,846
Rating: 4.50/5
Votes: 8
Popularity: 4.06
Licence: The Code Project Open License (CPOL)
Bookmarked: 32
Downloaded: 681
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!
Making ATL OLE DB Provider templates support updating of data - Part 2
Posted: 20 Feb 2000
Updated: 20 Feb 2000
Views: 50,597
Rating: 3.60/5
Votes: 5
Popularity: 2.52
Licence: The Code Project Open License (CPOL)
Bookmarked: 26
Downloaded: 525
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!
Exposing tabular data from your COM object - Part 1
Posted: 20 Feb 2000
Updated: 28 Jul 2000
Views: 82,798
Rating: 4.33/5
Votes: 18
Popularity: 5.44
Licence: The Code Project Open License (CPOL)
Bookmarked: 35
Downloaded: 1,585
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!
Exposing tabular data from your COM object - Part 2
Posted: 20 Feb 2000
Updated: 28 Jul 2000
Views: 79,936
Rating: 4.95/5
Votes: 16
Popularity: 5.96
Licence: The Code Project Open License (CPOL)
Bookmarked: 33
Downloaded: 977
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!
Exposing tabular data from your COM object - Part 3
Posted: 20 Feb 2000
Updated: 28 Jul 2000
Views: 53,804
Rating: 4.82/5
Votes: 8
Popularity: 4.35
Licence: The Code Project Open License (CPOL)
Bookmarked: 28
Downloaded: 1,088
Adding bookmark functionality is relatively easy and it enables our ADO recordset to be used with a greater number of data bound controls.
C / C++ Language
Templates and MFC
Posted: 27 Feb 2000
Updated: 27 Feb 2000
Views: 120,388
Rating: 4.63/5
Votes: 32
Popularity: 6.96
Licence: The Code Project Open License (CPOL)
Bookmarked: 48
Downloaded: 1,399
Templates are a great way of reusing code, unfortunately MFC makes it hard to write MFC friendly template classes...
ATL
COM: IEnumXXXX to STL-style iterator wrapper class
Posted: 24 Feb 2000
Updated: 24 Feb 2000
Views: 46,293
Rating: 4.56/5
Votes: 9
Popularity: 4.35
Licence: The Code Project Open License (CPOL)
Bookmarked: 37
Downloaded: 770
A simplified method to enumerate a collection of objects.
COM / COM+
COM Mailslots - Designing asynchonous COM components for VB
Posted: 10 Apr 2002
Updated: 10 Apr 2002
Views: 82,384
Rating: 4.70/5
Votes: 15
Popularity: 5.53
Licence: The Code Project Open License (CPOL)
Bookmarked: 34
Downloaded: 867
This example COM component provides 3 COM objects for using the Win32 Mailslot IPC mechanism. The component may be useful if you need to communicate from VB using Mailslots.
Component Category Manager wrapper classes
Posted: 24 Feb 2000
Updated: 24 Feb 2000
Views: 79,781
Rating: 3.69/5
Votes: 10
Popularity: 3.69
Licence: The Code Project Open License (CPOL)
Bookmarked: 42
Downloaded: 1,409
COM objects can be categorised using the Component Category Manager. The code here makes it easier to use these categories in your code.
Writing extensible applications
Posted: 25 Feb 2000
Updated: 25 Feb 2000
Views: 85,939
Rating: 3.58/5
Votes: 45
Popularity: 5.92
Licence: The Code Project Open License (CPOL)
Bookmarked: 54
Downloaded: 0
Using simple in-process COM objects you can make an application easy to extend without the need for recompilation of the main app.
Store COM+ administration details as XML files to help with source control
Posted: 8 Apr 2002
Updated: 8 Apr 2002
Views: 44,568
Rating: 4.82/5
Votes: 7
Popularity: 4.07
Licence: The Code Project Open License (CPOL)
Bookmarked: 23
Downloaded: 584
There's no standard way to save complex COM+ application configuration in a form that can be placed under version control. This article presents 2 scripts that take advantage of the COM+ Catalog accessibility via script to provide functionality that should really come as standard.
Sinking connection points in C++ objects
Posted: 5 Jun 2002
Updated: 5 Jun 2002
Views: 104,902
Rating: 4.05/5
Votes: 4
Popularity: 2.44
Licence: The Code Project Open License (CPOL)
Bookmarked: 42
Downloaded: 1,034
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.
Win32/64 SDK & OS
Control Panel Applet Framework
Posted: 24 Feb 2000
Updated: 24 Feb 2000
Views: 76,837
Rating: 4.45/5
Votes: 18
Popularity: 5.56
Licence: The Code Project Open License (CPOL)
Bookmarked: 45
Downloaded: 1,310
A mini framework for writing Control Panel applets. Just fill in the blanks!.
Internet / Network
A reusable, high performance, socket server class - Part 3
Posted: 2 Jun 2002
Updated: 18 Jul 2002
Views: 372,310
Rating: 4.87/5
Votes: 28
Popularity: 7.05
Licence: The Code Project Open License (CPOL)
Bookmarked: 119
Downloaded: 8,806
When a server has to deal with lots of short lived client connections it's advisable to use the Microsoft extension function for WinSock, AcceptEx(), to accept connections.
A reusable, high performance, socket server class - Part 2
Posted: 25 May 2002
Updated: 17 Aug 2002
Views: 437,871
Rating: 4.68/5
Votes: 55
Popularity: 8.22
Licence: The Code Project Open License (CPOL)
Bookmarked: 171
Downloaded: 5,033
To maintain performance a socket server shouldn't make blocking calls from its IO threads. This article builds on the previous one to add a business logic thread pool to our example server.
Handling multiple pending socket read and write operations
Posted: 20 Jul 2002
Updated: 17 Aug 2002
Views: 396,030
Rating: 4.90/5
Votes: 33
Popularity: 7.44
Licence: The Code Project Open License (CPOL)
Bookmarked: 136
Downloaded: 7,354
This article explains the potential problems with having multiple pending recvs calls on a single socket.
A reusable, high performance, socket server class - Part 1
Posted: 25 May 2002
Updated: 17 Aug 2002
Views: 582,877
Rating: 4.84/5
Votes: 69
Popularity: 8.94
Licence: The Code Project Open License (CPOL)
Bookmarked: 318
Downloaded: 20,770
Writing a high performance server that runs on Windows NT and uses sockets to communicate with the outside world isn't that hard once you dig through the API references. What's more most of the code is common between all of the servers that you're likely to want to write.
A high performance TCP/IP socket server COM component for VB
Posted: 15 Jun 2002
Updated: 25 Jun 2002
Views: 238,425
Rating: 4.50/5
Votes: 18
Popularity: 5.65
Licence: The Code Project Open License (CPOL)
Bookmarked: 51
Downloaded: 8,593
Although socket based TCP/IP servers using IO Completion Ports are often written in C++ it's sometimes useful to write such a server in Visual Basic.
Testing TCP and UDP socket servers using C# and .NET
Posted: 20 Jul 2002
Updated: 20 Jul 2002
Views: 224,512
Rating: 4.92/5
Votes: 26
Popularity: 6.96
Licence: The Code Project Open License (CPOL)
Bookmarked: 184
Downloaded: 4,911
When you're developing a TCP/IP server application it's easy to test it poorly. In this article we develop a test framework that does most of the hard work for you.
Hardware & System
Registry API Wrapper
Posted: 24 Feb 2000
Updated: 24 Feb 2000
Views: 165,333
Rating: 4.60/5
Votes: 36
Popularity: 7.15
Licence: The Code Project Open License (CPOL)
Bookmarked: 50
Downloaded: 2,965
The Win32 Registry API is far too complex for simple tasks, and all the error checking gets in the way of the real work...
No blogs have been submitted.
No tips have been posted.
Len has been programming for over 30 years, having first started with a
Sinclair ZX-80. Now he runs his own consulting company,
JetByte Limited and has a technical blog
here.
JetByte provides contract programming and consultancy services. We can provide experience in COM, Corba, C++, Windows NT and UNIX. Our speciality is the design and implementation of systems but we are happy to work with you throughout the entire project life-cycle. We are happy to quote for fixed price work, or, if required, can work for an hourly rate.
We are based in London, England, but, thanks to the Internet, we can work 'virtually' anywhere...
Please note that many of the articles here may have updated code available on Len's
blog and that the IOCP socket server framework is also available in a licensed, much improved and fully supported version, see
here for details.