Sign in
Developer Support Languages - VC++, C# and VB.NET
Welcome to Microsoft Developer Support, Languages team blog! You will find a lot of language related troubleshooting resources here.
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
.NET 4.5
.NET Troubleshooting
.NET/COM Interop
/Stack
AlwaysCreate
ARM
ATL
Authenticode
autoexp.dat
CRT
Custom Configuration File
Debugging
Dump Analysis
Editbin
Exceptions
Feature Pack
fusion
MFC
MSBuild
PInvoke
SxS
VC++
VS2008
VS2010
VS2010 debugging
Archive
Archives
March 2013
(5)
February 2013
(1)
January 2013
(1)
December 2012
(3)
October 2012
(5)
July 2012
(1)
June 2012
(1)
May 2012
(1)
March 2012
(3)
February 2012
(2)
January 2012
(1)
July 2010
(2)
June 2010
(2)
May 2010
(2)
March 2010
(1)
February 2010
(2)
January 2010
(1)
December 2009
(3)
November 2009
(1)
September 2009
(2)
July 2009
(1)
June 2009
(5)
February 2009
(5)
January 2009
(2)
November 2008
(2)
September 2008
(1)
August 2008
(2)
June 2008
(4)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Developer Support Languages - VC++, C# and VB.NET
Targeting the .NET 2 Framework when using AssemblyBuilder under .NET 4
Posted
over 3 years ago
by
Steve Horne
1
Comments
When you use the Reflection.Emit classes to generate a dynamic assembly, the targeted framework for the assembly will be the version of the framework under which you are running the code that generates the dynamic assembly. For instance, you can create...
Developer Support Languages - VC++, C# and VB.NET
C++ class data members not getting correctly initialized due to unbalanced #pragma pack alignment
Posted
over 3 years ago
by
Gaurav Patole
0
Comments
Sometime back we saw an odd behavior in which C++ class data members were not getting correctly initialized due to memory corruption. It was discovered that this memory corruption was due to an unbalanced #pragma pack data alignment. In our case, this...
Developer Support Languages - VC++, C# and VB.NET
VS2010 : Unable to Hit Breakpoints in Managed Code
Posted
over 3 years ago
by
Steve Horne
5
Comments
In Visual Studio 2010, if you are debugging a native executable which in turn loads a managed DLL built against a version of the framework previous to version 4, you may find that breakpoints which are set in the managed code are not hit. The breakpoints...
Developer Support Languages - VC++, C# and VB.NET
The "GenerateResource" Task Failed Unexpectedly : Unable to load FileTracker.dll
Posted
over 3 years ago
by
Steve Horne
7
Comments
When building a project in Visual Studio 2010 that contains a .resx file, you may receive the following build error: The "GenerateResource" task failed unexpectedly. System.DllNotFoundException: Unable to load DLL 'FileTracker.dll': A dynamic link...
Developer Support Languages - VC++, C# and VB.NET
Why do we get System.InvalidCastException when we read through custom Configuration file?
Posted
over 3 years ago
by
ganeshatmicrosoft
0
Comments
A developer’s life becomes a lot easier by using configuration files. Configuration files, being XML files, can be changed as needed and developers can use configuration files to change settings without recompiling applications. Administrators can use...
Developer Support Languages - VC++, C# and VB.NET
IntelliTrace
Posted
over 3 years ago
by
mjawa
0
Comments
1. Introduction 2. How it works : a. Events and Call Information b. Recordings - iTrace file c. Capturing Events d. Specify modules e. Intellitrace Window f. Navigation Bar g. Running the trace file 3. Tips...
Developer Support Languages - VC++, C# and VB.NET
Adding a Configuration file for a VC++ DLL
Posted
over 3 years ago
by
mjawa
1
Comments
Background A VC++ application will fail to run if the required Visual C++ runtime libraries are not present on the target operating system (machine). It’s the manifest of the executable used by the operating system loader to load assemblies that...
Developer Support Languages - VC++, C# and VB.NET
MFC Feature pack and desktop composition issue
Posted
over 3 years ago
by
ganeshatmicrosoft
0
Comments
MFC Feature pack application makes it possible to mimic the look and feel of office and outlook, however, when it comes to customization, well, one has to make a few changes to the application to get the desired result. Problem I came across...
Developer Support Languages - VC++, C# and VB.NET
Removing the Frame Caption when Using CMFCVisualManagerOffice2007
Posted
over 3 years ago
by
ScotBren
5
Comments
When BCGSoft created the classes that Microsoft incorporated as the “MFC Feature Pack” in VS 2008 (and included in SP1), it seems their primary intent was to provide a nearly hands-free implementation of several popularly-requested user interface features...
Developer Support Languages - VC++, C# and VB.NET
Investigating a GSCookie Corruption
Posted
over 4 years ago
by
mjawa
0
Comments
GSCookie helps in finding buffer overrun cases on the stack and terminates the application when this is detected. In the .NET environment this would happen when calling into a native function when the function overrides the buffer on the stack corrupting...
Developer Support Languages - VC++, C# and VB.NET
Troubleshooting MFC state related issues
Posted
over 4 years ago
by
mjawa
1
Comments
In this article we will be talking about MFC Module state and Thread state , and how do we troubleshoot issues related to Module state mismatch. Why MFC dll does needs a module-specific state? Well reason is MFC is a shared dll, it needs to be shared...
Developer Support Languages - VC++, C# and VB.NET
The Cup-Stacker Prince (Multi-threading Made Easy, and a little bit strange)
Posted
over 4 years ago
by
rlacas
0
Comments
Computers are not intuitive; they can predict the future perhaps, but they cannot paint magic doors through the boundaries of traditional logic - at least not yet. Imagine, if you will, a cup-stacking champion during his or her early life. How does one...
Developer Support Languages - VC++, C# and VB.NET
P/Invoke Marshal.StructuretoPtr
Posted
over 4 years ago
by
mjawa
5
Comments
In this blog I am going to talk about Marshal.StructuretoPtr , especially its last parameter fDeleteOld. Although its msdn description is pretty concise but I have seen it to be a source of confusion a lot of times. Following is what it says: fDeleteOld...
Developer Support Languages - VC++, C# and VB.NET
.NET-BroadcastEventWindow causing BOOTUP_EXCEPTION_COMPLUS during application shutdown
Posted
over 4 years ago
by
chancha
2
Comments
This is one of the interesting scenario in which an unmanaged application built with Non-Microsoft technology was crashing during application shutdown with BOOTUP_EXCEPTION_COMPLUS exception (c0020001). This unmanaged application happened to be using...
Developer Support Languages - VC++, C# and VB.NET
FAQ: MS09-035 ATL Security Update For Visual Studio 2003/2005 SP1/2008 RTM/2008 SP1
Posted
over 4 years ago
by
Ravi Avanaganti
2
Comments
1. How do I know which dll/control needs to be rebuilt? Please check the guidelines to understand if your dll/control could be affected or not. Installing the Visual Studio ATL Security patch and rebuilding the binaries alone will not mitigate the...
Developer Support Languages - VC++, C# and VB.NET
How to handle chevron button using CToolBarCtrl object?
Posted
over 4 years ago
by
Ravi Avanaganti
2
Comments
Most of the developers work with CToolBarCtrl but they get stuck when it comes to display chevron button. This article is all about how to get chevron button displayed on CToolBarCtrl control while resizing its content window. There is a good MSDN...
Developer Support Languages - VC++, C# and VB.NET
VC++ Intellisense
Posted
over 4 years ago
by
Prabhatyash
0
Comments
Internal Mechanism Internally the Visual Studio IDE interacts with editor and the language parsers to create a list of tokens that are updated frequently. In this process the background threads continuously update the Intellisense database. The priority...
Developer Support Languages - VC++, C# and VB.NET
Floating point exception in managed code results in Access Violation crash
Posted
over 4 years ago
by
Bhupendra
0
Comments
Suppose you are calling some native code from your managed code, and you observe an Access Violation crash soon after returning from the native code inside your managed code. if you run the application inside the Visual Studio debugger you will see the...
Developer Support Languages - VC++, C# and VB.NET
Troubleshooting PInvoke Related Issues
Posted
over 4 years ago
by
Jyoti Patel
12
Comments
I am back with some more PInvoke Stuff. Recently I was working on a PInvoke issue which I found interesting. I have a C++ dll which has a function whose signature is int TestFunc(IN_STRUCT in_Params, RET_STRUCT * pret_Par). I wanted to call this...
Developer Support Languages - VC++, C# and VB.NET
Why AfxGetThread() returns NULL in AfxWinMain()?
Posted
over 4 years ago
by
Gaurav Patole
2
Comments
Recently I worked with one of my colleague on an interesting scenario in which the MFC application was crashing on startup. The next step was to run the application under WinDbg. After running the application under WinDbg we saw that we are actually access...
Developer Support Languages - VC++, C# and VB.NET
Troubleshooting "Not a valid win32 Application" error at the startup.
Posted
over 4 years ago
by
Ravi Kumar
1
Comments
Recently, we came across a very interesting issue. A purely native application written in C++ was failing with "Not a valid win32 application" error at the startup on Windows XP machine. There are a few basic checks that we do to troubleshoot this...
Developer Support Languages - VC++, C# and VB.NET
Porting C++ native code to managed (/clr) - Threads
Posted
over 4 years ago
by
mjawa
1
Comments
In native world, one interacts with OS directly by calling Win32 APIs for managing resources (like allocating/deallocating memory,opening/closing handles). In managed world one relies on CLR totally or at times partially for doing the same( eg GC does...
Developer Support Languages - VC++, C# and VB.NET
Marshalling Complicated Structures using PInvoke
Posted
over 4 years ago
by
Jyoti Patel
1
Comments
This article talks about marshaling structures using PInvoke which has a pointer to an array of another structure as a member. When calling native functions in a managed application, a frequent question that comes to mind is how to marshal a nested...
Developer Support Languages - VC++, C# and VB.NET
Troubleshooting Manifest-Related Issues
Posted
over 4 years ago
by
Jyoti Patel
8
Comments
After migrating to Visual Studio 2008 SP1 and building the application, the manifest file of application and all the dependent DLL’s contain RTM version. In Visual Studio 2008 SP1, by design, the manifest for the created exe links it to the RTM version...
Developer Support Languages - VC++, C# and VB.NET
Sort function of STL Gives Unexpected Output when Vector is a Type Derived from _com_ptr_t
Posted
over 4 years ago
by
Jyoti Patel
2
Comments
C++ code which contains an STL vector containing types derived from the_com_ptr_t COM smart pointer class and using the std:sort() function to sort interface pointers may give unexpected sort output._com_ptr_t COM smart pointer derived types are commonly...
Page 2 of 3 (62 items)
1
2
3