visual-studio-2008

OpenMP in Visual C++ 2008 Standard Edition

How can I get OpenMP set up in VC++ 2008? The compiler supports it, I believe I am only missing headers/libs. Can I obtain them similar to how the framework SDK can be added to VC++ Express for MFC development? ...

SVN sub-changeset commit?

I am using AnkhSVN in Visual Studio 2008 as a source control solution. I love to check out, edit and then re-commit partial changes as a way to ensure I never lose incremental progress. Is there anything smaller than a changeset that will allow me to check-in incremental changes as a way to ensure I don't lose them/overwrite them betwe...

Custom Project Templates with Wizard Visual Studio 2008

Hi Everybody, I want to create a custom project template with wizard i.e. when I create a new project, I will select my custom project template and it will immediatly show me the wizard or a screen which takes some form of input and process that input and creates corresponding project. Is it possible to do that same? I have googled a lo...

Link error LNK2005 when trying to compile several CUDA files togheter

I have a CUDA program that works fine, but that is currently all written in one file. I'd like to split this big file into several smaller ones, in order to make it easier to maintain and navigate. The new structure is : foo.cuh foo.cu bar.cuh bar.cu main.cu The .cuh header files contain structs and function prototypes, and the .cu f...

How do I get Visual Studio to do vbscript syntax highlighting for .asp files?

asp files are highlighted as html in Visual Studio 2008 unless I put language=vbscript in all my <% > code blocks. lame! when I go to tools -> options -> text editor -> file extention I don't get vbscript or vb as an option, only c#, c++, html, etc ...

Downloading and Uploading process template for a single TFS project

Hi Is there a way to download process template related to one particular project in TFS. I am aware of the "Download" option present at "Team Foundation Server Settings -> Process Template Manager". Scenario 1 I created a project with standard MSF - CMMI process template. But later I added a few reports and custom work item types. ...

Qt, Signals without naming?

Is there any way to use the signals without MOC and without the connecting via names? My one problem with Qt is that you have something like this->connect(this->SaveBtn, SIGNAL(click()), SLOT(SaveClicked())); And there is no error detection to tell that is wrong other then finding out the button doesn't work or searching through their ...

VisualStudio C# x64, why AddReference option, .NET tab points to x86 DLL instead of x64?

I want to create an x64 application. When I want to add a reference for example to system.data in window AddReference under tab .NET I see only x86 DLLs, and I need 64 bit versions. I have Windows Server 2008 x64 with Visual Studio 2008. I created a project and I set x64 under Configuration Manager. What can I do to force Visual Stud...

CMake to build an ActiveX OCX?

Hi All, I've been playing with CMake today, and so far it has been working great. Our project consists of +100 Visual Studio 2003 projects; we want to move to VS2008 and eventually VS2010 and also to support makefile build system (and maybe also Eclipse CDT)... so defining our projects with a CMake configuration files and generating pro...

.NET RIA Services - DataService problem

I downloaded an example of the application based on the .NET RIA services from the article: http://blogs.msdn.com/brada/archive/2009/07/22/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-6-poco-and-authentication-provider.aspx from the "download the full demo files" link. On my PC (MS VS 2008, SP1, NET ...

How to use C++ code snippets in Visual Studio 2008 Pro?

I have prepared C++ code snippet. How to use it in VS2008 Pro? ...

Empty setup project in Visual Studio 2008

I have a ClickOnce installation I want to distribute. Some system administrators prefer a MSI installation package which, when run, installs the ClickOnce application. I've created a Visual Studio 2008 Setup project which references a single assembly where I've implemented a custom action. The custom action can install the ClickOnce ap...

Debugging website hosted on a remote server in VS 2008

I have website (setup on IIS) in a VPS setting. Since I dont have VS installed on the VPS, I would like to connect it from my dev machine and debug the source code. From my dev machine, I opened up VS 2008 and did File -> Open Website -> specified the http address and clicked OK. I get the error "Unable to open the website 'http://xxx....

sgen.exe x64 .net c# fails with "assembly with an incorrect format"

I have ws2008 x64 with vs2008. When I set my vs to x64 (because I have 64bit dlls) and run compilation sgen says that An attempt was made to load an assembly with an incorrect format VS takse sgen from C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\ and I think that it should take it from C:\Program Files\Microsoft SDKs\Windows...

Custom Action executing as Nt Authority/System not as current user

I'm developing a setup project in VS 2008 SP1 that just creates an Active Directory OU and 2 Security Groups. My problem is that the Custom Action Installer class is running after the setup project is running as "NT AUTHORITY\SYSTEM" not as the current user. I running, W2K3 EE SP2, my domain account is in the local administrators grou...

Adding a reference without importing types

Hello, My Visual Studio solution has several late-bound projects (dll) which are loaded by other projects in runtime. The dll loaded depends on some runtime condition. To load dll in runtime I need it to be present in the application bin directory, and there are several of those apps. To do that I run a post-build script which copies l...

How do you manage your Virtual Machines for isolated development?

I'm trying to establish a best practice for Virtual Machines for developers. Currently we work on Windows 7 with Visual Studio 2008. However, we need to experiment with VS2010 and to do this we create Win7 VM's and load what we want in there. My technique is to create a new VM, in this case a Win7 VM, and once it's gone through all it's...

VS 2008 and Source control Explorer Error.

Hi, I faced a problem in Visual studio 2008.When i click on Sorce Control Explorer(Views-> Other Windows-> Source control Explorer) The IDE was not responding. So i googled and got a solution here(http://support.microsoft.com/kb/952102). The cause was " The problem is the vssprovider.dll failed to load." And the solution was Remove...

Adding debug and release versions of libraries to a VS solution.

Hi Guys, I have my solution laid out as follows src/Project1 src/Project2 src/Project... bin/*.{dll,exe} lib/Debug/*.dll lib/Release/*.dll All of the projects are set to build to the top level bin dir. I include a number of 3rd party library dependencies in the lib folder, I like having them here as they then get versioned along with...

Explaining the declaration/definition of HRESULT

I just looked at the definition of HRESULT in VS2008. WinNT.h has the following line: typedef __success(return >= 0) long HRESULT; What exactly does it mean? It doesn't even look like C or C++ to my untrained eye ...