visual-studio

Printing Hex Floating Point Constants from Array of Bytes

How can a hexadecimal floating point constant, as specified in C99, be printed from a array of bytes representing the machine representation of a floating point value? e.g. given union u_double { double dbl; char data[sizeof(double)]; }; An example hexadecimal floating point constant is a string of the form 0x1.FFFFFEp1...

FindControl issue

I created a row (header row) in a gridview with a dropdownlist among other input controls. I also put a button on that row (fltbttn-see below). I created an addhandler for the button called fltbttn_Click. I want gain access to my dropdownlist (ddlscantype) using findcontrol but how can I get to the header row where the filter controls ex...

Can I run a VBScript script from inside Visual Studio 2008?

I'm writing pop-up's for a website (please don't get angry. It's an internal application that shows energy usage for different buildings and the specification is to alert the users every time they log on) and I have a VBScript script that will run at the end of the a Windows user's logon script. Is there a command to run the script from...

Visual Studio Setup Project failing to add keys to registry

Hello, I'm creating a setup pacakage in Visual Studio 2008 to register a COM component and one of the actions is to add a few keys to the registry. The odd thing about it is when I run the installer it creates the key hierarchy correctly but the last key in the hierarchy it creates has the wrong GUID... whereas its right in the installe...

Linker options to prevent "Program too big to fit in memory"

I am using Microsoft Visual Studio 2008, and successfully building a command-line program in C++. However, for my automated build I call cl.exe and link.exe outside the context of MSVC (I build using Maven Native, as most of the project is Java). In that case, I manage to generate my executable. But when I execute it, I get the message...

MSBuild - Project Templates - For non-.NET projects in VS2008

How would you got about setting up a project that doesn't really build, but just runs some commands on the files you are working with. For example, lets say I wanted to setup a project for creating Windows Vista and Windows 7 gadgets. A gadget is nothing more than some html, images, javascript, xml, css, put into a .zip file and then r...

HELP!!! Visual Studio Runtime error

...

Building a library with Visual Studio that can be linked to a Qt project?

Right now I have some libraries that link easily to Visual Studio projects but I can't figure out how to link them with Qt. My idea is to write a VS project that wraps the functionality I need from the libraries, then compile that to a library which can be linked to Qt. From my understanding, VS and Qt use compilers that create incompa...

how to send request through web service proxy as a single packet (don't chunk)

Hello, I'm trying to utilize a web service through C#. In the web service documentation it states that the web service only accepts requests as a single packet/stream and not multiple packets. Does anyone know how to change this setting when accessing the web service through a web reference in Visual Studio? I am getting a SOAPExceptio...

What's the difference between debugging Local IIS and Custom Web server?

In Visual Web Developer Express 2008: I would like to know the difference between debugging with: Use local IIS web server and Use Custom web server I'm using IIS7 on windows vista and the only difference I've noticed is that you need the IIS6 compatibility component for Local IIS and, more importantly, that debugging with Local II...

Passing command line arguments to C# projects, from devenv, while building a vdproj

We have a vdproj (Visual Studio Setup File) which references and builds some C# projects. In our build system, we would like to override some properties in the C# projects, when the vdproj gets built. Is there any way to do achieve this? ...

Alias and namespace conflict in Visual Studio Designer

I have a namespace conflict between two referenced assemblies: i.e., I'm referencing Foo.A.Foo and Foo.Bar, so when I say I want Foo.Bar.Control, VS is trying to find Foo.A.Foo.Bar.Control I can twiddle the Designer.cs code by adding new global:Foo.Bar.Control(), but as soon as I change anything, VS switches back. I know there's somet...

VS2008: How do I make symbols defined in stdafx.h visible to the resource compiler?

I am working on a VC++ project under VS2008. My resource files contain some pre-processor directives for conditional compilation. Some of the symbols controlling the conditional compilation are defined in stdafx.h. I need these symbols to be visible to the resource compiler as well. How do I make this happen? ...

How can I supress static code analysis during build?

We have a solution with 15 projects, which all has code analysis enabled. The solution easily takes 60+ seconds to build, which is a very long time when sitting waiting. If I disable code analysis it builds in 10 sesonds. I would love to be able to disable code analysis on an ad-hoc basis. But still I want code analysis when building ...

Is it possible to deploy a Web Part from Visual Studio 2008 to a (virtual) MOSS 2007 server on my network?

Hi SO: I have a virtual machine running windows 2003 server running MOSS 2007. This virtual machine is not being run on my dev machine, but on a different machine on the network. I can ping both the host and guest OS from my dev machine. I just need to know, if it is possible, how to configure visual studio 2008 to deploy the web parts/...

What is the downside to using the Visual Studio Express Editions?

I'm developing an application using Visual C# Express Edition - what is the downside to using the express editions? Are there any limitations on what I can build and release? Will my users be able to tell I'm using the Express Edition? ...

VS project unload and reload

My solution is way too big, and when I work on a specific feature, I am unloading un-needed projects to speed up the compilation process. However, when I need to reload everything back in the solution, it literally takes ages. I once waited around 2 hours for it. I think that was for about 40 projects. Why does it take that long? Is ther...

printing long compilation lines with MS NMAKE

I have a legacy MS NMAKE Makefile I need to fix a few bugs in. There are some very long command lines I wish to debug that are being executed using the following NMAKE trick dep: cmd @<<tmpfilename cmd_args.. << When changing the line to dep: echo cmd @<<tmpfilename cmd_args.. << NMAKE complains that the line is too long....

HTTP 401 Unauthorized System.Web.Services

I am trying to access a Project Server 2007 web service. I am working on a Windows 2003 server with IIS 6.0 installed. When I try to connect to the webservice after adding a web reference to my VS2005 code I get HTTP 401 Unauthorized error. I have tried the following things and yet am unable to connect. Please let me know if you can ...

How can I customize my Visual Studio panels to take less screenspace?

I'm using VS 2008 and I notice a lot of wasted screenspace, such as the Error List upgrade I propose below. Is there any way to change the way panels are rendered to make them smaller? Or maybe some addon to VS that does what it does but with compacted panels. Current Error List - Only 2 errors visible Future - 6 errors visible in s...