visual-studio-2005

C++ Multiply defined symbols using a header defined template class.

I'm working on a project with a DLL and an EXE in visual studio 2005. Amongst the code for the DLL is a template for a growable array class: template <class Type> class GArray { Type *p; uint32 len; uint32 alloc; protected: bool fixed; public: /// Constructor GArray(int PreAlloc = 0) { p = 0; len = 0; fixed = false; al...

A project with output type of class library cannot be started directly - with a startup exe

Firstly I'm completely aware of this message and why it happens normally. It's not that I'm just trying to run a dll (like this question). I have a project that compiles to a dll but has a startup program specified in the project properties. Most of the time I'm able to right-click on the project and select Debug > Start new instance, a...

DataSetVisualizer & Remote Debugging in Visual Studio

We use Lab Manager to test on multiple platforms and do remote debugging by creating a Windows account with the same name and password on both the local dev box and the VM in Lab Manager (causes the VS debugger to think that the same account is being used on both boxes so it allows the debug server to be seen on the dev box). Then we run...

My Visual Studio takes All integer, long variable value as hexadecimal

Hi, I have a problem regarding my visual studio 2005. I initialized an integer variable and attach debugger to it to check its value at run time. When I run the application, the value of variable it shows is hexadecimal equivalent to value initialized. How can change it to show in decimal? Thank you ...

What does the suffix #DEN mean on the value of a variable

When debugging in VS2005 I have a float in the Locals window whose values is: 1.744e-039#DEN What does the #DEN signify/stand for? ...

visual studio and shared memory

The project that i am right now handling is based on Interprocess Communication. And am using Shared memory concept for this interprocess communication. There are few files tat i need when i use shared memory concept for example sys/ipc.h, sys/shm.h Are these files a part of visual studio insatallation or it is something that i hav to...

VS2005 Winforms Designer Exception Screen and IE8

It seems since I installed Internet Explorer V8 that my Winforms Designer Exception screen (WSOD) is broken. Where before I would get red text with the error described, today I get this: Can anyone suggest to me a way to recover the text view of this display, I'm wasting time trying to read the reason the Winform file won't display ...

Difference between ClientCredentialType=Windows and =Ntlm

Can anyone give a clear explanation of the difference between using clientCredentialType=Windows and =Ntlm in a server-side Web.config when hosting a WCF service? I have a SOAP 1.1 (basicHttpBinding) service for interop with existing clients. It uses ASP.NET roles so needs clients to be authenticat...

MS compiler optimization that replaces variables in a function?

I'm not sure how to explain the behavior I'm seeing, but here goes. I have a function foo that takes three parameters, a pointer, an int, and another pointer. When I break-point inside foo, I can clearly see that all the variables are the values they should be. However, when I step down beyond the local variable declarations, one of t...

Create ASP.net website with silverlight controls in Visual Studio 2005

I am having only Visual Studio 2005. Is it possible to create asp.net website with silverlight controls in Visual Studio 2005. If yes what are the things I need to install and provide the samples. ...

Chained application installation

HI, I am using visual studio for creating a msi file for my application. It checks whether .net 2.0 is present in the system or not. If it is not present the installation aborts. I need to install .net 2.0 if it is not present and continue with the application installation and not to abort the installation. How can this be achieved in ...

meta tags in web page in visual studio 2005

In visual studio 2003 meta tags are listed in the head section itself. Where can I find the meta tags in an aspx page in visual studio 2005? Also is it possible to change the html parser in visual studio 2003 to XHTML parser as in visual studio 2005. ...

Problem linking when using stl in VS2005

I just added STL usage to some code, and I'm getting this link error: error LNK2019: unresolved external symbol "public: __thiscall std::_Lockit::~_Lockit(void)" I must be missing something in the link, I've done this before - and googling has not helped so far. hmm...... Here's the code snippet: #pragma once #include "Observer.h" #i...

Select .NET Framework to Use In Visual Studio Application

If I have different .NET frameworks installed on my machine (i.e. 1.1, 2.0. 3.0, 3.5), is it possible for VS2005 to select with which framework to create / compile an application (Winform/Webform)? ...

One executable that starts as gui application or console application based on command line in VS2005

I have a qt application in VS2005 which is linked using \subsystem:windows such that when I run the compiled executable it does not create a command line terminal, as well. I would like to create a command line mode: when I start it with --nogui command line argument, then the gui is not presented but a simple command line program is ru...

Why does VS2005/VB.NET implement the IDisposable interface with a Dispose(disposing as boolean) overload?

Recently I needed to compare a suggested pattern for IDisposable and object finalization with the auto-generated one we which VS2005/VB.NET provide. We have used the auto-generated one a fair bit, but after looking it the two side by side I had a number of questions about the VB.NET implementation... For reference, here is the IDE's im...

Visual Studio 2005 Build Order

I have a Web Application. Sometimes I want to debug a console app that is within the solution. Why is it that when I right click on it and select debug, it builds every single webpage and libraries, which takes a while. When I look at build dependencies for the console app, it lists everything in the solution as the order and tells ...

Create SQL Database and add to project using Visual Studio

When I go to the 'Add New Item' window in Visual Studio 2005 and try to add a SQL Database it hangs for a bit and then give the following error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct...

Is there a gcc 4.2 warning similar to Visual Studio's regarding possible loss of data?

Is there a flag for gcc such that conversions from a long to a short will generate a warning about a possible loss of data? I'm working on a C++ application that is compiled for both Visual Studio (2005) and GCC 4.2 (for Mac OS X). The warnings that Visual Studio prints out follow this pattern: : warning C4244: 'argument' : conversion...

Dataset visualizer does not appear - VS 2005

I cannot see the magnifying glass when I hover my mouse over a DS.I have already tried all the steps in : http://stackoverflow.com/questions/239206/datatable-visualizer-disappeared-from-my-visual-studio/ and it seems I still do not see the visualizer in my VS2005! ANY help would be appreciated with regards to uninstalling /reinstalling...