Software design and other ramblings RSS 2.0
# Sunday, July 27, 2008

Here was me thinking I'd escaped the complete ineptness of three mobile 5 years ago but unfortunately its back to haunt me! After closing my account back in December 2003 (and paying the remaining 6 months line rental up front to do so!) I've just recieved a letter from Lowell Portfolio indicating that they have been sold the outstounding debt of £20.07 that I owe on my three account. I was shocked to say the least! The account was fully closed and is marked as settled in my credit report. In addittion, i have never recieved any requests from 3 for this so-caled balance! I contacted three straight away and after being passed around one of their useless indian call centres no one could explain where this additional money had come from - but obviously its left to me to spend my time and money sorting this mess out.

Anyway, clearly the money isn't really the issue but I'm prepared to fight this issue on behalf of all the other ex-three customers out there who are probably being screwed in much the same way! If anyone's considering switching to three and has stumbled accross this site please take one piece of advice from me....

If you value your sanity - *never* enter into any dealings with this company. Their customer service is appauling. If one good thing can come out of this incident it's the hope that at least one potential customer will be swayed away from three by this post :o) Let me know if you've had any similar problems.

Sunday, July 27, 2008 6:57:32 PM (GMT Daylight Time, UTC+01:00)  #    Comments [1] -

# Wednesday, July 02, 2008

The other day I had to update a existing windows GUI application to enable it to be called via the command line. In order to do this, you need to add the following import to your .NET application (C# example shown):

/// <summary>
/// AttachConsole gives the ability for a GUI application to write to the console window of the console from which it was started.
/// </summary>
static extern bool AttachConsole(uint dwProcessId);

/// <summary>
/// Flag indicating that we should attach to parent console
/// </summary>
const uint ATTACH_PARENT_PROCESS = 0x0ffffffff;

After adding these declarations to your main class, its a simple case of adapting your Main method to detect if you're running in console or GUI mode and acting accordingly. E.g:

/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main(string[] args)
     // Are we in console mode
     bool isConsole = args.Length > 0;

     if (!isConsole)
          // Attach to console

          // Run console app
Wednesday, July 02, 2008 4:31:56 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0] -
.NET | C# | Software Development
# Saturday, June 28, 2008

Hi and welcome to

After months of neglect I've decided to give the web site an overhaul and a brand new look. I've now migrated to dasBlog 2.1 and so far things are looking good. Some of my older articles won't be available from now on but I'll try and repost the most popular ones shortly.


Saturday, June 28, 2008 9:50:54 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0] -

Top Cashback
<July 2008>
About the author/Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2022 Scott Hill

Sign In
Total Posts: 8
This Year: 0
This Month: 0
This Week: 0
Comments: 2
All Content © 2022, Scott Hill