visual-studio

Insert a datetime value with GetDate() function to a SQL server (2005) table?

I am working (or fixing bugs) on an application which was developed in VS 2005 C#. The application saves data to a SQL server 2005. One of insert SQL statement tries to insert a time-stamp value to a field with GetDate() TSQL function as date time value. Insert into table1 (field1, ... fieldDt) values ('value1', ... GetDate()); The re...

How to get the PDB (symbols) from an assembly when built into an MSI

I have a standard MSI being created using Visual Studio 2008. Is there any way that I can have it copy the symbols of the exact DLLs and EXEs that were placed into the MSI somewhere so that I can use them for remote debugging of an installation from that MSI? ...

What's the most popular compiler, and what's so bad about MSVS?

Hello, I've been using MS Visual Studio for a lot of projects, but I notice a lot of people here like to complain about Microsoft and Visual Studio. So I'm wondering, what does everyone use? Dev-C++? mingw? What is popular? Also, what is bad about MSVS? What is "better" about the others? Thanks! --RKL ...

Newb Question: scanf() in C

So I started learning C today, and as an exercise i was told to write a program that asks the user for numbers until they type a 0, then adds the even ones and the odd ones together. Here is is (don't laugh at my bad style): #include <stdio.h>; int main() { int esum = 0, osum = 0; int n, mod; puts("Please enter some number...

Do I always need to rebuild the project containing references to sub project's dll, if sub projects are updated ?

I have a solution containing 4 class library projects and one "web site" project. The web site project contains references to the 3 class library projects, whenever I make changes in any of the class library projects, the only option I see is to rebuild the web site which takes a lot of time. Is there any option that I can only update ...

MSTest in Express editions of Visual Studio 2010

I'm leaning toward using MSTest as unit testing framework for a new project but I'm concerned with cutting off developers (maybe even myself in the future and/or in some specific environment) using Express editions of Visual Studio. I know MSTest wasn't available in VS2008 Express but with Microsoft pushing unit testing in recent years ...

How to best use GCC with Visual Studio

I know this thread http://stackoverflow.com/questions/216025/gcc-with-visual-studio but to me it seems that everything mentioned there is rather outdated and it seems to be the tenor is: don't do it Who knows a better step by step explanation thank you in advance Oops ...

How to find which existing .NET solutions contain a certain project?

I am exploring a structure of folders with C# projects such as the following: Projects ProjectA ProjectB ProjectC ProjectD Scattered around in the same folders as the .csproj files, there are several solution (.sln) files. Is there a fast way to find all the solutions that contain ProjectD.csproj? I can open them one by one and see...

Visual Studio 2010 installation

Is it possible to install VS 2010 & .NET 4.0 in Windows XP machine with SP2. ...

VS 2010 web.config transformation

Hi all, I need help on web.config transformation as I'm trying to do something not documented. My web.config has an empty connectionStrings element. In debug, I'd like the transformation tool to add a configSource="file.local" to the connectionStrings element. But in release, I'd like it to add a connectionString element. So, to summa...

Visual Studio 2010: adding a service reference to a 2008 generated wsdl

Doesn't produce a app.config . In my team there is a guy who has Visual Studio 2008, he created a webservice. Then there is me, adding this webservice to a console project. Adding the service reference goes without problems but no valid app.config is generated. It's just empty <configuration> </configuration> When I disable 'reuse t...

Linking a template class using another template class (error LNK2001)

I implemented the "Strategy" design pattern using an Abstract template class, and two subclasses. Goes like this: template <class T> class Neighbourhood { public: virtual void alter(std::vector<T>& array, int i1, int i2) = 0; }; and template <class T> class Swap : public Neighbourhood<T> { public: virtual void alter(std::vect...

How can I fill SQL Server table from excel only using sql query?

How can I do that with Microsoft.ACE.OLEDB.12.0? CREATE TABLE [dbo].[Addresses_Temp] ( [FirstName] VARCHAR(20), [LastName] VARCHAR(20), [Address] VARCHAR(50), [City] VARCHAR(30), [State] VARCHAR(2), [ZIP] VARCHAR(10) ) GO INSERT INTO [dbo].[Address_Temp] ( [FirstName], [La...

Visual Studio template not showing

Hi all I've followed this tutorial to try to add a template to Visual Studio: http://www.switchonthecode.com/tutorials/visual-studio-how-to-create-item-templates The template I have created is designed to add one predefined .aspx and one predefined .aspx.cs file to the project. The folder contains the following files: MoosePage.aspx...

Create a ActiveX with a MFC existing application

Hello! I'm trying to convert my MFC application, a simple "PaintBrush" app that draws lines and rectangles (it's only a little test from another bigger application), to a ActiveX Control that a could embed into a Windows Forms Application (with Visual C#). I didn't found any tutorial for do this, and now, I'm not sure that this it's po...

Why are "Extracted Interfaces" Internal rather than Public?

Visual Studio includes a refactoring function called "Extract Interface" that generates an interface based on a class implementation. The extracted interfaces are Internal by default. Problem is, we end up changing nearly all of them to Public. Does anyone know why it's Internal by default? Better yet, is there a way to customize th...

Visual Studio Macro Parsing

I'm looking for a way (and maybe a macro isn't the best approach) to jump from one class to a related class much the same way that I can us the go to definition feature. The related class is related like so: In a class called MyStuffController and in a method MyAction I would like to go to the directly related Views/MyStuff/MyAction/My...

Keyboard access in the C# project settings editor?

Does anyone know how to switch between the major tabs/pages in Visual Studio's C# project settings editor, using only the keyboard? I'm talking about the things along the left side that are labeled Application, Build, Debug, Resources, Settings, etc. It works fine to Tab between the controls on the currently selected page, but I haven't ...

Microsoft Visual Studio Professional Licensing

Hello, We are a small financial Company (around 20 people) We are planning to buy the Visual Studio Professional 2008 Edition to build some Proprietary software for ourself. We have only 3 developers working on this software. The question is Can we distribute the application(just the exe) throughout the office. What are the restrictions...

Hooks for the background compilation in Visual Studio 2008/2010?

Is there a set of events, a service, or any other API in the Visual Studio SDK for Visual Studio 2008 and/or Visual Studio 2010 that allows you to hook into the background compilation service and listen for background compilation events? ...