Sign In
Junfeng Zhang's Windows Programming Notes
Win32, Fusion, CLR, .Net Framework, and others
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
.NetFramework
Debugging
Fusion
General
Others
Pages
Troubleshooting
Vista
Win32
Archive
Archives
July 2009
(1)
May 2009
(1)
March 2009
(1)
February 2009
(1)
December 2008
(2)
November 2008
(1)
August 2008
(2)
July 2008
(2)
June 2008
(2)
April 2008
(4)
March 2008
(2)
February 2008
(4)
January 2008
(1)
November 2007
(3)
October 2007
(1)
September 2007
(1)
August 2007
(5)
July 2007
(9)
June 2007
(3)
April 2007
(2)
March 2007
(3)
February 2007
(1)
January 2007
(2)
December 2006
(2)
November 2006
(4)
October 2006
(6)
September 2006
(5)
August 2006
(8)
July 2006
(2)
May 2006
(2)
April 2006
(12)
March 2006
(9)
February 2006
(5)
January 2006
(2)
December 2005
(10)
November 2005
(7)
October 2005
(2)
September 2005
(3)
August 2005
(1)
July 2005
(6)
June 2005
(8)
May 2005
(17)
April 2005
(9)
March 2005
(6)
February 2005
(9)
December 2004
(7)
November 2004
(12)
October 2004
(16)
September 2004
(16)
August 2004
(15)
July 2004
(10)
May 2004
(6)
April 2004
(14)
March 2004
(19)
February 2004
(39)
January 2004
(6)
March, 2004
MSDN Blogs
>
Junfeng Zhang's Windows Programming Notes
>
March, 2004
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Junfeng Zhang's Windows Programming Notes
Jim Hugunin: IronPython: A fast Python implementation for .NET and Mono
Posted
over 8 years ago
by
Junfeng Zhang
1
Comments
Jim Hungunin posted a paper about an implementation of Python for .Net IronPython: A fast Python implementation for .NET and Mono http://www.python.org/pycon/dc2004/papers/9/IronPython_PyCon2004.html In this paper, he started out trying to show...
Junfeng Zhang's Windows Programming Notes
Alan's rebuttal to Chris Sells' "Avoid the GAC"
Posted
over 8 years ago
by
Junfeng Zhang
0
Comments
Alan writes a blog to rebut Chris Sells' “ Avoid the GAC ”. Chris does have a point to avoid the GAC for casual application developers. The problem is he over-extended his argument to say GAC should be avoided for all the cases. Windows...
Junfeng Zhang's Windows Programming Notes
ngen app.exe asm1 asm2
Posted
over 8 years ago
by
Junfeng Zhang
0
Comments
This is a follow up of my previous post. Ngen.exe accepts options like “ngen app.exe asm1 asm2 ...”, where asm1/asm2 can be display name, or file path. If you use this syntax, ngen will compile all the assemblies in the context of app.exe...
Junfeng Zhang's Windows Programming Notes
JIT Compilation and Performance - To NGen or Not to NGen?
Posted
over 8 years ago
by
Junfeng Zhang
5
Comments
Jeffrey Richter is easily one of my favorite authors. His book “Programming Applications for Microsoft Windows” is still the most comprehensive Win32 programming guide book. And his book “Applied Microsoft .Net Framework programming”...
Junfeng Zhang's Windows Programming Notes
Lenovo wins Olympic Games deal
Posted
over 8 years ago
by
Junfeng Zhang
1
Comments
News coverage here: http://news.com.com/2100-1003_3-5180359.html?tag=nefd_top . For people don't know, Lenovo is the biggest computer OEM in China. Honestly, this is one of the few times I see a China company on main page of news.com.
Junfeng Zhang's Windows Programming Notes
The located assembly's manifest definition with name xxx.dll does not match the assembly reference
Posted
over 8 years ago
by
Junfeng Zhang
17
Comments
This is a very common Assembly.Load failure exception text. In fusion terminology, this is called Ref-Def-Mismatch. This exception is thrown when fusion finds an assembly that does not match what you are looking for. A very common mismatch is version...
Junfeng Zhang's Windows Programming Notes
Dating Design Patterns
Posted
over 8 years ago
by
Junfeng Zhang
3
Comments
http://www.datingdesignpatterns.com/
Junfeng Zhang's Windows Programming Notes
VS won't reference assemblies in GAC
Posted
over 8 years ago
by
Junfeng Zhang
3
Comments
This is by design. The reason is that assemblies installed in YOUR development machine is not necessary the same as what your application requires. Let VS to reference assemblies installed in your development machine is clearly not the right thing...
Junfeng Zhang's Windows Programming Notes
UCOMIStream interface
Posted
over 8 years ago
by
Junfeng Zhang
0
Comments
UCOMIStream interface is the managed definition for COM IStream interface. You can use it to interop with unmanaged IStream. It lives in System.Runtime.InteropServices namespace.
Junfeng Zhang's Windows Programming Notes
OpenThreadToken
Posted
over 8 years ago
by
Junfeng Zhang
0
Comments
OpenThreadToken returns an access token for the specific thread. OpenThreadToken will fail with ERROR_NO_TOKEN if the thread is not impersonated. If you want to get the thread token regardless if the thread is impersonated or not, you should catch...
Junfeng Zhang's Windows Programming Notes
MSDN newsgroups
Posted
over 8 years ago
by
Junfeng Zhang
1
Comments
MSDN has a web based news reader for all the microsoft public newsgroups at http://msdn.microsoft.com/newsgroups/ . It is mostly Javascript driven. So if you want to copy an URL for a post, you can't right click and choose “Copy ShortCut”...
Junfeng Zhang's Windows Programming Notes
Get HResult out of System.Exception class
Posted
over 8 years ago
by
Junfeng Zhang
0
Comments
System.Exception has a protected property HResult. To read the property, use System.Runtime.InteropServices.Marshal.GetHRForException().
Junfeng Zhang's Windows Programming Notes
Platform Invoke Resources
Posted
over 8 years ago
by
Junfeng Zhang
1
Comments
This is a post from CLR team to newsgroup microsoft.public.dotnet.framework.clr. "Jesse Kaplan" wrote in message news:404f59e4$1@news.microsoft.com ... > Platform Invoke Resources > > > > In our efforts to make the .Net platform continuously...
Junfeng Zhang's Windows Programming Notes
When an Assembly.Load is not really Assembly.Load
Posted
over 8 years ago
by
Junfeng Zhang
2
Comments
This is an interesting discovery I find when I was investigating a regression. The following code is really Assembly.LoadFrom AssemblyName assemName = new AssemblyName(); assemName.CodeBase = pathToAssembly; resultAssembly = Assembly.Load(assemName...
Junfeng Zhang's Windows Programming Notes
RuntimeEnvironment class
Posted
over 8 years ago
by
Junfeng Zhang
1
Comments
This is the first time I know this class exists. It has all the interesting properties about CLR, like runtime version, runtime directory, machine.config file path. Check it out. It is in System.Runtime.InteropServices namespace, weird place. No wonder...
Junfeng Zhang's Windows Programming Notes
Killing each other
Posted
over 8 years ago
by
Junfeng Zhang
2
Comments
SQL reliability requires CLR to fail gracefully in asynchronous exception case, like ThreadAbortException, meaning, CLR should not panic, and it should not leak any resource. ThreadAbortException can be raised by calling Thread.Abort() on the specific...
Junfeng Zhang's Windows Programming Notes
Assemblies, load context
Posted
over 8 years ago
by
Junfeng Zhang
3
Comments
David Levine asks me how to tell which load context an assembly is in. To my best knowledge, this information is not exposed in managed way. In fact, you don't even know whether an assembly has a context or not (Remember assemblies returned from Assembly...
Junfeng Zhang's Windows Programming Notes
hh ntcmds.chm
Posted
over 8 years ago
by
Junfeng Zhang
11
Comments
So we have a new hire, just graduated from grad school. Since he only uses *nix in school. He is kind of lost in windows's command prompt. What exactly can I do in windows command prompt? WindowsXP/Windows Server 2003 ships many many command line tools...
Junfeng Zhang's Windows Programming Notes
How to tell if a DLL is 64 bit or 32 bit
Posted
over 8 years ago
by
Junfeng Zhang
0
Comments
There are those little things, they are so trivial, but you just can't find the right API to do it. Now what? Well, let's use google for help. http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=How+to+tell+if+a+DLL+is+64+bit+or+32...
Page 1 of 1 (19 items)