visual-studio-2008

Visual Studio Setup Project

I’m trying to use a Visual Studio Setup Project to deploy a C# Application. In a VS Setup project, is it possible to dynamically change the application folder before a project is installed, or even to add any code behind the set-up project at all? What I am trying to achieve is an msi that runs, calculates the installation directory...

Disable menu icons in Visual Studio 2008 AddIn

I have developed an addin for Visual Studio 2008, which extends the main menu with custom menu items. These menu items have custom images and I finally managed to have them displayed correctly using transparency masks. The only problem that still persists is, that the icons look really ugly and unprofessional, when the menu items are dis...

Not all symbols of an DLL-exported class is exported (VS9)

I'm building a DLL from a group of static libraries and I'm having a problem where only parts of classes are exported. What I'm doing is declaring all symbols I want to export with a preprocessor definition like: #if defined(MYPROJ_BUILD_DLL) //Build as a DLL # define MY_API __declspec(dllexport) #elif defined(MYPROJ_USE_DLL) //Use a...

Specify remote qualifier for "use custom web server"

Does anyone know how you set the remote debug monitor qualifier used by Visual Studio when attempting to connect to MSVSMON automatically? To give the context of this question: On our development web server, we have IIS running and an MSVSMON session as 'Stephen.Edmonds@UK06695'. On my development machine, I have Visual Studio 2008 se...

Why this Explicit P/Invoke does not work ?

The following .net to native C code does not work, any ideas extern "C" { TRADITIONALDLL_API int TestStrRef( __inout char* c) { int rc = strlen(c); std::cout << "the input to TestStrRef is: >>" << c << "<<" ; c = "This is from the C code "; return rc; } } [DllImport("MyDll.dll", SetLastError = true)] static ext...

Visual Studio 2008 and XHTML 1.0 Validation

I am trying to validate my web project against the XHTML. I know there are many errors in the document since the W3C validator reports back 104 errors but I am not able to get any error on Visual Studio 2008. I have turned on the HTML validation to show as warnings but still I don't see anything in the ErrorList (warnings). ...

compiling visual studio C# projects on 32 bit and 64 bit

Hello, Visual Studio C# 2008 Windows XP 32 bit I have developed a windows project using VS C# 2008. My machine is 32 bit. So I have been compiling my applications under 32 bit. However, one of our clients has confirmed he cannot install under visa on a 64 bit machine. I am just wondering because I have compiled under a 32 bit machine...

DataGridView Binding searching and other things

Hi, back with a new questions. this time is regarding Data Grids, At the moment i currently have an unbound datagridview control which i populate from a mysql statement, i can then search and repopulate the control from a text box using an on keydown event, which basically takes the indexof the search box and checks it against the retu...

Visual Studio 2008 not nesting files properly in solution explorer

I have a VS 2008 Winforms project, and I recently added an existing form that was developed in a different VS 2008 project. All of the original forms and controls are nesting correctly, however, with the new form, it is showing the form, designer and resx files as 3 separate items. Is there a way to force VS to nest these files properly...

opencv image conversion from rgb to hsv

When I run this following code on a sample image ie an rgb image; and then execute it to display the converted hsv image, both appear to be different... can anyone explain why? or can you suggest a solution for this not to happen... coz its the same image afterall Mat img_hsv,img_rgb,red_blob,blue_blob; img_rgb = imread("pic.png",1); cv...

opencv image conversion from rgb to hsv threshold pains

here's my code.... when i execute it... given any arbit image... it always gives result as an entirely black or entirely white image... is there any problem with the iteration? int main(void) { int i=0,j=0,height=0,width=0,step=0,k=0; Mat img_hsv,img_rgb,red_blob,blue_blob; //reading image... rgb format(default)... CV_8U3C img_rg...

Global.asax for Unit Tests?

In my MSTest UnitTest project, before running any tests, I need to execute some commands. Is there a feature, kind of like Global.asax is for web based projects, that will let me kick off something before any tests run? I should make it clear that when I say "execute some commands", I don't mean DOS commands, but execute some code. ...

visual studio 2008 side-by-side problem

I made an app built it in debug mode and want to run in on another machine. There is an error: the application failed to start because its side-by-side configuration is incorrect What are possible solutions for that? I need to have debug version ...

Is there a way to determine the physical size of the monitor?

The title says it all. In inches, e.g. 21' monitor. The app is a standard WinForms app. EDIT: It appears there really isn't a reliable way to accomplish what I need. Thanks all. ...

Visual Studio 2008 Crystal Report Reference files.

Hi all, I am using Visual Studio 2008 and CR XI R2 for a web application built in silverlight. currently I am having a problem with showing a dynamic image on a crystal report. I was told that the reference file added in the project might be old version, so I replaced the reference files to be 11.5x version from 10.5x version. I r...

Can no longer debug ActiveX controls in Visual Studio 2008

For a long time I would throw up a DebugBreak() or ASSERT(false) in the startup code of my ActiveX control, load up IE, go to a localhost page hosting my control, wait for the dialog to show up, then debug my application. I could also launch it under the debugger by setting IE as the container. I tried again for the first time in 2 mon...

Debug.Assert Appears in Release Mode

We all know that Debug.Assert will not be compiled into the dlls when compiled in release mode. But for some reason Debug.Assert did appear in the release version of a component I wrote. I suspect that I might have mess up my csproject setting. Any idea why Debug.Assert appears in release mode? P/S: I have double checked to make sure t...

Visual Studio 2008 & Perforce. Where is my .vspscc files?

Hi, I use Visual Studio 2008 and Perforce. When I bind my project to perforce(File -> Source Control -> Change Source Control -> Bind), Visual Studio complain like "~.vspscc File is not under source control". Should I create that file for myself, or is that file created by Visual Studio? If it is created by Visual Studio, why does it com...

CBlobResult gives pains.... using Visual C++ 2008... opencv

When I type the following code line.. where img_hsv is a Mat image... IplImage abc=img_hsv; // object that will contain blobs of inputImage CBlobResult blobs; // Extract the blobs using a threshold of 100 in the image blobs = CBlobResult(&abc,NULL,100,true); It displays the following error... error C2661: 'CBlobResult::CBlobResul...

Problems with Silverlight and GeckoFX

Hello, I am trying to use GeckoFX to render Silverlight video, but it does not seem to be working. Does anyone have any idea why this would be? From my understanding it should work properly right out of the box. Thanks! ...