visual-studio-2008

How to generate a report by duplicate in VS 2008 with Microsoft Report

I need the same document to be printed twice, but with one single different word when the user does one click. I have tried everything i could come up with but i can't find a way to do it. Any recommendations? ...

VS2008 navigation bar not showing page controls

In my old job I used to use the navigation bar in visual studio 2008 to select a control and then the event from the members drop-down to automatically create the event in the code for me to implement. Now at my new job, in my visual studio 2008 I no longer see page controls in the navigation bar. I only see the page class and associat...

How can I correct smudged font rendering in Visual Studio 2010?

I recently started working in VS2010 and noticed right away that the font I use, Consolas, doesn't pop like it does in VS2008. First I thought my settings didn't get imported, but I checked and Consolas was the default text! It's a really minor detail, the sort of stuff that Mac users are known for, but on the left is the slightly blurr...

How do I create a top-level Window in MFC DLL code?

I am using VC 2008. I call into an MFC regular DLL from a console app in C++. I want to show a top-level window (a form I created that is an IDD_FORMVIEW) Right now I have no window showing. I am not sure what is wrong. What do I have to do (starting from scratch) to create a main window in an MFC DLL? This is a regular DLL and ...

Inter-solution C# refactoring in VS

I have solution A which defines public class Foo, and solution B which references A and uses Foo. I rename Foo to Bar in A and use the "Update References" feature, but that only updates the references in the current solution. How do I go about updating them in solution B as well (automatically)? (note that search&replace isn't an option...

Getting a Target to run BEFORE anything else runs when building from Visual Studio

Hi, I'm trying to get a one-time costly target to run only when building a certain top-level project (that has many dependencies). I have no problem on getting this working from plain msbuild / command line build. I do this with setting and InitialTargets on the project, or alternatively with < BeforeBuild />. The tricky part is ...

Passing a pointer from C to assembly.

I want to use "_test_and_set lock" assembly language implementation with atomic swap assembly instruction in my C/C++ program. class LockImpl { public: static void lockResource(DWORD resourceLock ) { __asm { InUseLoop: mov eax, 0;0=In Use xchg eax, resourceLock cmp ea...

"...side-by-side configuration is incorrect."/manifest/assembly/MSM/whatever

Event Viewer: Activation context generation failed for "C:\OpenCV2.0\VS2008\bin\Release\convert_cascade.exe". Dependent Assembly Microsoft.VC90.OpenMP,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.30729.1" could not be found. Please use sxstrace.exe for detailed diagnosis. My C:...

Windows Mobile application formatting messed up on Mobile 6 device

I have a Windows Mobile application that was written in Visual Studio 2005 and uses the .NET 2.0 compact framework. This application, when installed on windows Mobile 5 or 6 devices looks the same. However, since I have upgraded to Visual Studio 2008, the application looks fine on Windows Mobile 5 devices, but on 6 devices the interfac...

Can't find System.Workflow assembly in .NET. How do I get it?

I've installed a complete SharePoint Server (MOSS) 2007 on my dev box + the latest Visual Studio (SP1) + the latest full Windows SDK. According to the Windows Workflow Foundation page http://msdn.microsoft.com/en-us/netframework/dd980558.aspx, that is all I should need to do to be able program against the .NET Workflow APIs. And yet, a...

How do I display a CFormView in a mainframe?

I created an SDI MFC app without the doc/view support. The MFC template gives me an app with a blank window (And a menu, etc) I want to show my CFormView object on that main window. (Based on a dlg made in the gui editor) How do I do that? CreateWindow and showwindow don't seem to be all that is needed. All the web pages I find see...

'.ctor' is not a valid identifier

In visual studio 2008 when open the design for a VB.Net windows form, i am getting the error " '.ctor' is not a valid identifier". I can see the form designer if I press the "Ignore and Continue" link. All other forms are loading fine. The callstack with the error message: at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom....

Javascript replace hypen with slash

hi, how to replace a hypen (-) with a slash (\) in javascript? for example, i need to replace C-MyDocuments-VisualStudio2008-MyProjects with C\MyDocuments\VisualStudio2008\MyProjects i tried replace function such as variable.replace("-","\") but it showed me error of unterminated string constant i am working in VS 2008 ...

Javascript slash is missing when called in argument

hi, i am passing a path as an argument in a javascript. for example i am passing a path as c:\my documents\user\aa.jpg when registering javascript in client side. but when calling this in a function say, function js(d) then the slash goes missing..hence the value of 'd' becomes c:mydocumentsuseraa.jpg what to do? thanks ...

ADO.NET Entity data model creation problem

I can not create ADO.NET Entity data model. The following error occurs: An error occured Loading the entity data model tool package. Failed to load entity data model tools package. The result is -2147024891. I don't know why this happened.But i noticed this problem occurred after installing the asp.net ajax control tool kit b...

Compile my own PHP extension on windows, but got LNK 2005 error

I am using VC 2008 express, and tried to compile my own PHP extension with that. Any idea about the following error? ------ Rebuild All started: Project: xsplit, Configuration: Debug Win32 ------ Deleting intermediate and output files for project 'xsplit', configuration 'Debug|Win32' Compiling... xsplit.cpp c:\x\php-5.3.1\zend\zend_exec...

choosing the right control for developing windows application

Hi all, I am looking for a contol either listbox or listview to support my requirements. Basically how my application looks is: The background should be black when the user clicks any 'row' the row should get highlighted witgh grey. The user will have the ability to search items in this control. For example , if one of the row ...

Force Visual Studio 2008 debugger to release executable file

I find myself in the annoying situation where the visual studio debugger does not cleanly release itself once the debugging session is finished. Hence, devenv.exe retains a lock on the executable file and I cannot rebuild the project due to the dreaded error: Error 1 Unable to copy file "obj\Debug\program.exe" to "bin\Debug\program.ex...

ADO.NET Entity data model with oracle

Is it possible to create ADO.NET Entity data model with oracle in VS 2008? If not what should i use? ...

In MFC how do I avoid dialog boxes from staying on top of my app window?

I have a dialog box based application (MFC - VS 2008). I have a list control on it. I pop up other dialog boxes, but I also want to be able to get back to the parent app dialog. I can get back to the parent app dilaog box, but the problem is that even if I click on it with the mouse it remains hidden behind the "child" windows. I wan...