Welcome to MSDN Blogs Sign in | Join | Help

April 2004 - Posts

Arrays and SOS

Looking at arrays with SOS on WinDBG is not exactly the most intuitive process in the world. In order to demonstrate how to do this, I've written a small sample program that I'm going to “debug”. The code simply creates three arrays: string
Posted by shawnfa | 4 Comments

Writing Managed Code With VC++ 2005

There's been a few articles around lately on the new syntax for Managed C++ that's in VC++ 2005. MSDN had an article in the May magazine by Stephen Toub, Write Faster Code with the Modern Language Features of Visual C++ 2005 , which focuses on many new
Posted by shawnfa | 0 Comments

xml:id and SignedXml

A few weeks back, I posted about customizing how SignedXml searches for XML elements identified by a reference to an ID. By default, SignedXml searches for elements with an attribute named Id that has the given value. Recently, the W3C has come up with
Posted by shawnfa | 4 Comments
Filed under: , ,

Why Doesn't .NET Support Deterministic Finalization?

This email from Brian Harry has been making the rounds again lately. It's a pretty in depth talk about the reasons why .NET doesn't support deterministic finalization, including the history behind it. I found it a pretty interesting read. The mail's a
Posted by shawnfa | 1 Comments
Filed under:

ClickOnce Overview in May's MSDN Magazine

ClickOnce made the cover of the May 2004 issue of MSDN Magazine . (OK, yes, it was just a little blurb at the bottom of the cover, but that still counts!). Bryan Noyes gives a nice general overview of what you can do with ClickOnce in the article , and
Posted by shawnfa | 0 Comments
Filed under:

Customizable CAS Defaults

One of the nicer new Whidbey features, at least from an admin standpoint, is the ability to customize the default CAS settings. On v1.0 and 1.1 of the framework running caspol -all -reset resulted in the security policy being reset to hardcoded defaults.
Posted by shawnfa | 3 Comments
Filed under: , ,

P/Invoke Wiki

Adam Nathan , who you may recognize as being the author of .NET and COM: The Complete Interoperability Guide , has started up a Wiki on P/Invoke . You'll find lots of P/Invoke definitions, along with recommend managed alternatives and gotchyas there.
Posted by shawnfa | 2 Comments

New VC++ Toolkit 2003

The Visual C++ team has released the Visual C++ Toolkit 2003 , which includes the full optimizing C++ compiler found in VC++ 2003 professional. It also includes the STL, standard C library, and some samples. Definately worth checking out if you're in
Posted by shawnfa | 0 Comments

Signing Assemblies With C# in Whidbey

You may be in for a surprise when you try to rebuild your strongly named assemblies written in C# under Whidbey for the first time. If you're using the AssemblyKeyFile attribute, you'll get a warning similar to this: signed.cs(4,11): warning CS1699: Use
Posted by shawnfa | 16 Comments
Filed under: ,

Generating a Key from a Password

If you're trying to encrypt data using a password, how do you convert the password into a key for symmetric encryption? The easiest way might be to simply convert the password to a byte array, and use this array as your key. However, this is a very bad
Posted by shawnfa | 29 Comments
Filed under:

Ivan Writes about Strong Name Signing with Smart Cards

Ivan's written a new article , showing how to use keys stored on a smart card to strong name sign an assembly. Worth a read if you've ever wondered how this might be done, or wanted a more secure method than using .snk files.
Posted by shawnfa | 0 Comments

Whidbey's Secure CRT

One of the features that the Whidbey release of Visual C++ is going to bring is the new Secure CRT. The C++ library team has put a lot of work into creating safe alternatives to the old C runtime library functions that seem to always be behind security
Posted by shawnfa | 8 Comments
Filed under:

Using XPath to Sign Specific XML

In my last posting , I promised to write about a more general purpose way of selecting specific XML to sign. Although the technique I presented in the last post will work, it requires a custom class derived from SignedXml, and will not work unless both
Posted by shawnfa | 13 Comments
Filed under: , ,

Searching for Custom ID Tags With Signed XML

Last week, I blogged about using references to sign only specific parts of an XML document. The biggest limitation with doing this is that you must refer to the nodes that are being signed by ID, which for v1.1 and 1.0 of the framework was given by an
Posted by shawnfa | 16 Comments
Filed under: , ,
 
Page view tracker