visual-studio

visual studio 2008 isn't creating an .exe file when i build my project. any ideas why?

i'm new to visual studio and couldn't find anything on google about this. i know this is an extremely noobish question, but i can't seem to find any info for it. the debug shows me whatever i write, and the build has no errors, so i know the code i'm writing is fine. the release folder doesn't contain the .exe, even after i build it, r...

ado.net dirty records in dataset

Hello, I'll try to explain. I want to track dirty records in my dataset row that is bound to controls on window (wpf). It works fine. Lets say i begin to edit some textbox that is bound to dataTable in that dataSet. After i add one character to textbox, dataset is marked dirty. But if I delete that character again ( restore original va...

Mercurial Subrepos - How do you create them and how do they work?

Situation I have two .NET solutions (Foo and Bar) and a common library that contains ProjectA, ProjectB, and ProjectC. Foo and Bar reference one or more library projects, but the library projects are not located within the Foo and Bar Solution folders. Directory structure: -- My Documents* -- Development -- Libraries ...

Keeping Console Window Open in Visual Studio (C)

I usually use XCode but was having a problem opening a file with this code: #include "stdafx.h" #include <stdio.h> #include <stdlib.h> int main(void ) { printf("Hello"); FILE *filePtr; filePtr = fopen( "test.txt", "r" ); if (filePtr == NULL) { fprintf(stderr, "Can't open \"test\"\n"); exit(EXIT_FAILURE); ...

VS 2005 debug mode not working

I am opening a visual studio 2005 solution file and building it in release and debug mode. while I am able to run the application in release mode. but when I try to run the debug mode, I am getting following error: "Unable to start program XXXX.exe". "This application has failed to start because the application configuration is incorrec...

How do I run an arbitrary SQLite query from Visual Studio?

I can't believe this is the first time this has come up. I have a script that looks like this: drop table if exists Recipients drop table if exists Messages create table Recipients ( Id INTEGER not null, Name TEXT, Email TEXT, primary key (Id) ) create table Messages ( Id INTEGER not null, Subject TEXT, Conten...

conflicting Dlls

Hi, Iam getting following error when iam using 'System.Net.HttpStatusCode' in my wcf project. The type 'System.Net.HttpStatusCode' exists in both 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll' and 'D:\HKMP\Branch\NewAmelio\amelioSL\Web\Services\bin\System.Net.dll' HttpResponseMessageProperty property = new HttpResponseMe...

Visual Studio Extending Ctrl + K, Ctrl + D

I am a bit lazy when it comes to formatting code in Visual Studio and almost rely solely on the magic of Ctrl + K, Ctrl + D (or F depending on what I’m doing). However I loathe having to use my right mouse button to Remove and Sort my using statements and am constantly forgetting. Assuming that I’m not using Re-Sharper is there any way...

MSVCRTD.lib(cpu_disp.obj) : warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators

Hi I know this question has popped up before but I could not find a good answer so I try here. I have a pure C dll (Win32) and I get this warning when compiling: MSVCRTD.lib(cpu_disp.obj) : warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators Everything seems to work just fine but I am conce...

Is there a free Visual studio add-on to generate try/catch blocks from a method that documents exceptions ?

Is there a free Visual studio add-on to automatically generate try/catch blocks from a method that documents exceptions ? ...

ExceptionAsserts & debugging your C# project in VS

We've been using NUnit & VisualStudio to write C# .NET code for a while now. Testing Exceptions was done in the style of old syntax: [Test] [ExpectException(typeof(ExceptionType))] public void TestExceptionType() { } Now NUnit has released version 2.5.2 which introduced Assert.Throws( Type expectedExceptionType, TestDelegate code...

.Net Localization Question. Japanese Characters Display as Squares.

OK, I don't do much .Net programming, but I do have one that I maintain, so the answer to this may be obvious. Setup: Windows 7 Ultimate with All Language Packs Installed Visual Studio 2008 Winforms VB.Net project. I'm in the process of localizing this project, and when I'm making the Japanese version of the forms, the characters di...

Reference projects source code control issue in visual studio 2008 and Visual SourceSafe 2005

Reference projects source code control issue in visual studio 2008 and Visual SourceSafe 2005 I have 3 projects Project 'PA'-> SourceSafe: '$\A'; WorkDirectory: '\projects\A' Project 'PB'-> SourceSafe: '$\B'; WorkDirectory: '\projects\B' Project 'PC'-> SourceSafe: '$\C'; WorkDirectory: '\projects\C' PC is referenced by both PA and PB ...

Add a Reference from a C# App to a DLL compiled without /clr?

I'm using Visual Studio 2008 to build a Solution with two Projects: a C# Console App and a C++ DLL. I want the app to call a function from the dll using P/Invoke. Therefore I'm trying to add the dll as a Reference to the C# app. But when I try the Add Reference command, Visual Studio won't let me do it unless I set the /clr property on t...

link error can't find VCOMP.LIB using Visual Studio 2008 Standard

I have been developing an application using Visual Studio Pro 2005 implementing OMP. I have just upgraded to Visual Studio 2008 standard and now when I compile and link, I'm getting an error that the linker cannot find VCOMP.LIB which is required for multi-processor running using OMP. Thanks for any help. Dave ...

Visual Studio 2008 & Number of Lines in a Solution

Possible Duplicate: How do you count the lines of code in a Visual Studio solution? Hello all, I am using Visual Studio 2008 and Resharper 4.5 but I haven't figured out how to determine the total number of lines of code in a Solution. The solution I am working on has about 12 projects. Do the tools I am using support such feat...

How to convert a regular win32 (VC++ vcproj) project to a Qt project?

How can I convert existing vcproj files to project files that the QT add-in to Visual Studio recognizes and treats as valid Qt projects? Should I just bite the bullet and create new projects to replace the old ones, and then add existing code? I am using QT 4.6 and VS 2008 with Qt Add-in 1.1.2. Original vcproj files have NOT been gene...

how to manually compile a C# project?

Just jointed a new project which they are using VC#2008 to build an application. There are several components and many files under one project now. I was asked to setup a build machine to start dailly build. The frist thing I was told to do is write a batch file to call csc.exe to create an executable manually without the VC#2008 install...

visual studio DataSet designer with stored-procedures ? what is this icon

What does this icon mean is Visual studio, visual Data Set designer. I have several stored procedures. can you help me understand, why the one on top of the list has a small "check mark" why I can't delete it if I need to. This is not the case with the rest. Why is this "special" ? Thanks ...

Is there a way to keep ReSharper from formatting a region of code

I use ReSharper's code cleanup all the time, but sometimes I have code formatted in a way that makes it easier to read than ReSharper's formatter makes it. Is there a way to mark part of your file with comments or something to make it skip formatting that portion. (I'm not talking about inspections, I know how to have ReSharper ignore r...