visual-studio-2008

Basic C++ program crashes VS 2008

I'm following this tutorial on wrapping a .lib in a C++ DLL. Right after I use the VS wizard to generate a Win32 DLL project, everything compiles just fine. Then, following the tutorial, I substitute this VS-generated code: DEMODLL_API int fnDemoDll(void) { return 42; } for this code: DEMODLL_API int fnDemoDll(int a,int b) { ...

What's this folder structure for? (Local user GAC?)

I've just stumbled across this folder structure on my machine which contains lots of .NET assemblies similar to what you might find in the system GAC. This puzzled my as I've never seen this folder structure before and it makes me wonder, is there such a thing as a local user assembly cache? The folder structure is: C:\Documents and Set...

custom VC++ template not working, already gone thru MSDN

I am trying to create a C++ template for Visual Studio 2008 (Professional not Express), but all in vain. The template is really simple with only 2 files and no wizard. I've gone through the documentation over MSDN and various forums and I understand the semantics while creating a template, but don't know why this does not work. These are...

Debug-only classes and resources in visual studio - is it possible?

Is it possible to add a class to a project in Visual Studio and have that class only built for the Debug configuration of the project? That is, it will not appear in the Release build at all. If it is possible, is it also possible to do the same for resources? I'm thinking specifically about test classes that are only run in the Debug ...

Visual Studio not displaying compile time errors in editor

For example, when I write: string x = "turtle"; x.Go(); There is no red squiggly line detecting the absence of the Go() method on String. Only when I compile does the error get detected. I've just upgraded to Windows 7, I have Visual Studio 2008. In my old environment the errors were detected before the actual compile. Is there a ...

Automated Silverlight Unit Testing with CruiseControl.NET

What is currently the best solution to automate running unit tests against silverlight applications within CruiseControl.NET? Preferably I would like to run MSTest unit tests however as these aren't officially supported for silverlight yet I am open to suggestions that use other testing frameworks. ...

Designer Popup Editor Issue

Hello, In a custom toolset I have installed for Visual Studio, there is a popup window that should appear to me so that I can manipulate one of the lists (an in-built editor). The component is Telerik, but I don't think that has anything to do with it (maybe). The popup window is no longer popping up to me. I wonder if it got minimiz...

Best Way To Create C# Installer

I use Visual C# 2008 Express Edition. I would like to be able to create an installer for a project I have. I can kind of do it with the Publish tool, but you get little to no control. Is there a free way to do this, or do I need to spring for the full-blown version of VS2008? -or- Do I just not know what I am doing when publishing? ...

MFC dialog buttons show up as black boxes

I have an old MFC utility written with VS2008 project. We have used this utility for a few years now and I have never experienced this problem personalty but it is showing up more and more often on customers computers. Sub dialogs launched from my main dialog will have their buttons blackened out. I have included a screenshot from one ...

My.Resources in Class Library not behaving as expected when deployed

ASP.NET application w/CSLA framework; Visual Studio 2008 I have a class library of business objects. I am storing the broken rules strings in the Resource file associated with the project (My Projects > Resources.resx). I added a new resx file to the project and named it Resources.fr-CA.resx to store the french language equivalents of t...

What's an easy way to edit 256+ color toolbar resources in VS2008?

When I go to edit a toolbar resource in VS2008, it converts it to a 16color (4-bit) bitmap. WTF? What do you use to edit toolbars that doesn't suck? You've got to be kidding me... surely there is an add-on or a plug-in to the VS2008 resource editor to make it work correctly with high color bitmaps? This just seems insane. How are al...

How to integrate CUDA .cu code with C++ app

This post closely resembles my earlier post: http://stackoverflow.com/questions/2090974/how-to-separate-cuda-code-into-multiple-files/2092091#2092091 I am afraid I made such a blunder of what I was actually asking that it will be too confusing to try and correct it there. I am basing this code loosely off the cppIntegration example fro...

DataRelation between two data tables - can't bind data to a listbox (C# .NET 3.5)

C# (.NET 3.5) I have an SQLite database with two tables - employees (the first column being id INTEGER PRIMARY KEY), and holidays (id INTEGER - meaning the ID of the employee; start DATE, end DATE - self-explanatory). My form contains textboxes, checkboxes etc. to represent the employee details - but say I'd also like a list box, listi...

Visual Basic Loop and Display one line at a time

I'm using visual studios 2008, VB9 and I am trying to write an app that basically performs calculations on a set of data input by a user. During the calculations, I want to display the data at each step, and have it retained in the display area on the GUI (not overwritten by the next data being displayed). For example: UserInput = 1 D...

JavaScript debugging in VS2008

I'm having a real problem trying to attach the JavaScript debugger in VS2008 to a web project. The web app is an ASP.NET MVC project but I don't think that should matter. I'm using jQuery and have a .js file loaded when the page loads and in this .js file I call $(document).ready(function() { ... } and do some stuff and this "works." Wh...

Immediate-window-like command prompt?

Hi, Does anyone know if there exist some kind of immediate-window-like command prompt, either to run from inside VS or as a separate program. It would be nice to have something like that to try and evaluate static methods etc without having to debug the solution (for example, evaluate Path methods) ...

How do I see the value of a GUID in the Visual Studio 2008 debugger?

When you look at a GUID values item in the watch window you do not see the value of the item, when you expand the item you just see “Empty” this is very misleading! You have to add “ToString()” to the value to see something useful. So how do I get Visual Studio to add the “ToString()” it’s self? I am using VB.NET if it make a differ...

How to create .msi setup package for Visual Studio 2008 Add-in?

Hi, I've created an Add-In for Visual Studio 2008. The only thing remaining is to create a setup package so that others can install and use my Add-In. How can I do this in Visual Studio? I tried creating a simple setup package, inserting files into the Add-Ins folder in the user's Documents folder, and it all worked as expected, except...

Link for Jeffs VS Color Theme?

http://www.codinghorror.com/blog/files/exported-font-and-colors-for-jeff-atwood-sept-19.zip The Link is not working, anybody has a mirror, or an export for VS 2008? ...

Change WebService Proxy URL in Visual Studio .NET 2008

I've created a WebService Proxy from a given URL, but at runtime a need to change this URL depending of some conditions. How to do it? I've searched on the web and founded that I should change the "Url" property. But, some how, this property isn't exposed in my proxy class. I am using Visual Studio .NET 2008 ...