Scott Hanselman

Version Independent ProgIDs in the .NET Framework and C#

June 11, 2004 Comment on this post [0] Posted in Programming
Sponsored By

Generating a Version Independent ProgID in a C# Component that is being exposed as COM is apparently tantamount to Voodoo.  Nothing has been written about it either in Google Groups or in Google proper.  Sam Gentile in his wisdom confirmed to me that there is no [VersionIndependentProgID] attribute or the like. 

So, sounds like I'll need it manually in my own "DllRegisterServer" functions:

[ComRegisterFunctionAttribute]
public static void myDllRegisterServer(string registrationLogic) {
   // perform my logic 
   Trace.WriteLine( "Registration is occuring ..." );

}

[ComUnregisterFunctionAttribute]
public static void myDllUnregisterServer(string registrationLogic) {
    // perform my logic
    Trace.WriteLine( "Dis-Un-registration is occuring ..." );
}

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

3D Graphics may NEVER achieve Human Realism? - The Masahiro Mori Uncanny Valley

June 10, 2004 Comment on this post [0] Posted in Gaming
Sponsored By

An interesting postulate, although the author forgets that there is a BIG difference in quality between the pre-rendered cut-scenes, and the in-game engine.  One day, we'll have pre-rendered quality in the game engine, and THAT will be the last 1%.

The screwiest part of this phenomenon is that game designers pride themselves on the quality of their sepulchral human characters. It's part of the malaise that currently affects game design, in which too many designers assume that crisper 3-D graphics will make a game better. That may be true when it comes to scenery, explosions, or fog. But with human faces and bodies, we're harder to fool. Neuroscientists argue that our brains have evolved specific mechanisms for face recognition, because being able to recognize something "wrong" in someone else's face has long been crucial to survival. If that's true, then game designers may never be able to capture that last 1 percent of realism. The more they plug away at it—the more high-resolution their human characters become—the deeper they'll trudge into the Uncanny Valley.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

Getting ready for Mono, and The Importance of Being (Using) Constant(s)'

June 10, 2004 Comment on this post [1] Posted in Programming
Sponsored By

I was poking around in the nGallery site and found these gems, as nGallery is (stunningly) Mono Compliant.  I thought that #1 really hit home when it comes to the importance of using such (often thought silly) things like System.Environment.NewLine and System.IO.Path.DirectorySeparatorChar.  If there's a constant in the Framework, it's usually there for a reason.

Rule #1:  Never, ever, ever use the \ to seperate directories when doing any file I/O. Instead, use the System.IO.Path.DirectorySeparatorChar constant. This translates directly over to the *nix world and makes for a smooth transition in Mono.

Rule #2:  Just as most of us have learned case sensitivity in .NET, carry this forward to your file I/O operations, again, and make sure all files and directories are case sensitive.

Rule #3:  Make sure you don't compile your assemblies with the /incremental flag. Mono can't support incremental compilation. For more details on what "incremental compilation". [Jason Alexander

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

XBox Live still working out the MSN Messenger integration details...

June 10, 2004 Comment on this post [0] Posted in XML | Gaming
Sponsored By

Caught this as it happened.  Looks like the new Xbox alerts are still getting their kinks worked out, as this Blue Toast Alert didn’t look the way someone intended. :)

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

Virtual Keyboard for PDAs and Laptops

June 10, 2004 Comment on this post [2] Posted in Musings
Sponsored By

Oh my, it's shipping (almost and finally)Photo of a laser creating an image of a Virtual Keyboard for use on a PDA (via Larkware)  But would I use it?  It's US$99, and they say it works with pretty much any PDA. 

But would it just collect dust?

You know why I'd get it?  To run with my TabletPC when it's in slate mode as a "Just-In-Time Keyboard.

This video I think says it all, it isn't fast enough for touch typists.  But, man you could sure impress J6P on airplanes.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

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