Introduction

This is a collection of articles that provide freeware classes covering GUIs, networking, wrapper classes
and general code snippets.

Copyright / Usage Details for my freeware source code

You are allowed to include the source code in any product
(commercial, shareware, freeware or otherwise) when your product is released in
binary form.

You are allowed to modify the source code in any way you
want except you cannot modify the copyright details at the top of each
module.

If you want to distribute source code with your
application, then you are only allowed to distribute versions released by the
author. This is to maintain a single distribution point for the source code.

About PJ Naughter

I grew up in a small village called Ballygarrett in
the south east corner of Ireland in a rural setting. I got my degree in
Electronic Engineering from Dublin City
University. Since my graduation in 1993, I have been working as a software
developer in Leopardstown, Co. Dublin with Softech Telecom, who specialize in
producing telecommunications costing software. I was involved in a number of
their products including Ringmaster for Windows and Ringmaster 2000. Currently I
am working on a product called "Ringmaster IMS" in the companies "New Products"
Department.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

This limitation was introduced by MS for a reason i.e. to limit the amount of SPAM being sent by using MAPI. If you want to avoid this issue, then you really need to talk to you Exchange sysadmin assuming you are using Exchange or otherwise use a programming model which avoids this issue such as Extended MAPI, CDO or SMTP directly.

I have used to Serial port code to create serial communications with our embedded device and it works great. A couple of years ago we started using a Belkin USB adapter that creates a virtual serial port and it worked fine, until we tried it with Windows XP. The SetBreak() Function throws an exception -- "The Parameter is Incorrect". We bought newer USB to serial adapters and that fixed the problem.

We are now using Bluetooth serial adapters and they also work great, but yesterday I tried to use a newly released Bluetooth USB dongle that creates a virtual serial port and I get the same old error. The ClearBreak() function causes the error as well.

Because you are including <afx.h> you ARE using MFC. I'm not sure what way it works when you just include it this way but you are including MFC in this sample. It is probably pulling in MFC via a static library. Also another thing to factor into this discussion is that you can use CString in Visual Studio .NET 2003 without MFC as this class along with a good few others are now shared between ATL and MFC.

If Share DLL is selected in the project setting, _AFXDLL will be defined and hence afx.h will use MFC42d.dll to link the library.

If static DLL is selected, _AFXDLL is not defined and nafxcwd.lib will be used to do the static link.

However, if "Do not use MFC" library is selected, and none is defined. Static link is performed during the link. App linked with static MFC, so even if win32 app does not activate MFC support in the Project setting, by simply including <afx.h>, MFC support is automatically included.

Thank you for this. BTW, your SMTP code is super. Not even have memory problems, very rare in freeware.

Hi, I've A Big Problem on DownLoading A WHole WebSit e via www.CodeProject.com/... /.../... which is How to Pending and Resuming on Connection Failure on Internet Connection!!! Please Help me!!! if U Can With Or Without Using MFC... I wish to DownLoad From win2000 Service Program

This is Cynthia from Taiwan.I wrote a simple program which will periodly check my inbox of my OutLook Express using Simple MAPI. But I have a problem that I can only get the text part of the email content through the MapiMessage structure. Is there any way to get the whole content of the email using Simple MAPI? Or I must use MAPI instead? As you know many emails are the html format! Please help me! Thanks a lot!

Hello. I have been working on an application that monitors the printer queue and dumps job information as jobs are printed on the network. For the life of me, I can not figure out why TotalPages is 0 or null every time. All the other fields are giving acurate information. I call EnumJobs, get the last error for the correct buffer, call again and use my pointer to the JOB_INFO_2 struct to access the TotalPages field. What considerations should I make to ensure that this will work. Thank you for your time.

First, thank a lot for your library.I currently use CHKLM and find memory leaks in GetProfileBinary function.Because the ppData is never freed.I think it would be better that the user provides the data pointer and the number of bytes to read

We can get string from explorer browser's edit box?If I input address in edit box of browser and press EnterKey, my application should know the input string in browser.How can I implement? please give me a hand.Have a nice da