Sign in
Adam Nathan's Old Blog
Please visit http://adamnathan.net instead!
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
About
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
Hearts
Managed Code
Misc
Non-Pro Tools
Pages
Popfly
Quizzes
Silverlight
Silverlight Unleashed
WCF
WP7
WPF
WPF Unleashed
Archive
Archives
October 2010
(2)
July 2010
(1)
September 2008
(1)
July 2008
(1)
June 2008
(1)
May 2008
(2)
February 2008
(1)
December 2007
(2)
October 2007
(2)
September 2007
(1)
July 2007
(1)
June 2007
(1)
May 2007
(2)
April 2007
(1)
February 2007
(2)
January 2007
(1)
December 2006
(1)
November 2006
(1)
September 2006
(1)
June 2006
(1)
May 2006
(4)
April 2006
(1)
March 2006
(1)
December 2005
(2)
November 2005
(1)
October 2005
(1)
September 2005
(13)
August 2005
(8)
July 2005
(6)
June 2005
(15)
May 2005
(8)
April 2005
(2)
September 2004
(1)
May 2004
(1)
January 2004
(1)
November 2003
(1)
October 2003
(3)
September 2003
(2)
August 2003
(2)
July 2003
(3)
June 2003
(5)
May 2003
(8)
April 2003
(6)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Adam Nathan's Old Blog
'Introducing' PINVOKE.NET and its Visual Studio Add-In!
Posted
over 9 years ago
by
Adam Nathan
79
Comments
I guess I'm not cut out to be a journalist. Two weeks ago when I decided to spend my weekend creating the PINVOKE.NET wiki, I had a great opportunity to awaken my blog from its deep slumber by announcing it to the world. But Ben , Brad , Brian...
Adam Nathan's Old Blog
GUID Generation and VB6 Binary Compatibility
Posted
over 10 years ago
by
Adam Nathan
54
Comments
When exposing managed types as COM types, your classes must have CLSIDs, your interfaces must have IIDs, and so on. System.Runtime.InteropServices provides a custom attribute (GuidAttribute) that enables you to be explicit about these GUIDs. But the CLR...
Adam Nathan's Old Blog
Tech License Plates
Posted
over 10 years ago
by
Adam Nathan
38
Comments
Many people know about Don 's infamous IUNKNWN and INFOSET license plates, but recently I've been noticing more technology-inspired license plates around town. Just the other day at the grocery store, I saw a car with a GUID license plate...
Adam Nathan's Old Blog
XAML Playing Cards
Posted
over 8 years ago
by
Adam Nathan
37
Comments
Looking at the card games that ship with Windows XP, I think one of the most obvious opportunities for improvement is the look & feel of the playing cards. These games use a shared library known as cards.dll to draw cards that look like... um... this...
Adam Nathan's Old Blog
Quiz: What's wrong with the following code?
Posted
over 10 years ago
by
Adam Nathan
36
Comments
The following C# code has the goal of enabling managed code to call CreateDC , but it's incorrect. Calling all Interop aficionados... Can you see what's wrong? using System; using System.Runtime.InteropServices; internal class DeviceContext...
Adam Nathan's Old Blog
Aero Glass inside a WPF Window
Posted
over 7 years ago
by
Adam Nathan
26
Comments
Recently Tim shared some code for extending Windows Vista Aero "Glass" inside a Windows Forms window . It sounds like he's eventually planning on showing this with WPF (among other things). I also looked into this for my upcoming WPF book, and I couldn...
Adam Nathan's Old Blog
This just in: .NET and COM is coming back in print!
Posted
over 7 years ago
by
Adam Nathan
23
Comments
A few months ago I mentioned that my .NET and COM book went out of print . Well, after getting regular streams of e-mail from people who still wanted to get a copy (which I forwarded on to the publisher), I can now happily say that they are planning to...
Adam Nathan's Old Blog
Announcing www.winfxhearts.com!
Posted
over 8 years ago
by
Adam Nathan
19
Comments
To correspond with my PDC talk about making an application "light up" on Windows Vista, I've created www.winfxhearts.com . This site has a ClickOnce link that enables you can play a version of my new & improved Internet Hearts game. Here's a "before...
Adam Nathan's Old Blog
Windows Vista: It's the little things...
Posted
over 8 years ago
by
Adam Nathan
18
Comments
…that make all the difference in the world to me. I've been using Beta 1 a lot recently, and although " most of the stuff that we would expect that tech enthusiasts and consumers will be interested in will happen at Beta 2 ," every once in awhile come...
Adam Nathan's Old Blog
The transformation of Jim Miller
Posted
over 8 years ago
by
Adam Nathan
16
Comments
Jim Miller, one of the CLR's brilliant architects, has been known to go months being clean shaven and go months being the exact opposite of clean shaven. He just switched modes again, and nobody at work recognizes him. He claims he did this because needed...
Adam Nathan's Old Blog
Introducing Customer Debug Probes and CLR SPY
Posted
over 10 years ago
by
Adam Nathan
16
Comments
Version 1.1 of the .NET Framework introduces a handy feature called Customer Debug Probes (CDP). These probes enable you to find and diagnose difficult bugs lurking in managed code, even in a production environment. I'll share the details of each probe...
Adam Nathan's Old Blog
CLR SPY and Customer Debug Probes: The Thread Changing Apartment State Probe
Posted
over 10 years ago
by
Adam Nathan
16
Comments
The last blog touched on apartment states of managed threads, which the CLR tracks for COM interoperability purposes. But if an application changes the apartment state of a thread being tracked by the CLR (via unmanaged code or direct calls to CoUninitialize...
Adam Nathan's Old Blog
CLR SPY: Feature requests for the next version
Posted
over 9 years ago
by
Adam Nathan
16
Comments
Now that I'm set up at my new blogging home, I'd like to get some feedback from anyone who has used the CLR SPY tool that I've uploaded to gotdotnet.com and blogged a lot about in the past. We're investigating shipping the tool in the .NET Framework...
Adam Nathan's Old Blog
Quiz: Searching in a managed array
Posted
over 10 years ago
by
Adam Nathan
15
Comments
Sorry for my recent lack of blogging. There's been a lot going on these days! As the banner on my blog now indicates, you'll be able to catch me at two upcoming conferences. As with TechEd in June, Sonja Keserovic and I will be giving an Interop presentation...
Adam Nathan's Old Blog
Suggestions for future CDPs?
Posted
over 10 years ago
by
Adam Nathan
15
Comments
In my next blog entry, I'll explain the 11th and final Customer Debug Probe (CDP) that exists in the v1.1 product. But for the next version of the product (code-named Whidbey), we're looking at adding additional probes, and not just in the area of Interop...
Adam Nathan's Old Blog
CLR SPY and Customer Debug Probes: The Object Not Kept Alive and Buffer Overrun Probes (A Quiz)
Posted
over 10 years ago
by
Adam Nathan
15
Comments
The Object Not Kept Alive and Buffer Overrun probes are unlike any other CDPs, because they do not output any messages to report bugs in your code. Instead, they change general CLR behavior with the goal of forcing non-deterministic bugs that can be almost...
Adam Nathan's Old Blog
Petzold vs. Nathan? Books Like PowerPoint Presentations? Books Like Blogs?
Posted
over 6 years ago
by
Adam Nathan
15
Comments
Last week a coworker brought this article by Jeff Atwood to my attention: Coding Horror: How Not To Write a Technical Book Of course, I'm flattered by what Jeff (and commenters) said, and I'm happy that he gave my book a chance (especially since...
Adam Nathan's Old Blog
Migrating Internet Hearts to WinFX
Posted
over 8 years ago
by
Adam Nathan
14
Comments
Last year, Chris Sells wrote a series of articles in which he set out to rewrite Solitaire using Avalon. The lack of scaling graphics in the Win32 version (and lack of access to its source code, I suppose) forced him down the road of rewriting the app...
Adam Nathan's Old Blog
Quiz: Gotcha with Exceptions and HRESULTs
Posted
over 10 years ago
by
Adam Nathan
12
Comments
The C# code below, when executed, prints the following: 0x80004002 0x80004002 Who can figure out why the second line printed isn't 0x80004003 ? using System; using System.Runtime.InteropServices; public class Quiz { const int...
Adam Nathan's Old Blog
Windows Vista: More little things in the December CTP
Posted
over 8 years ago
by
Adam Nathan
12
Comments
In August I mentioned some of the little improvements in Windows Vista Beta 1 that made using my computer more enjoyable . Now that I've installed the December CTP (released yesterday), here are some screenshots of a few new things that instantly jump...
Adam Nathan's Old Blog
WPF Book Update (and SD West 2006)
Posted
over 7 years ago
by
Adam Nathan
12
Comments
Long time no blog, but I’ve got a good excuse. Since my last post, I’ve become a father! This event, of course, made me seriously doubt (even more than usual) the wisdom of writing another book. Here's a quote from my wife: “You wrote a book during...
Adam Nathan's Old Blog
A new XAML wiki: XAMLshare.com
Posted
over 8 years ago
by
Adam Nathan
11
Comments
Could wikis be the solution to all the world's problems? Probably not, but I've created another one anyway. It's called XAMLshare . I'm starting to see folks share XAML samples on their blogs (myself included), and thought, "Wouldn't it be nice to...
Adam Nathan's Old Blog
Internet Hearts: Guess the LOC
Posted
over 8 years ago
by
Adam Nathan
11
Comments
TechEd made me gain about 5 pounds, and my bag somehow gained 20 pounds. (And I didn't get a single piece of swag from the Product Pavilion, I swear.) But I'm back in Redmond after a 24-hour journey from Orlando to Seattle, due to delays at Chicago O...
Adam Nathan's Old Blog
More code names disappear
Posted
over 8 years ago
by
Adam Nathan
11
Comments
In case you missed it, the official name for "Avalon" is Windows Presentation Foundation and the official name for "Indigo" is Windows Communication Foundation . Hmmm. I guess this is the answer for folks that felt the Vista name was too creative and...
Adam Nathan's Old Blog
Bizarre college flashback
Posted
over 8 years ago
by
Adam Nathan
10
Comments
Every once in awhile I come across a blog post that mentions my Interop book or pinvoke.net, but this one is a first: For some reason, someone who goes by " Benzado " recently found and linked to a so-called "artificial intelligence" CS project I did...
Page 1 of 5 (119 items)
1
2
3
4
5