visual-studio-2010

help with linking my dll to my executable in visual studio 2010

its been about three days now since ive been trying to link my dll to my executable but everything i try wont work. i have tried placing the lib file in the linker. i get error 1>new3.obj : error LNK2019: unresolved external symbol _dllLoadBitmap referenced in function _WndProc@16. i have tried to load the library using loadlibrary. l...

Is there any way to setup a VS2010 configuration for one click remote debugging?

Right now I am doing the following: 1) build 2) copy build config target dir to other computer (VS remote debug monitor already stated) 3) RDP to launch recently built debug exe 4) click Debug -> Attach to process, select process from other machine 5) debug, make a change, goto 1. What I would like to do is: 1) press F5 and debug Am I ...

ASP.NET MVC2 Empty Project Not Loading

My environment consists of Visual Studio 2010 and Windows 7 a few months ago I developed an MVC2 application with no problems however after trying to create a new project recently I received the error below. I did find the link http://support.microsoft.com/kb/894670 but this is not relevant because I am not using IIS for testing, just F...

Utilise Visual Studio Theme in Add-In

Is it possible to utilise the current Visual Studio theme within an Add-In? I'm using Visual Studio 2010 and want to use the dark and light blue colouring of the environment to colour certain controls within my addin. ...

XML code documentation checking using Visual Studio 2010 Code Analysis

I use Visual Studio 2010 Premium Code Analysis (CA) capabilities and force them at every compile with my projects while also showing warnings as errors, so I keep my code nice and well... better. But. Since this CA is very nice and all I wouldn't want to use StyleCop as well. Because StyleCop gives me code style specification that CA d...

How to Suspend a Workflow (Declarative Service Library) Service?

Scenario DeclarativeServiceLibrary[FlowChart] with Two Recieve - Send Reply Activities persistence enabled and working WebApplication "Service Reference" is above mentioned declarative service library Question Is there anyway to Suspend workflow after receiving reply from first activity ? Whether it is possible via exposed WCF ...

VS2010 Winforms Usercontrol changes not showing in parent form

I've created a series of usercontrols. Dragged one of the controls to the main form. It shows OK. Went back and made a change to the design of the user control. Rebuilt project. Cleaned project. manually removed all project binaries including the obj folder. Change still doesn't show on the usercontrol hosted on the main form. Drag...

Silverlight 4: "Invalid XAML" using Converter in DataTemplate

Hi, maybe you could help me understand why I get an unhandled exception "Invalid XAML" in Visual Studio 2010 designer when trying to do the following on a Page. I have a Converter named DateTimeConverter that converts a date into a German date string. The converter works fine. I've included the namespace and added the following to the ...

Namespace declarations in web.config not being picked up after Converting to Web Application

Hi, I recently decided to convert my .Net Web Site to a Web Application. I followed the guidelines by creating a new Web Application, copying the files from my Web Site, including the files in my application and then selecting the option Convert to Web Application. However since I have done that I have received hundreds of errors rela...

System Requirement for VS 2010

I have a laptop machine with below configuration: Core 2 Duo @ 1.4 GHz 4GB RAM 320GB HardDrive Windows 7 Whether this is sufficient for installing VS 2010? The speed of processor is 1.4GHz, but in Microsoft website they have given minimum of 1.6GHz processor speed. Can anyone tell from their experience? Thanks in advance. ...

Where is the Xap file content viewer in Visual Studio?

Where can I find following viewer within Visual Studio? ...

Which books should I invest :) to learn everything about developing a windows form using visual studio 2010?

I'm aiming at the skill measured listed in Microsoft certificate 70-511 but not sure which book(s) to learn from. If you were me, what would you recommend? ...

What R# setting is reformatting this line?

VS2010 / R#5.1 I have this "line" of code: With.Mocks(_mocks).Expecting(() => { _fooServiceMock.Expect(x => x.FooMethod()).Return(fooMockData); }).Verify(() => { }); I perform a R# code cleanup, which changes the code as follows: With.Mocks(_mocks).Expecting(() => { _fooServiceMock.Expect(x => x.FooMethod()).Return(fooMockData)...

Skip unit tests that take a long time

Hi, I'm working with MS-Test for my unit tests writing. most of my tests have a duration of less than 0.1 seconds. I want to somehow tell VS "ignore the tests that take a long time to run when i'm running the tests manually, and when you run them on the build do not ignore them. I know that in nunit there is an "explicit" attribute tha...

Visual Studio 2010 Bug

hello; I have a problem with my Visual Studio 2010 ultimate ( Final Edition ) This problem occurs when I opening the any Solution even new project like Console App ! the windows Error Reporting show me this Error Key : EventType : clr20r3 P1 : devenv.exe P2 : 10.0.30319.1 P3 : 4ba1fab3 please guide me, how i can fix thi...

Create exclusive word instance

Hi there, i am creating a word (14) instance with interop out of a c# .net4 winforms application to work with a document. If some word document gets opened beyond my application the same word instance will be used an disturbs my application. Simple question: Is there any way to set my word instance exclusive for my application? Thank...

GetDlgItem() returns null in vc++ 2010

I recently converted a visual studio 6.0 project to visual studio 2010 and I'm encountering an issue whenever calling GetDlgItem on certain items. The following code is failing. CWnd *pWnd = (CWnd*) GetDlgItem(IDC_BATCH); pWnd->GetWindowText(szBatchNum); I see this code in my resource file for the form that's calling the above code. ...

Using IIS7 to debug instead of Development Server

Can someone please tell me what needs to be done to debug a asp.net app using IIS7 instead of the Development server with VS2010. I have found multiple resources online that says how to do it and they all have different steps. I cannot seem to get it to work. Thanks, Blake ...

Compiled program runs MUCH slower after I switched to VS 2010

One of our critical company apps (C#) crunches hi-rez images, and we've made great efforts to optimize it. It performes over 2.5 million operations in ~ 2.5 seconds. We've used VS 2005 for years, and last week, moved everything over to VS 2010. Same exact project code. Now, when I build the app and run it (outside the VS 2010 IDE),...

Can VS 2010 check/update header files automatically?

Hello! That's pretty much my question: can VS 2010 check and update header files in C++ code automatically? And can VS 2010 automatically generate a cpp file from a header file, saving you the time to copy the function definitions from the header file? I mean, can it figure that there's no implementation for some method and generate an ...