visual-studio

Does the Visual Studio debugger implicitly cast smaller types to int?

Does the Visual Studio 2008 debugger implicitly cast all smaller data types to int? I have a function with the following signature: public int DoSomething(sbyte value) { ... } When pass in -127 and I look at the value argument the Visual Studio debugger (e.g. Watch window) shows me that it has the value 0xFFFFFF81. This is correct exc...

VS2010: "Select Resource" dialog & resx location

Got two issues with the VS2010 / VS2008 select resource dialog - the one that appears when you want to add an image to a button in a WinForms app for example. Give me my files back! It only seems to see the default project resources file (Properties\Resources.resx), and resx files in project root (say MyProject\famfamfam.resx). We ha...

Missing Business Intelligence Project type in Visual Studio 2010

When I use visual studio 2008 and do a new project I can select the type of project as Business Intelligence project. From here I can select a report server project. I noticed that with visual studio 2010, this does not exist any longer. Tried doing some googling about it and got this: http://social.msdn.microsoft.com/Forums/en-CA/vsr...

Best Practices for Working with Multiple Monitors in Visual Studio 2010

Now that Visual Studio 2010 has support for multiple monitors, I am curious how other people have their environments arranged. I have yet to come up with an arrangement that I am really satisfied with. The current best I have come up with for my 2 monitor system is to have all code windows detached. Then, on my primary monitor, I am abl...

Visual Studio Macro: How to perform "File -> Save All" programatically

I am looking for the equivalent of running "File -> Save All" before certain Rake macros. What I have so far is: Private Sub Pre_Rake() Dim i As Integer DTE.Documents.SaveAll() For i = 1 To DTE.Solution.Projects.Count If Not DTE.Solution.Projects.Item(i).Saved Then DTE.Solution.Proj...

Prevent visual studio from appending folder name to new classes?

How can I prevent Visual Studio from naming the classes for new pages that are in folders from being named with the folder name? Does this method not set "right" with anyone else? ...

Multiple CheckOut or Multiple Commit .

Hello sorry for my English ... I'm using Visual studio 2008 with C# and SharpSVN dll (for Subversion 1.6) I wish to commit to multiple different folders in my repository, but without having to checkout the entire repository. I tried using the method: SVNClient.Commit (ICollection coll, CommitArgs ca); Where eg coll [0] = "c:\svnChe...

Can't attach to Silverlight application with VS2010

Few days ago all was ok: when I started my web-site with Silverlight 4.0 application with F5 in Visual Studio debugger was connecting to Silverlight automatically, but now it doesn't. I've tried to attach manually from "Debug"->"Attach to process" with "Attach to" option set into "Silverlight code" value. But my breakpoints are still "d...

Single Responsibility Principle usage how can i call sub method correctly?

i try to learn SOLID prencibles. i writed two type of code style. which one is : 1)Single Responsibility Principle_2.cs : if you look main program all instance generated from interface 1)Single Responsibility Principle_3.cs : if you look main program all instance genareted from normal class My question: which one is correct usage? whic...

DDEX Firebird editing queries duplicates columns in Visual Studio 2008

Hello everybody! I don't know if some of you also has experienced it but when I edit a query in Visual Studio (it uses DDEX 2.0.5 for accessing the Firebird 2.5 database), it duplicates some of the columns. What's really interesting is the fact that only System.Boolean columns are duplicated: Originally, there was only ,for instance, a...

Open "Class Explorer" in Visual Studio 2010

Does anyone know where I can open the "Class Explorer" in Visual Studio 2010. I have been looking around for 1 hour :-( ...

Deploy merge modules to clients

I need to deploy some Crystal Reports XI .dlls (craxdrt.dll, crviewer.dll) to client computers. Craxdrt.dll has many dependencies. I found out that the easiest way to go about this is to use the supplied merge modules. Having always relied on ClikOnce deployment I am at a total loss how to do this. If it matters: the .exe is written in ...

ASP.NET 2.0 control is not shown up un VS 2010 toolbox

Hi, I have developed some ASP.NET controls in .NET 2.0 with VS 2008. Now, I upgraded my project to VS 2010 but did not change the target framework to .NET 4.0 yet. But, surprisingly, I found that, the toolbox is not showing the bitmaps for the control added to the toolbox in VS 2010. Moreover, when I dragged and dropped a control (.NET 2...

Why is my class method not visible when I implement an interface in my class?

i can not see MyLoad.TreeLoader(.... but why i can not see? i implemented iloader to TreeViewLoad. i should see TreeLoader why? namespace Rekursive { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) ...

error C2146: syntax error : missing ';' before identifier 'g_App'

I wish c++, was a little more specific on the messages they give. The following error is being thrown in the document below main.h #ifndef main_h #define main_h //includes #include <windows.h> #include <commctrl.h> #include <d3d9.h> #include <fstream> #include "capplication.h" //constants #define TITLE "D3D Tut 01: Creat...

Why must use "out" instead of ref ?

i wrote some code blocks about ref -out declaration. i think that ref is most useful out. Ok. why i need to use out. i can use always ref everytime: namespace out_ref { class Program { static void Main(string[] args) { sinifA sinif = new sinifA(); int test = 100; sinif.MethodA(...

Texture will not apply to my 3d Cube directX

I am trying to apply a texture onto my 3d cube but it is not showing up correctly. I believe that it might some what be working because the cube is all brown which is almost the same complexion as the texture. And I did not originally make the cube brown. These are the steps I've done to add the texture I first declared 2 new varibles ...

Visual Studio keyboard short-cut to complete default accessors {get; set;}

I am looking for a keyboard short-cut to complete creating the default accessors for a property in a C# class. Something like... I start typing: public int Id Then I press one or more keys, and I endup with: public int Id { get; set; } ...

Which MacBook(Pro) for running Visual Studio 2010 on VMWare Fusion on a Mac?

Hi Anyone have experience running Visual Studio 2010 on a MacBook or MacBook Pro? (via VMWare fusion) Any feedback / advice based on your experience re what level of MacBook Pro (i.e. CPU type, CPU speed) you would target to get reasonable/good performance from VS2010 on it? (I'm just concerned about getting a base level MacBook Pro ...

What C++0x features does Visual Studio 2010 support?

There is a list for GCC; is there a similar list for Visual Studio 2010? ...