Online Store | About Us | Blog
# Saturday, May 29, 2004




Blacklisted APIs

What follows is a re-post from an older blog of mine:

---

I've been meaning to write about this for some time. It seems there are certain functions in every library that you, as a humble programmer, were never meant to use, yet they're somehow "there". One example of this is the infamous Application.DoEvents function which, to me, does more harm than good. These are the functions you were never meant to call; the functions I refer to as blacklisted APIs. I will now share with you my present list of blacklisted APIs, the functions that you should never EVER call in your applications...

.NET - Blacklisted APIs - “The functions you were never meant to call“

  1. Screen.GetWorkingArea() - Use instead, Screen.PrimaryScreen.WorkingArea (For some reason, GetWorkingArea takes 25 ms to complete)
  2. Application.DoEvents() - The call of the devil.
  3. Control.RecreateHandle() - There's no reason why you should ever need to use this.
  4. Application.EnableVisualStyles() - Use a manifest. .NET 1.1 just doesn't implement this function right.
  5. NativeWindow.ReleaseHandle() - Contains some nasty bugs.

May 29, 2004 5:03 AM Eastern Daylight Time  #    Comments [0] - Trackback
.NET | Commentary
Archive
<May 2004>
SunMonTueWedThuFriSat
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345
About the author/Disclaimer

Disclaimer
The opinions expressed herein do not represent the opinions of the author or of any employer, employee, or associate of the author.

© Copyright 2010
Dan Tohatan
Sign In
Statistics
Total Posts: 182
This Year: 38
This Month: 0
This Week: 0
Comments: 46

Computers
Top Blogs


Copyright © 1999-2010 Dacris Software, Inc. All Rights Reserved.     Privacy Policy  |  Who We Are  |  Blog

Need professional resume writing services?