Hello,
I keep reading a lot of opinions in favor of Unit Testing, which is a procedure I have not been following so far and have a few questions.
As I understand it, the basics of Unit Testing is to run some procedures in your code, and compare the returned value against the expected value, and see if it matches to determine whether a ...
I'm trying to insert a (») in a page in my VS2010 but it isn't recognized. Is there a way for this alias to be recognized or am I forced to use »?
...
Hello,
I am using VC command-line utilities (cl.exe), and I am getting annoyed by the fact that I have to manually run vcvars32.bat whenever I restart my console... Is there a way to automatically run a batch file on console start-up? Thanks!
P.S: I am using Visual Studio 2010 version on Windows 7.
...
I am working on a project in which javascript files are dynamically loaded into a page by the server using a python script. I am trying to use visual studio to debug these javascript files by attaching to the appropriate IE process for the loaded page and using the script debugger.
The problem is that IE and Visual Studio identify the ...
I'm trying to learn OpenGL ES with the "OpenGL ES Training Course" (An OpenGL ES tutorial). I use OPENGL-ES 1.1 WINDOWS PC EMULATION with visual studio 2010. I'm trying to comile the 'hello triangle' program and get 9 warnings and an error:
The warnings:
#include <stdio.h> skipped when looking for precompiled header use
#include <TCHAR...
I'm trying to learn OpenGL ES with the "OpenGL ES Training Course" (An OpenGL ES tutorial). I use OPENGL-ES 1.1 WINDOWS PC EMULATION with visual studio 2010. I'm trying to compile the 'hello triangle' program and get an error:
'WinMain': function cannot be overloaded
EDIT: I have only one definition of WinMain in the project: The o...
As part of one of my projects, there are "BeforeBuild" tasks that ultimately generate some files. In particular, it compiles a small static class (included as "do not compile" in the project) into it's own executable and then executes it, passing in an external input file outputting a new generated class to be included in the project.
...
I'm using Entity Framework's model designer to design the model for a new project.
Adding properties is relatively easy, however they're always appended to the entity.
Is there a way to reorder the properties once they've been added? This is quite annoying!
...
I have 11 web part projects that I have developed in VS2010 for SP2010. Not all of my projects have a suo file. Can someone explain why this may be? Thanks.
...
I have a class designed to do import/export of data in one of a few different formats. Each format should have exactly the same interface, so I'm implementing it as a base class with a bunch of virtual methods and a derived class for each specific format:
#ifndef _IMPORTEXPORT_H_
#define _IMPORTEXPORT_H_
#include "stdio.h"
enum EXPORT...
Is there a cl.exe option to dump all the pre-defined Macros ( along with the defined values ).
Something like gcc -dM -E - < /dev/null for gcc.
...
Hi,
I am starting to use Eclipse for C++ developing after years with Visual Studio. I am used to right-click a filename in an include-Statement and then click "Open Document" to jump to this file. Does something like this exist in Eclipse CDT?
Thanks.
...
When you create a new MVC application, how is it different than a Web Application?
I can put a route handler in global.asax even in a Web Application. But an MVC application has more than that, it even has the context menu to create controllers and views.
I am wondering if it is possible to turn an existing Web Application into an MVC ...
Hi all,
I have just realized that, by chance, I implemented a category browse type situation in my project:
// GET: /Category/Browse?Category=Fruit
public ActionResult Browse(string category)
{
...
}
It turns out this is special case and there must be something behind the scenes. My next one I want to implement something like
/...
Can you programatically detect if the Development server in Visual Studio is used instead of IIS?
...
Hi
I have this if statement -
if (!((main.property == 1)||(main.property == 2)))
{
...
}
main.property is a byte which is either 0, 1, 2 or 98.
Visual studios says that this statement is always true but I can't see why?
If the property is 1 or 2 shouldn't this be false.
Thank you in advance.
Edit: Added code
file1.cs
private...
I have a setup project. Project has several dlls and one ini-file. I need to execute that ini-file to register my dlls.
How should I do it ?
Visual Studio 2008.
...
Hello!
I am trying to move a project from VS 2008 to VS 2010. The project upgrade wizard completed fine, but the project does not compile. It says:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config(129):
error ASPCONFIG: Could not load type
'System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider'.
I have ch...
I have always used Visual Studios built in GUI support for configuring my projects, often using property sheets so that several projects will use a common set.
One of my main gripes with this is managing multiple projects, configurations and platforms. If you just do everything with the main GUI (right click the project -> properties) i...
This should be simple, but Visual Studio stubbornly refuses to cooperate: I have a C# project (Visual Studio 2005) with bitmaps as embedded resources, BUT I CAN'T GET AT THEM!
I've been struggling with the GUI and MSDN "help", and can't get to the embedded bitmaps to edit them. How is this done?
...