visual-studio

Execute Command Line In WiX Script?

How can I execute a command line from within a WiX script? I want to dynamically generate a command line string and have it executed. I'm not installing a file related to this. Using version 3.0.5419. ...

Visual Studio C++ exception... weirdness

Hi, I have a Qt application that I compile in release configuration, run, and then perform operation X in the program. Everything runs fine. I then compile it in debug configuration, run without debugging (so CTRL+F5), perform operation X in the program. Everything still runs dandy fine. But when I try to run the debug configuration w...

How do I convert my program to use C++ namespaces?

My code was working fine, until I tried to wrap all of my class definitions in a namespace. // "Player.h" #include "PhysicsObject.h" namespace MaelstromII { class Player : public MaelstromII::PhysicsObject { // ... }; } // "PhysicsObject.h" #include "GameObject.h" namespace MaelstromII { class PhysicsObject : pu...

Visual Studio/Excel Printer defintion

VS has started to reject this line oSheet.PageSetup.Orientation = Excel.XlPageOrientation.xlLandscape; at runtime. The reason seems to be that it is looking for a printer which is not connected. How do I make it look at the default printer? ...

Strange CSS behavior when running through VS Web Server vs IIS

So the question basically says it all -- I've got a site that looks one way when I run it locally through the visual studio web server (http://localhost:3452/) and on IIS7 (http://server/myproject/). At first I thought there was something wrong with my CSS that was not resolving properly, but I believe I've checked all of those things a...

Image wont draw to screen C++

I am following a tutorial. And I am trying to draw a .bmp file to the screen. It builds with no errors but no image appears. according to the book, I should see the image pop up in random places. Below is my code. The author doesnt recommend this technique for drawing objects, he is just doing for demostration. In case your wondering. ...

C# ASP.net MVC database questions

I am trying to develop a website with C# ASP.net MVC. It's my first time using Visual Studio, C# and ASP.net so I have lots to learn but so far so good. So far... I started a C# ASP.net MVC project and added a database by going to the Database Explorer and clicking "add connection". I then did some standard CRUD controllers and views. I...

intellisense for previously declared varibles and constants

I am using MSVS C++ Express 2008. Right now my intellisense only works for objects that have methods or arguments in a method. Is it possible to set it where it detects declared constants and varibles that are within scope. Thanks ...

How can I prevent Visual Studio 2005's "Clean" command from removing 3rd party binaries?

I have a Sitecore/ASP.NET projects that I'm developing. Today at some point I inadvertently hit the "Clean" option in the solution context menu. It took me a while to figure out why my site was hopelessly broken. Turns out Visual Studio went ahead and deleted several required assemblies from the \bin dir which are not part of my proje...

what does "generate method stub" mean in c#?

I'm trying to call a function, and VS gives me an error (red underline), and i have the option to "generate method stub". What is this? ...

How to include non-compiled content alongside a C# program published via Visual Studio

I'm trying to publish an XNA game through the Visual Studio Publish tool. The game uses some compiled and some non-compiled content. Basically, I have a level loaded in via XML serialization and a short video. These two files are essentially streamed in, so they aren't compiled. The publish tool includes the compiled content fine, but an...

visual studio sloution file for a website and root is not as i want it

okay...im really puzzled with this. I want to create a regular asp.net webforms website (nota web application project). i also want a solution file associated with the website which when double-clicked opens visual studio with the website loaded in solution explorer. i did this by creating a blank solution "project" then adding new web...

How to configure Visual Studio to show integers as decimals when debugging?

My Visual Studio 2008 debugger is showing integers as hexadecimals, how to correct that? ...

Hide an Icon from the Solution Explorer Window

I want to hide (or disable) for example the 'Refresh' icon in the Solution Explorer window Is it possible ? ...

Deploying Asp.Net MVC 2 /C# 4.0 application on IIS 6

Hi, I got a problem migrating from VS.Net 2008 / MVC 1 to VS.NET 2010 (+C# 4.0) / MVC 2 The web.config has been updated, the site runs well in Cassini, but my problem now is deploying on IIS 6. I updated the web site to run using ASP.Net 4, but whatever URL I try, I always have a 404 error. It's as if the routing was not taken into ac...

Add syntax coloring for new filetype in Visual Studio 6?

Is it possible to change the syntax coloring for a new file type (let's call it .XYZ files) in Visual Studio (VC++) 6, and if so, how? I see where you can edit the color for comments, numbers, operators, etc. in Tools/Options/Format, but it seems to apply only to known filetypes like .C, .H, .CPP, .HPP, etc. In this particular case, XY...

word document parsing after html conversion

I have used examples from threads here on how to open and convert word documents to html in order to parse them. I got it all working great using the office interop library but used an example word document with some text in it and it worked fine. Now with actual word documents that I need to parse that come in all types of formatting an...

loading images only works when executable is open

[Edit] Note: These projects are projects that I have copied and renamed. Not sure if that would have anything to do with it. I am using the directx sdk and just playing around with it. I was trying to blit a image on to the screen by loading a external file. For some reason it does not work when I build it and run in debug. But If I go ...

How can I determine the current exception in a catch (...) block?

Possible Duplicate: Determining exception type after the exception is caught? Following up on this question , I'd like to print out the current exception in a catch(...) block -- just for logging. One answer there says that there is no standard way of doing this, but I don't like taking no for an answer :-) current_exception...

Resharper Live Template Macro that changes variable name upon exit

I would like to create a Resharper Live Template that changes all spaces to underscores ind my "fact" Live template variable $testname$: <Fact()> _ Public Sub $testnames$() ' Arrange $END$ ' Act ' Assert End Sub I have this: [Macro("applyRegex", ShortDescription = "Run on {#0:variable}", LongDescription = "")] ...