visual-studio

Passing C++ structure pointer from Perl to arbitary dll function call

Hi, I am using Win32::API to call an arbitary function exported in a DLL which accepts a C++ structure pointer. struct PluginInfo { int nStructSize; int nType; int nVersion; int nIDCode; char szName[ 64 ]; char szVendor[ 64 ]; int nCertifi...

How to start another project in the solution in Debug mode

I've got a WCF host application which gets started by an executable with some dynamic parameters. Now I want to debug the this application but since it's getting started by the other tool VS.NET won't load it in debug mode. Is it possible to write some DEBUG only code to force it execute this process in DEBUG mode so it'll hit the bre...

Problem in accessing members of class in C# DLL from C++ project

I have added a C# DLL into a C++ project as mentioned at MS support, however I was not able to access its variables and methods inside the class. It also says that it's a struct and not a class, I don't know if it is important but I thought I should mention it is as well. Whenever I write . or -> or :: after the object, nothing appear. B...

How do I make one Visual Studio project automatically execute before another?

I have two projects in my solution Client Server Both compile to console applications. When i execute the Client project by right clicking and selecting Debug...Start New Instance or by pressing F5, I would like it to automatically execute the server application. Is there a way to set this up? ...

Can't uninstall a service developed in Visual Studio

I have a Visual Studio project consisting of a service and an installer for it. During the development I have installed and uninstalled the msi-package at least fifty times but last time I tried to uninstall it I got an error message saying "the installed product does not match the installation source" and if I click "Ok" on that message...

C++ Visual Studio character encoding issues

Not being able to wrap my head around this one is a real source of shame... I'm working with a French version of Visual Studio (2008), in a French Windows (XP). French accents put in strings sent to the output window get corrupted. Ditto input from the output window. Typical character encoding issue, I enter ANSI, get UTF-8 in return, o...

How to reference on cobol projects without compiler?

Is it possible to make different Configuration of one project one with and other without a installed cobol compiler? I have a big project general written in VB.Net with some underprojects written in cobol. Is it possible to create different Configs like "DebugVB" for the VB-Programmers and "DebugCob" for the cobol cracks? I think of a...

Component Object Model via C++(maybe VS)

Hello, I was searching through google about Microsoft Component Object Model. Found only few normal articles and only 1 step by step example, which doesn't work. Is there any links/references/books/tutorials you know how to build simple COM component via VS C++? Any answer or help would be appreciated! ...

Opening a Visual Studio Solution file creates 'Visual Studio 2008' folder in the dir.

I was using a roaming profile, however we have since stopped using this. Ever since, every time I open a solution in Visual Studio (double click it from windows explorer) a folder called "Visual Studio 2008" is created in the same dir as the sln file. I've tried resetting the Visual Studio settings, looked through the registry, and even...

Changing properties for multiple controls in Visual Studio Designer at once

Generally, is there a way to change the same property of multiple controls at once in a Windows form? Specifically, I have many controls in a Windows Form with the private modifier. Is there a way to change the modifier for all the properties to protected at once, without having to click on each control? Thanks for the help. ...

visual studio add in - add file to project

Hi, Google's not being my friend today. Can anyone point me in the direction of any resources regarding creating add ins for Vs 2008? Specifically, I have 2 tasks I cannot find any resources for: 1) Is a project currently open 2) How to add a file to the open project If anyone has any resources / links it would be great. Thank you ...

Fixing .NET code generation of properties for user controls

I have a property of type IEnumerable<SomeClassIWrote> in a user control. When I use this control in a GUI, the .Designer.cs file contains the line: theObject.TheProperty = new SomeClassIWrote[0]; Which for some reason causes a compiler warning: Object of type 'SomeClassIWrote[]' cannot be converted to type 'System.Collections.Generi...

Visual Basic - Object reference not set to an instance of an object

I'm receiving the following error in VB.Net. "Object reference not set to an instance of an object" It highlights "Next" at the end of the For Loop. Any help would be great. Imports System.IO Public Class LoginForm Dim Username() As String Dim Password() As String Dim Index As Integer Public Function encrypt(ByVal da...

Can string formatting be used in text shown with DebuggerDisplay?

I want to apply the DebuggerDisplayAttribute to include an memory address value. Is there a way to have it displayed in hexadecimal? [DebuggerDisplay("Foo: Address value is {Address}")] class Foo { System.IntPtr m_Address = new System.IntPtr(43981); // Sample value System.IntPtr Address { get { return m_Address;...

Is there a Ccache for Visual Studio?

I am aware that scons implements the functionality of ccache, but I am stuck with another build system. I also know there is a gocache project on sourceforge that aims to implement ccache like functionality for other compilers, but it seems not complete. ...

You are not authorized to view this page is a dns issue?

I am getting the following error while browsing my asp.net page deployed in IIS: You are not authorized to view this page You do not have permission to view this directory or page using the credentials that you supplied. -------------------------------------------------------------------------------- Please try the following: Contact...

Create Visual Studio (vs.net) 2008 Solution Templates?

Is it possible to create vs.net 2008 solution templates. From my search results it is not possible to create a solution templates with all the respective project references. I have a vs.net solution with multiple projects and references in each. I would like to wrap all of them up into a template where I can use as standard base start...

Project file contains ToolsVersion="4.0", which is not supported by this version of MSBuild.

How do I get rid of this error, I am using Visual Studio 2008 because 2010 wouldn't open some of my VB Projects. ...

Automatically Refactor Access Modifiers

Is there a tool that can run through a visual studio solution and adjust access modifiers to anything not being called in the solution is converted to private or internal where applicable? I suppose I could just change everything to private, and then use the compiler messages and do it by hand...but that could take a while, if there was...

Useful Visualizers for Visual Studio

I recently found out about the Linq To Sql Visualizer for Visual Studio. Are there any other useful visualizers out there? ...