visual-studio

How do I split a large MFC project into smaller projects

We have a large MFC/C++ Visual Studio 2005 solution which currently consists of two projects: Code (around 1500 .h/.cpp files, linked dynamically to MFC) Resource DLL (we translate the resources using an external tool) What options do we have (lib, dll, ...)? Where do we start? Is there a technical sample of this or a tutorial (I ...

Visual studio 2008 html project documentation

hi there, i read a lot of threads on stackoverflow regarding the documentation production under visual studio. i went on sandcastle website but i'm not sure it is what i'm looking for. I'm trying to produce a website msdn stile where my team can find project documentation. Visual studio allow to create xml files but next step still miss...

Visual Studio line deletion

Is there any way in Visual Studio 2003 that I can delete a line without it being copied into the clipboard? There are instances when I want to copy the first line of a block of text and then delete the following n lines but this then puts the last line I deleted into the clipboard, which is very annoying. I have come from a brief keymap...

Using a VS setup package to update a registry key

I can't get a setup package to update the following default value: HKEY_CLASSES_ROOT\tel\shell\open\command It will create the value on install, but won't update it. Any clues if this is possible? Thanks Ross ...

Track handle creation / deletion

I have a large old program which has some rather complex graphical displays (all via standard API calls). The program appears to be working fine, but I recently looked at the "handles" field of Windows Task Manager when this program was running and noticed that the number of handles was gradually and relentlessly creeping upwards. Is th...

Exclude file types from search in Visual Studio

Often when I want to search through my code in Visual Studio, I know the thing I'm looking for is in some C# code. However, as I've used the same variable name in a javascript file, I have to wade through all those search results too. This gets even worse when the text I'm looking for is also used in a third-party javascript library that...

Will visual studio 2010 express support addins?

I know vs2008 express didn't. I'm hoping this will change with vs2010. Anyone know? Link me? Edit: Anyone have a primary source? While "As far as I know" answers can be helpful, in this case it still leaves a possibility - which is exactly where I started. ...

How I bring back property thingy in VS2008

I accidently closed the property thing in VS2008, you know the one where when you're using Winforms you can edit like a controls text, font, dock, anchor, etc, etc. How I get it back can't find! To clarify it's the side panel thingy where you can edit control properties... usually goes side by side with the Toolbox, like you can't deve...

AjaxControlToolkit.CalendarExtender and System.Web.Extentions version error

I have VS 2005, 2008 on my dev box. New project from other developers who only have 2005 installed. When I build it I get error. Error 1 Indirect reference is being made to assembly System.Web.Extensions version 3.5.0.0, which contains 'AjaxControlToolkit.CalendarExtender'. This Project references a prior version of System.Web.Exten...

Measure CPU / RAM usage of a program

Hi, could anyone suggest a way (other than using Task Manager) to track and log a program's usage of CPU and RAM in order to profile its performance? I'm working under Windows. Something generic would be useful. A more specific request solution would involve Visual Studio. I've tried Performance Wizard, but it doesn't seem to give me t...

Unclear exception when compiling ASP.NET project

I have an asp.net application, with a number of referenced dll's. Now it seems when compiling the project I keep getting this one error: The specified module could not be found. Exception from HRESULT: 0x8007007E I See that one of the dll's that get referenced is the interop.dll, I suspect this error comes from the fact that intero...

Visual Studio Debugging and Database (Oracle) Connections?

Each time I run my application it creates a connection to the Oracle database (pretty typical). The problem I'm running into is that, when I kill the debugger to stop the application the code to close the database connection never gets called. Oracle doesn't seem to realize that those connections are now unimportant and it tries to kee...

Setting up visual studio c++ 2008 with mysql c api

Hello, I'm wondering if anyone can help me on getting my visual studio c++ project setup correctly to work with MySql? I downloaded and installed MySql Server, and installed the developer content with the include files, but beyond that I'm a bit lost. I tried adding the 'include' directory in my MySql install path to my additional incl...

Visual Studio 2008 - Sharing Data in C++/C# Multi Project Solution

Hi, I have a solution with 2 projects: a c++ main project a c# project (display simulator) Today these 2 apps share data using a loopback TCP client/server connection, but that's not very optimal (timing issues..). I was wondering if there was a way to access the c# data from the c++ project directly and vice versa? (It seems to be...

Define a struct in a midl generated header file

I am in the process of automating the build of a legacy product and have hit a wall... I have a .idl file that is compiled in VC++ 6.0 using midl to generate a .tlb, .h and .c file that has a manual build step to add: struct StructDef; Just ahead of an MIDL_INTERFACE in the generated .h file. The rest of the .h file uses the definit...

Custom template for Visual Studio Service References?

The Setup I want to consume a web service in Visual Studio. I added a service reference, pointing it at a WSDL document. I get a bunch of generated code that works like a champ. The Problem In the Service Reference dialog, I selected "Internal" as the "Access level for generated classes." It appears as though that puts the "interna...

Visual Studio Panels

As a .Net developer I spend a large portion of my day working in Visual Studio (2008). While there are a lot of useful functionality inside the IDE, there are many things that I find frustrating on a daily basis. One of those things are the windows docking and pinning. There are many different windows types (debugging, pending checkins...

Visual Studio: Warn when private or internal members have no references

Is there a way to get visual studio to warn that a private member does not have any references within the class? How about internal members that have no references within the package / module? I have been re-factoring my code and I don't want to keep [right-click] --> Find All References for each member in my code base to ensure I have ...

How to loop a Console App

Hi all i just need to be able to loop a console app. what i mean by that is: program start: display text get input do calculation display result display text get input. REPEAT PROCESS INFINATE NUMBER OF TIMES UNTIL THE USER EXITS THE APPLICATION. program end. i hope that made sense. can anyone please explain how i would go about doi...

Outlook Add-In tutorial?

Does anyone know of a good example for getting started with Outlook add-ins using C#? ...