visual-studio-2005

Including class only in debug mode

Hi all I am writing a some unit test classes and i only want to run them in debug mode . Is there some way not to deploy the classes itself to the final assemblies when i run in different mode . I am not talking about their content (#if DEBUG flag) , the files them self . I use VS2005. Thanks. ...

How can you find whether an environment variable exists at compile time?

I don't particularly know if this is a good thing or not but I used to work somewhere where everyone had an environment variable like YOUR_NAME on their computer. Then if you had a bit of debug code that was only of interest to yourself you could wrap it in #if defined( YOUR_NAME ) and it wouldn't even be compiled for someone else unless...

Does not exist in current context build question?

The problem is that I have to hit build on my website application multiple times to get all the errors to go away, eventually it will build successfully. But, i get several messages "label, button, etc does not exist in context". If I click on the file, it corrects itself and disappears. If I click build again it corrects. I am looking...

Retrive SQL data on dynamic created textbox

I am using C#, Visual Studio 2005 I have created textbox on runtime/dynamic way and inserted/saved sql data on database but the problem is how to retrive the same data on same way for edit / update. e.g. col1 col2 mahesh 1000 kirti 2000 the above data stored in sql server. I don't know how t...

How to get printf warnings in Visual Studio 2005?

When providing the wrong number of arguments to printf(): printf("%s", "foo", "bar"); or when by providing arguments of the wrong type: printf("%d", "foo"); gcc is able to warn about these mistakes: $ gcc -Wformat printf_too_many_arguments.c printf_warnings.c: In function `main': printf_warnings.c:5: warning: too many arguments fo...

log4cxx Linking error - utf8 flag enabled

Hello, I'm working on Windows XP, VS2005. In addition I'm using log4cxx and it worked perfect for me. One day we decided to add Unicode support (UTF-8, cause we using utf-8 in our code base) to the logger. We found that we should change only two flags to make it work with unicode: LOG4CXX_LOGCHAR_IS_UTF8 1 (instead of 0, in log4cxx.h) ...

css shorthand for border

I am using VS 2005 and while editing a css border property, Visual Studio displays following tooltip border:[border-style][border-width][border-color]|inherit which means following is valid border:solid 2px #000 but as per this shorthand cheat sheet following is valid shorthand border:2px solid #000 I googled for "css shortha...

unable Debug a service in VS2005 on windows7

Hi, I have windows service project in VS2005 which was developed on XP platform. For Debugging i used the following code #if (DEBUG) Debugger.Launch(); #endif This worked fine and it opened up dialog to select the instance of Visual Studio that has the Windows Service project open and i could debug it. No...

Convert Visual Studio 7.1 project to Visual Studio 9 project ?

I have an Asp.Net project in Visual Studio 7.1 , Now when I open it in Visual Studio 2008 , I can't access to project files : How can I open the project with VS2008 or VS2010 ? ...

Linking Issues in a Multiproject Visual Studio 2005 solution.

I'm working on a solution file (VS 2005) which contains multiple projects. There are two projects of my concern right now - one called core and another called log. The core project is the startup project and the log project has core ticked in its project dependencies. I have two files in core project - AB.h(declarations) and AB.cpp(de...

.dbproj VS 2005?

Hi Folks, I have Visual Studio 2005 Professional Edition and I am looking to build a solution which has a .dproj in it. Does anyone know of VS 2005 Pro SP1 supports .dpproj files and if it does what do I need to fix it? Error: ".dproj is not installed" Cheers, Conor ...

is it manadatory to install Ajax extensions in deployment server ?

Hi, I have installed Ajax in my local machine for development (VS 2005). its working fine in local machie. when i deploy the code in server its throwing an error stating ` "Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The syst...

Visual SourceSafe and VS2005 Without Full Integration

Is it possible to use VSS 2005 with VS2005 and not have the .sln and proj files included in the source repository? If so could somebody please provide a template for getting this working. It strikes me, that understanding of the project hierarchy would be a damned site simpler without the default integration between VS2005 and VSS. An...

x86 AMD64 DLL issue - Visual Studio 2005?

Hello, I am receiving an error that says "The application was unable to start correctly (0xc000007b). Click OK to close the application." When I attempt to run a program I have compiled with Visual Studio 2005. When I run the windows program "depends" on this executable, I see a TON of DLLs which are listed as "x86" dlls. These all ap...

How to switch between 2 servers in the web.config file dynamically for MS VS2005 C# .Net 2.0 ?

I am seeking a way to switch between 2 connection strings in the web.config file for a C# web, database & report server application. I was hoping to be able to construct the connection sting based on what web server is being used ( i.e. a production server or a development server). I wanted to use the same connetion string name in bot...

PlaceHolder In C#

Actually I am new here and not familiar about placeholder. Just hear about it and find generally in ASP.Net. my question is PlaceHolder is not available in local C# is there any similar control is there or not then how to access the PlaceHolder in local C# Application. Guide me Please. ...

Allignment of Dynamically Textboxes in Panel

am using c#, vs-2005 am confuse how to dynamically add control like textboes in panel as below. textbox1 textbox2 in the same row. with selection shadow and increament the same as per panel1.autoscrollposition.y guide me and suggest proper code please. ...

Create Row In Panel by Textboxes

am using C#, VS-2005 Is it possible to create row by using TextBoxes in Panel and increment the same as per panel vertical scrollbar. Suppose I have Three Column which is Draw by Label on specific area of panel and wants to draw raw by textboxes for above mention column and increment the same by clicking enter keypress event. as below....

SourceSafe: Can it recover deleted files ?

Question: Today I worked with MS Visual Sourcesafe, that is to say Microsoft's Sourcecode destruction system, which has never ever saved anything, but already destroyed much. Today I had one more of those nasty destructive episodes: I was working on a reporting service report (*.rdl xml files). I was modifiying a report, so I created a...

log function misbehaviour!!! Any clue?

Hi guys, I am writing some program in C. It has a part where it does some probability calculations, where I am using log function. normal library function log()... The code is something like this double somevalue = 0.29558101472995091; temp = log(somevalue) And guess what? The temp gets value -1856.0000000000000!!! As the value gi...