visual-studio-2008

asp.net ( mvc ) using external folder as resource

Hi, i've got a VS2008 asp.net mvc solution with the projects: Common Project_1 Project_2 The common project also contains an "images" folder with "common images" that should be used by both of the 2 projects... How would i "link" to these folder from one of the projects now, when it should be available via a browser ( e.g. via a pa...

WCF Service that returns a custom class generates errors in Reference.cs

I have a WCF Service project in Visual Studio 2008 that contains about 12 methods, some of which return primitive types like bool or string. I also have a Visual Studio Unit Test Project that references the published WCF Service. The Test Project compiles successfully when all the return types are primitive. If I add a new method to the...

Contracting: Accepting a job using older Visual Studio 2003... Career Suicide?

I'm a contract developer and have been for the most part of 14 years. I just took a stateside lead developer role managing a small offshore team of developers. Strike 1 was the environment... lots of contractors slammed into a small 16'x14' room. Seating is at tables. Hardware is so-so. I was able to overcome this by using my own la...

Adding libraries to Visual Studio problem

Can someone link me a good guide for using libraries in a c or c++ project? Right now I'm trying to add OpenCV to a newly created project. I've added all the directories I can think of in "Project and Solutions -> VC++ Directories" and to make sure I've dragged and dropped all the .lib and .dll files into the project. The project buil...

Why no warning with "#if X" when X undefined?

I occasionally write code something like this: // file1.cpp #define DO_THIS 1 #if DO_THIS // stuff #endif During the code development I may switch the definition of DO_THIS between 0 and 1. Recently I had to rearrange my source code and copy some code from one file to another. But I found that I had made a mistake and the two par...

Which files in a Visual C# Studio project don't need to be versioned?

I'm new to Visual C# Studio (actually using the Express edition, but another developer is using the full version), and we are using version control (svn). It's acceptable to me to add the project files to the repository, since this repo is just for the two of us using Visual C# Studio. But it feels like there are some irrelevant files i...

SSRS Report Printing squashed on mini-printer

Developer has Samsung Bixolon SRP-270 printer hooked locally to their computer. When you print from the Report Server to a normal printer the text looks fine. When she prints to the mini-printer (like a receipt printer), it squashes the text into a very small area on the left of the receipt. I can't see any settings anywhere that woul...

Visual Studio 2008 - Build overwriting bin referenced dlls

I'm trying to figure out if what I'm experiencing in 2008 is new or something wrong with my installation. We have multiple web application projects and multiple class libraries. Both the web projects and class library reference the same third party dll, but each from their own bin. The third party dll in each of the web projects may ...

Automatically Create UML diagrams from Visual Studio 2008

Is there any tool\Software that make automatically UML diagrams from an existing visual studio 2008 project (C#). (Tools work with Visual Studio 2010 also appreciated.) *UML Diagrams may be all types eg, object, class, domain, collaboration, componant, state, deployment etc and test cases etc I currently used .net framework 3.5. I hav...

vs2008 c# project painfully slow

Hello, my largest C# VS2008 project recently became painfully slow. The moment I start typing, it takes up 100% of one of my CPUs. Building which (until recently) was very fast now takes much longer. I have disabled all add ins, cleaned the solution and still it is crawling. There is noticeable lag when I type and especially when I delet...

How big an effect on compile times does L2 cache size have?

I am in the middle of the decision process for a new developer workstation, and one remaining question is which processor to choose, and one of the early decisions is whether to go with Xeon or Core2 processors. (We've already restricted ourselves to HP machines, so we're only looking at Intel processors.) The main goal of the upgrade ...

Reference a .Net2.0 project from a .Net3.5 solution without upgrading project file [csproj]

Hello StackOverflow. I have an interesting problem. I am developing for a .Net2.0 solution. I have finished my development and checked my source in [er, to a local Clearcase stream - don't ask, this just means I'm done dev]. This source is, and must remain .Net2.0 Vs2005 compliant. Unit testing is somewhat more lax. I would like to tak...

See XP Mode IIS sites from host OS

I am running Windows 7 x64, and then XP in Windows XP Mode. I am using bridged networking so that in XP I can access network / domain resources (e.g. SourceSafe). I can access SourceSafe, develop code in Visual Studio, run the web site, etc. all within the VM. But I would really like to be able to hit the web site on the XP VM from th...

PHP and Visual Basic 2008 Conversion Help!

Hello Everybody! I need help converting this into PHP: Public Function Encrypt(ByVal text As String) As String Dim charSet1 As String, charSet2 As String, i As Long Dim pos As Long, encryptedChar, encryptedText charSet1 = " ?!@#$%^&*()_+|0123456789abcdefghijklmnopqrstuvwxyz.,-~ABCDEFGHIJKLMNOPQRSTUVWXYZ¿¡²³ÀÁÂÃÄ...

Nokia QT 4 for Visual Studio 2005 and Visual Studio 2008

I downloaded the latest open source version of QT4-and its installed in c:\qt\2009.04. I've also downloaded the QT4 Visual Studio add-in 1.1.0. I want to set it up for both Visual Studio 2005 and Visual Studio 2008 . Most of the docs online are for older versions. What steps do I follow? ...

Explain this C# code: byte* p = (byte*) (void*) Scan0;

I found the code from the net in which i cant understand this line:- byte* p = (byte*)(void*)Scan0; There Scan0 is System.IntPtr. It is code of C#.Net. Plz Explain the above line. The complete code is given below. this is code to convert a image in grayscale. public static Image GrayScale(Bitmap b) { BitmapData bmData ...

How to store the stored procedures in TFS

HI all, Iam using VS2008 and SQL2008 i want to access my stored procedures in VS2008 TFS so please tel me the steps to do it. Thanks in advance ...

Visual Studio overwriting UserControl parent when not inheriting System.Windows.Controls.UserControl

I am creating a series of UserControls that all have some similar business logic. So I tried to implement this common business logic in an abstract base class that all of these user controls would inherit from. The inheritance chain looks something like this: System.Windows.Controls.UserControl <-- MyControlBase (abstract)<--MyControl1,...

Visual studio 2008 adds inline style instead of changing markup

Hi guys, Visual studio 2008 on dragging (say) a td inside a table adds a inline style named style1,style2, and so on......while this might be good thing for some purposes it is just better to have a style="height:80px;" added to the markup of the TD... is there any way to make VS 2008 not add inline styles and add into the markup of th...

How can I get the exact compiler command line from visual studio?

I have to port the build of a DLL from building in Visual Studio to another build system. The DLL solution wasn't made by me and it's got lots of modified command line switches etc. I've copied the compiler/linker options from Visual Studio's Project Properties -> Config Properties -> C/C++ -> Command Line Project Properties -> Confi...