visual-studio

How to use the Insert Key (like in traditional windows) for a WPF 4 App?

Ok, I know that the new versions of windows do not use the insert key by default and you have to program for it. I want to be able to type in my text box and override the content that is in it just like in old windows when you could activate the insert key. This is just for my WPF 4, VB.net Application. Updated Information: That what I...

How to include INF driver install into VS Installer project

I use a Setup and Deploy project in Visual Studio 2008 to install my c# project. I have a USB driver that i can manually install by right clicking the .inf file and choosing Install. I think that if i had a .exe to install the driver, i could probably put it under Custom Actions. I'm not even sure where to start to make my own .exe, l...

Making MSVC compiler GCC complient?

Is there a way to make the msvc compiler as strict as gcc? MSVC lets me do some pretty crazy things that result in hundreds of errors when I compile in linux. Thanks ...

Change default Visual Studio behavior for MVC 2 project

I've created an MVC 2 project with nested areas, such as: Areas -->A -->C --> Controllers --> Models --> Views -->D --> Controllers --> Models --> Views -->Controllers -->Models -->Views -->B -->E --> Controllers --> Models --> Views -->F --> Controllers ...

Visual Studio alternative for PHP

Hi, I have earlier worked on Visual Studio and am pretty much comfortable in using that. But now I have some programming work in PHP. Is there any plug in available that I can install on Visual Studio 2008/2010 and program in PHP/MySQL. Thanks. ...

Modify App.config permanently C#

Hi, Ok so im trying to use the appSettings element in the App.Config file to determine what kind of storage to use. Here is my app.config file: <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> </configSections> <appSettings> <add key="storage" value="memory"/> </appSettings> </configuration> So I wa...

Update a VisualStudio solution after "Import SharePoint Solution Package"

Hi, having created a VisualStudio project from an exported SharePoint solution (Import SharePoint Solution Package), how to keep Pages / Content types / Lists etc in sync when changing them on the SharePoint side via the web UI or SharePoint Designer? Thanks ...

How can I show all internal classes to all projects in Visual Studio solution?

Hello, I have solution in Visual Studio, so this solution contains a few projects, also I have public only interfaces and internal classes, I'll use ILMerge for build one dll from all projects in this solution, Attention :) question, How can I show all internal classes to all projects in solution? Thanks. ...

Add New Filter functionality in C# projects.

In C++ projects in Visual Studio 2008 there is possibility to Add -> New filter which will be usefull if one wants to separate some files from others (ie. source files from header files) and keep each type in "semifolders" without moving them physically on the hard disk. I wanted to do the same in c# projects with, lets say xml files, bu...

Qt Phonon MediaObject conversion error

Hi, I want to play some WAV files, but I have error C2664 in Visual Studio: error C2664: 'Phonon::MediaObject::setCurrentSource' : conversion error from'const char [24]' to 'const Phonon::MediaSource &' This is the code: Phonon::MediaObject *media_object_; media_object_ = new Phonon::MediaObject(this); media_object_->setCurrentSour...

My deployed File (.msi) can not be Installed on another machine

I deployed a small application, i got the files you see in the image. I took the first file (.msi) and sent to a remote machine to let the end user installs it. However, the user gets an error that says file is missing or so (i can't remember the error message). Should i send the second file "setup" along with the first one? What the ...

Writing data to one file from several instances of single application, C#, Visual Studio 2008

I have a Visual Studio project that gets installed to about half of the PCs in our company. The application has an error logging routine that appends error messages to a text file that is kept here: static string _appPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), Application.CompanyName)...

Manipulating Custom User Controls Given Only (x,y) Screen Coordinates (without Mouse)

Given only an (x,y) point on the screen (without being allowed to use the mouse), how can you manipulate a custom UserControl? For example, I have a custom slider that I want to manipulate using only an x, y returned by a vision code (the vision code acts like a mouse, but I am not actually supposed to use the mouse). ...

How to understand the call stack of visual studio?

VCamD.ax!CFactoryTemplate::CreateInstance() + 0x3f bytes > VCamD.ax!CClassFactory::CreateInstance() + 0x7f bytes What's 0x7f and 0x3f ? ...

How to understand .pdb files of visual studio?

I opened it with an editor,totally messy. BTW, in the "Disassembly" view,is it possible to dump all the assembly code? I tried but can only grab a screen of lines ...

SSRS return blank value and regular value to function

In SSRS I have a parameter that is populated from a multi-value list which allows a blank value. When I select just the blank value it returns unit 123 When I select just "New" it returns unit 987 When I select both owner "New" and the blank value it only returns 987. Any ideas? Does SSRS not allow you to pass the blank value and a n...

How to create a exe that installs a driver

I want to create a very simple .exe that will install a driver. I have an .inf (and all it's DLL files). The driver is for a usb device. The end goal is to find a simple solution to install a driver with my application installer. The installer is generated using Visual Studio 2008 setup and deployment project. I believe that having ...

How to disable "warning as error" for generated files only? (MSBuild)

On our continous integration server (Teamcity 5.1.3) we have a msbuild script that is automatically building our applications. When we enable "Warning as error": in Visual Studio, it build fine (it ignores the methods within "*.designer.cs" files. But on the build server we always receive the following error: [(Rebuild target(s)):] som...

Can I run visual studio 2005 and visual c# 2008 on the same machine?

I have a copy of visual studio 2005 currently installed and want to install visual C# express 2008 to experiment with XNA. I'd like to know if this is possible and if there may be any issues with doing so. ...

How to detect profiler is running?

I run my project within VS and from time to time I run it with VS profiler. The question is how to detect the second case? The reason: I would like to trigger GUI events from program when profiling -- this way I would avoid manually clicking on widgets every time I do profiling. I am explaining this, because maybe is smarter way then d...