DragDrop registration did not succeed

System.InvalidOperationException: DragDrop registration did not succeed. ---> System.Threading.ThreadStateException: What does this exception mean? I get it at this line trying to add a panel...

Can I separate a big dll into 1 dll per class?

From Can I build 2 or more dlls from C# project in Visual Studio 2008?, I have another idea to create only 1 big project. After that, I separate a project dll(that contains many classes.) into 1...

How do I decide whether to use ATL, MFC, Win32 or CLR for a new C++ project?

I'm just starting my first C++ project. I'm using Visual Studio 2008. It's a single-form Windows application that accesses a couple of databases and initiates a WebSphere MQ transaction. I...

How to debug heap corruption errors?

I am debugging a (native) multi-threaded C++ application under Visual Studio 2008. On seemingly random occasions, I get a "Windows has triggered a break point..." error with a note that this...

class name and method name dropdown list is missing (visual studio setting)

Does anyone know how to get my class name and method name dropdown lists again? It's the dropdown lists that are usually above the code. It's just a setting but i can't seem to find it. I don't...

Should a Visual Studio project be contained in more than one solution?

Note: This is for a shop that works in C++, C++/CLI, and C# with some products being delivered as a combination of all three. We currently have a rule that a project should have one and only one...

How can I use PowerShell with the Visual Studio Command Prompt?

I've been using Beta 2 for a while now and it's been driving me nuts that I have to punt to cmd.exe when running the Visual Studio 2010 Command Prompt. I used to have a nice vsvars2008.ps1...

How to make your MFC application bypass UAC in windows7 and Vista

I have an MFC application developed in VS Studio 2008 which reads and writes to a JSON file in its installation folder. It works perfectly in vista(administrator) BUT ONLY when UAC is turned off....

publishing asp.net website give "Object reference not set to an instance of an object." error

I am getting fed up with this error. I have search all over the web and tried every possible suggestion to this error I could find. delete app_code, build, add files back, publish. (did not...

can not find C/C++ in project properties

I am following a tutorial and one of the steps its asking is to go to my projects properties and click on c/c++ and add a path to "Additional Include Directories" property. I am using visual C++...

Reference DLL file not copying to bin with deployment project, causing error

We have several external DLL files being referenced in our Web Application Project. We have a deployment project for installing on the hosting servers. When we were using .NET 3.5 and...

ClickOnce Error: The deployment identity does not match the subscription

I'm using Visual Studio 2008 SP1. I have a Windows Forms application deployed internally using ClickOnce in a shared folder on the local network. The test certificate pfx expires in 2035. I have...

ASP.NET Decimal.Parse()

I have problem in webpage , Visual Studio claims that problem is with this line decimal newAmount = PLNamount * Decimal.Parse(item.Value);. The solution is crushed when I choose the Current (web...

How to fix "Root element is missing." when doing a Visual Studio (VS) Build?

How to fix "Root element is missing." when doing a Visual Studio (VS) Build? Any idea what file I should look at in my solution? Actually, I am getting this error message inside of "Visual Build...

mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file ... Access is denied

I often have this problem even when I build a new C++ project and try to build a release file. I use Visual studio 2008. One thing that may cause this problem is my code is saved on the server...

Visual Studio 2010 SQL Server 2008 Database Project - Custom Updates

In Visual Studio, say you've got a SQL 2008 Database Project and you add a non-nullable column to a table. When you go to deploy the database now, if that table has data in it it should fail....

How to refresh picture control in MFC vs2008

I an a newbie in VC++ and MFC. I am tried to display picture in picture control. The only problem is the control doesn't refresh while I reload another picture. How can I force the picture control...

Application Crashes on Thread Exit - C++

My application is crashing when it exits the thread function. This is how my thread is initialized: LPTHREAD_START_ROUTINE pThreadStart = (LPTHREAD_START_ROUTINE)NotifyWindowThreadFn; void *...

How to debug exception on other thread?

(VS 2008) I have a lot of shortlived threads that updates my program, by events fired from a socket connection. My problem is I don't know how to debug this, like how to get the proper information...

How to check the version compatibility of an exe?

How to compare the version of an application in server and the application installed in client machine?

How to debug/fix an access violation (Heap Corruption)

My app crashes (repeatably) after I have moved from VS2005 to VS2008 (win32). If I step in the debugger, I get: Access violation reading location 0x00000014 Firstly, I see that the class object...

Automatically starting a service when the installer finishes

Possible Duplicate: How to automatically start your service after install? I have a Visual Studio 2008 C# .NET 3.5 service installer project (MSI) running on Windows 7 x64. I subscribe to the...

Visual Studio popup: "the operation could not be completed"

When I try to open a project, local or on a Team Foundation Server (TFS), I get a modal window telling me that: The operation could not be completed: Unspecified error Or the same message, but...

LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup

I have the following error: LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup There are a lot of threads relating to this error, but none of those solutions...

Visual Studio 2012 warning MSB3026: Could not copy DLL files

I keep getting: warning MSB3026: Could not copy dlls errors. I have several projects in the solution. On build, I also get the error: Error 47 Could not copy "myapp\bin\Debug*.dll" to...

Prevent my Win32 application's UI elements from being scaled up when high DPI is set

When windows is set to "resize text to "125%", my Win32 application has its UI (but not its window size) scaled up. This causes text strings to be cut off and UI elements to disappear off the edge...

VS2008: "Resource file opened in another editor"

But it's a lie! Good day to all! I have the following problem: when I try to open the resource file PriceCalculationUI.rc Visual Studio 2008 tells me that the file is opened in another editor (in...

How to open Visual Studio exe's(VS2008,VS2010,VS2012,VS2013) with some projects by programming in c#?

Now i am creating one test studio in c# to check my projects are build succeeded in all versions(2008,2010,2012,2013). By this studio. if i click VS2008 button means, it will open VS2008 exe with...

SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. Runs fine on BIDS and cmd but fails on API call

I have an SSIS package which reads an Excel File (Data Flow Source) on my local system and transfer the data to SQL Server local database using OLEDB Destination Data Flow Item, with a derived...

WPF MVVM Binding Window Icon to a property in view model

I have a WPF MVVM application. In my project properties I have set the icon in "Application" tab. I am trying to unify the way the Window Icon is obtained from different places in my entire...