visual-studio

Does the immediate window provide a nice way to display a primitive array?

I dynamically assigned an array as follows: unsigned char **nonces=new unsigned char*[n_cases] Is there a way to nicely print it out in the immediate window? Alternatively, it would be nice to make the locals window display it properly. ...

why ide remove my PNG picture resource in the resx file silently?

i created a A Form in the a.h and there generate one resx file correspondenly then i added some png pictures in a.resx file, but after sometime ,ide will remove my png files in the a.resx file ,that's so weird , it wasted me too much time ...

Tool Choice for WordPress Creation: Visual Studio or Webmatrix?

I would like to build my first Wordpress site as quickly as possible, but I happen to lean towards Microsoft products. I don't plan on touching code/PHP to build my Wordpress site, but I should mention that I am currently an expert C# developer in Visual Studio and have built ASP.NET 1.1 in the past. So should I go with Visual Studio 2...

Can make STL string::c_str() return NULL when it has no string?

My project has legacy library which consider NULL pointer as empty string. But when I get return data from std::wstring like this, std::wstring strData; const wchar* pStr = strData.c_str(); ASSERT(NULL == pStr); // ASSERT!! pStr is not NULL but pointer which wstring point. Can I make std::string return NULL when it has no string da...

Stop Visual Studio from mixing line endings in files

When opening a text based file in Visual Studio 2010 it will then write my edits with CRLF instead of the line ending format of the original file. How can I stop VS from doing this? Any half decent editor should have this capability. What's worse is that since VS wrote the file with portions in CRLF, it then (when opening the file again...

Which versions of ASP.NET gets installed with Visual Studio 2010?

Does Visual Studio 2010 install of ASP.NET 2.0, ASP.NET 3.5, and ASP.NET 4.0? Thanks in advance. ...

Visual Studio addin: how to add a control to a VS window?

Hi there, With my C# VS add-in how can I add a menu to the "Test Result" panel and hook the event handler up to code that displays a message box or writes to the output menu or anything really, just to get things started I can access the window with: Window win = _applicationObject.Windows.Item("Test Results"); But I don't know how ...

VS2010 loads slowly. Can I profile extensions' respective startup time?

Hello, I have a simple question. Is it possible to somehow get a log of what is taking so much time to load when starting VS2010? On a default install, starting the IDE is very quick (~1-2 s), but with a batch of extensions installed, the time taken for the IDE to launch is prohibitive of using it to "just have a peek at a file". I kno...

Can I selectively disable packages from loading into VS2010?

Hi, Continuation question from: http://stackoverflow.com/questions/3995253/vs2010-loads-slowly-can-i-profile-extensions-respective-startup-time After looking at the log file, it turns out there are a few packages that I'm not using much (I think): (load time) (package): (2s) (Microsoft.VisualStudio.TeamArchitect.DesignersCommon.Desig...

AnkhSVN: How to add files not under Solution to SVN? (VS 2010)

Hi there, just changed over form visualsvn to AnkhSVN. Loving it... but i need to add files and directory that are on my disk to SVN ... but the files and directory are not part the solutions (Vs2010) ... Its basically i directory where i store some dlls but if the directory is not present then i have missing references. Is this possib...

Why would I start a debug build without debugging?

Is there any benefit in starting a debug build without debugging (as opposed to a release build without debugging)? And what do I miss when I debug a release build (as opposed to debugging a debug build)? ...

Which version of Visual Studio do I use to develop Xbox 360 Indie Games with XNA? (App Hub)

I already had C# Express 2010 since I've worked with Windows Forms some, but I wanted to started messing around with games for 360. When I went here to download the free tool kit including XNA: http://create.msdn.com/en-us/home/getting_started the install came with Visual Studio C# Express 2010 for Windows Phone 7. They seem to be labe...

Parse text file and create an excel report

Hello, My application is supposed to parse a text file (relatively easy) and create an excel spreadsheet report. Should I write a stand alone VB.NET application that saves the excel file, or should I use VSTO? I am unsure if there are any differences in terms of ease of development, usability issues, API functions available, etc. Are...

What do question marks (???) in Visual Studio watch window signify?

I've run into an exception and looking at variables in the watch window, I'm seeing some question marks (???). Does this mean it's pointing to an invalid address? ...

Browsing 'Decorated Names' in Visual Studio

I'm working on a (rather horrible) project that involves importing a C++ class hierarchy through a dll interface. One of the more horrible details requires me know the 'decorated' names for the various class elements that are exposed - mostly member functions and static data. There are many ways to achieve this - the assembly listing o...

Why I lost input focus in visual studio 2005/2008

I wrote a Add-In for Visual Studio 2005/2008. It will prompt a window with some edit controls as child windows. But if open VS with a document and then open my Add-In, those child edit controls will lose input focus when type Tab/Delete/Backsapace/Ctrl-C etc. without any document and then open my Add-In, it is OK. I think I found th...

Visual Studio reformats my pre-formatted HTML

When I put text directly into a <pre> tag and press Ctrl+K, Ctrl+D, the whitespace is preserved. <pre> This whitespace gets preserved.</pre> But when I put text in a tag nested within a <pre> tag, the whitespace is not preserved. <pre><code>This whitespace doesn't get preserved.</code></pre> Only text directly w...

.NET, ASP.NET, SQL Server - Have interview - Looking for free online material

I have an interview with a test, and I need to fresh up ASP.NET/SQL Server/.NET - (which I mostly know well, though there is stuff I haven't done fore some time, and there are basic things I have never done). What I learn best from - and what is difficult to find with programming, is material organized like mathematics text, where you c...

Creating a simple multi-user desktop application

I'm working on a simple mark management system for a school department (let's assume it's the Maths department). They want a simple system for users to enter marks for each student as they progress, entering marks for each term, getting yearly averages, sorting by teacher, etc. Speaking to the person in-charge of the department, he said...

vs 2005 and .net 3.5

Can i use vs 2005 and .net 3.5 framework together or can i use linq with vs 2005? ...