visual-studio-2008

How can step through an Action that is requested from JavaScript during execution?

There is this one action that is requested using javascript during the loading of a page, it takes over 25 seconds to resolve. Looking at the code makes me think there is a scaling issue, but I am wondering if there is any way I can step through the code during the request so I can see what is happening. I try clicking 'debug/start debug...

Unit Test Best Practices For Visual Studio Solutions

Hey all, I've been tasked to re-architect our build process here at work and I would like to start including unit testing (nUnit) to our projects. Through my research I've got a good grasp on the technology I'll be using, but I wanted to get some advice on best practices on setting up my solution for testing and to make sure my proposed...

Can a static property of a static class be a DataMember of a BindingSource?

I have static class that has a bunch of static properties. When I try to bind the property to a BindingSource (in the UI), I can pick the static class as the DataSource, however, when I drop down the DataMember combo, there is nothing there. Can I use a static property of a static class as a DataMember of a BindingSource? I should men...

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...

crystalreports copy paste from report viewer

Using c#, vs2008, crystal reports .net that comes with vs2008. I can create reports ok. I notice when i show a report that if i click on a field on the visible report it highlights the field with a dotted border. Is there 1. a Way to change this border highlight to a custom one 2. a way to right click context select/high light the fiel...

Exclude setup.dll from Smart Cab Project in VS2008

I have added some custom actions to our installer which is run on CE5 and WM6. This installer works fine and builds fine. There is however one annoyance. The setup.dll is deployed to the device and this file is not necessary. I've read several websites on creating a setup.dll file, MSDN and even the mobile SDK. They all state the same s...

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...

Where to start with multi-touch based applications for Windows 7

Hi, I currently develop vb.net and .NET web applications using Studio 2008. I want to start developing applications for this device.... http://exopc.com/en/exopc-slate.php A review of the product to give you more of an idea can be found here... http://kevindark.co.uk/Blog.aspx?i=1&tg=EXOPC Demonstration videos of capabilities can be...

Windows 7 with VS2008, Mobile Device Emulator Not Working

I have a windows mobile app developed under windows XP / Visual Studio 2008. When I try and run it on windows 7 through visual studio I cant get the emulator to connect to the internet. Other posts on the web have suggested windows 7 / VS2008 dosn't work for mobile device emulation. Is this true? ...

Outlook Addin only loading on first instance of Outlook

Hi All We have an Outlook Addin developed in VS2008 using VSTO. This works fine and loads as expected when Outlook is fired up, both in debug and compiled versions. The problem occurs if the user opens another instance of Outlook - our addin is not loaded into this instance. Any thoughts ? ...

What does pressing SHIFT+DEL in project tree in Visual Studio do?

Hi I pressed SHIFT+DEL on source code file name in project tree in Visual Studio and it became grayed. What does it do? How can I undo? Thanks UPDATE: Refactored hot-key name in the title. My apologies to all the parties affected. ...

Can we use "Boost" librarys in our own librarys compiled under CLR?

So it is easy to create a win 32 project and use boost. I did not tried it yet but I plan to. I wonder If I can use boost in CLR mode. Is it possible? Has any one tried? ...

Compilation of large class hierarchy consumes lots of memory after adding boost::serialization

We needed serialization of quite large C++ class hierarchy with lots of inheritance, contraction, shared pointers, etc. I decided to use boost::serialization library. My problem is that while compilation of this library on VS 2008 cl takes over 1 GB of RAM memory. I suppose this is caused by template-based serialization in Boost. This c...

Problem with refreshing the status of files with VisualSVN and AnkhSVN

We use VisualSVN Server as our Version Control server. We integrated TortoiseSVN into Visual C++ 2008 using VisualSVN. Now, I want to see if a file is locked by another user. When I press the "Refresh Status" button, nothing changes. What am I doing wrong? I also uninstalled VisualSVN, and installed AnkhSVN instead. The same proble...

Why would all of my references have yellow exclamation points on them in my .NET class library?

I've been developing a class library for quite sometime and all of the sudden, sometime last week, I opened my project and all of my references have yellow exclamation points on them now (System.dll, System.Drawing.dll, etc..). I've tried removing the references and re-adding them to fix any broken reference paths, but they continue to s...

Is there a way to automatically adjust a list column in MFC?

The program I'm editing uses this code to generate the columns in a listbox: m_list.InsertColumn(0,_T("Parameter"), LVCFMT_LEFT, 90); m_list.InsertColumn(1,_T("Show?"), LVCFMT_LEFT, 50); m_list.InsertColumn(2,_T("Value"), LVCFMT_LEFT, 400); When the user is using the program, the user can click on a row (cell? I'm not sure of the nome...

Is there a way to copy the case of a character and impose it on some other character in output?

VS2008 allows you to use regular expressions in the find/replace dialogs. I've run into a couple of moments where I've needed to copy the case of a specific character and impose it on the replace string. For example I have a block of code that has Monday and monday scattered throughout. I want to change each Monday to a Friday as well...

crashes not trapped with MS VS Debugger - how to catch?

I'm getting random crashes from my c# app (Windows 7/VS2008), and it doesn't give me a usual stack trace, but rather suggests to close/debug/find info windows 7 kind of dialog box. I'm running the app either from under VS2008 or stand alone - same thing. Clicking "Debug" suggests to debug with a new instance of the VS, which fails as "an...

Two way binding with UI quirks

I haven't really done a two way binding project before, so this might be a simple question. I have an business object with all the right interfaces (INotifyPropertyChanged, etc...). I bound a Int32 property called CPP to a textbox named txtCPP via a BindingSource. The rules state that if CPP is less than 0, the text box should be blan...

Problem starting debug build on Windows Server 2008R2

Hi all, I have a Windows service that is written in C++ using VS2008. I now want to debug that service remotely on my Windows Server 2008R2. But when I start the service I get an application error saying: Faulting application name: MyService.exe, version: 1.99.96.0, time stamp: 0x4c87cf49 Faulting module name: MSVCR90.dll, version:...