visual-studio

Visual Studio - Can I export templates via command line?

Is the "Export Template" functionality available from a command line anywhere? I checked the command line arguments for both MSBuild.exe and devenv.exe and didn't see anything obvious. ...

Visual Studio 6.0 to Visual Studio 2008

When version VC++ 6.0 application is converted to VC++ 2008, there are LINK2001 / LNK2019 linkage errors. But the same code compiled and linked and runs without any problem in VC++ 6.0 How can I resolve this? ...

"Common Sense" or Practical .NET Coding standards

I'm about to undertake updating our coding standards documentation and I am thinking of perhaps writing them at a somewhat higher level than is commonly done. We have a fair amount of developers that come and go, and they are generally of an intermediate skill level. I want to eliminate the low quality "fluff" sections...for example, "...

Run Visual Studio 2008 Macro on Pre Build Event

I have some Visual Studio Macros created in visual studio which run from the macro explorer and/or keyboard shortcuts. I would like to run these automatically on pre/post build events but see no option to do so in the project properties. Can anyone tell me if this is possible and, if so, how? Thank you Jason ...

Programmatically apply / deactivate breakpoints in visual studio

Hey, Regardless of other options that may achieve the same result (i.e. adding breakpoints by hand) Is is possible to programmatically add a breakpoint into the source code of a visual studio project? such as try { FunctionThatThrowsErrors(obj InscrutableParameters); } catch(Exception ex) { Log.LogTheError(ex); AddBreakPo...

Visual Studio Plug-in to measure time spent on Solution/Project

Hey guys, does anyone know of a Visual Studio (2008) Plug-in that attempts to track how long you've spent working on any given Solution or Project? I realize this would be difficult, like at work I might leave a Solution open all day, but only work on it for a couple of hours, on and off. However at home, I might only open a Solution...

Visual Studio F# Error

I am learning F#, and I came across an intellisense error let rec fib n = match n with | 1 -> 1 | 2 -> 2 | _ -> fib(n-1) + fib(n-2) fib 6 <-- This line says "This expression should have type 'unit', but has type 'int' Does anyone know how I fix this? ...

Can't access localhost/iis after installing Oracle and loopback adaptor

Recently I installed Oracle and the required Microsoft Loopback Adaptor, which worked fine. However, this seems to have screwed up IIS (or at least its interaction with Visual Studio) somehow. I can't connect to localhost or 127.0.0.1 anymore, and I can't even open a web project in Visual Studio 2008 (which used to work fine), getting th...

what is Visual Studio 2008 Shell (integrated mode)?

Hello everyone, I am new to Visual Studio 2008 Shell (integrated mode), I just want to know what is its function? (I did not find much clearly from the web.) From http://msdn.microsoft.com/en-us/vstudio/bb510103.aspx looks like it is some interface/framework to allow tools to integrate with VSTS IDE. My question is whether any Microsof...

Convert static windows library to dll

Question: I have a library contains a bunch of static *lib files, I wish to access them from JNA (a Java library that allows one to dynamically call `dll's from JAVA Code), so is there a way to magically change static lib to dll? Code was compiled using Visual studio (hope that is relevant), and I also have appropriate header files. ...

Collapse all Visual Studio toolbox regions shortcut

Is there a keyboard shortcut or macro to collapse all regions in Visual Studio's toolbox? (Failing either of those, I'll take an addin that allows this!) ...

Is there a way to automatically make a library either static or dynamic?

I know this might be a long shot, but here it goes. I have several active projects and each has sub project library which gets compiled when the main project compiles. These libraries are dynamic ones, but recently there was an issue that might arise a need for those libraries (most of them are shared between projects) to be static inste...

Windows 7 and the case of the missing regtlib.

I've just installed the windows7 RC in a VM and I'm attempting to build our existing projects on the new OS. The projects are c/c++ based and I'm using visual studio 2008. In order to build these projects I need to register several tlb files that are referenced within the code base. However, I've just discovered, that regtlib.exe appea...

FInding the path where Visual Studio is Installed

Hi , I need help as to how I can find the path where Microsoft visual Studio is installed. I need to use that path in my program. What is the function that has to be called to get the path where Microsoft Visual Studio is installed ? ...

How to add Windows Mobile 6.1 image to VS 2008 Device Emulator Manager ?

Hi to all, I have VS 2008 SP1 on my pc, also Virtual PC and ActiveSync 4.5 is installed I just download and install "Windows Mobile 6.1 Emulator Images" msi from microsoft but after install, Mobile images not add to Device Emulator Manager (Under DataStore) What's problem and how to solve it ? Thanks Hamid ...

Visual Studio 2003 pre build script can't find 'svn' command

I'm using a script to get the subversion head revision number from a subversion repository derived from the script found at http://blog.guymahieu.com/2008/06/09/getting-the-svn-head-revision-number-from-a-windows-batch-file/. The script works fine when called from a normal command line, but when calling the same batch file as pre-build-e...

keybd_event() not working in ACTIVEX module with IE PROTECTED MODE

keybd_event() is not working in ACTIVEX module with PROTECTED MODE - I am using activex that simulates keypress but it simply does nothing with new IE8. keybd_event(VK_SPACE, MapVirtualKey(VK_SPACE, 0), 0, 0); keybd_event(VK_SPACE, MapVirtualKey(VK_SPACE, 0), KEYEVENTF_KEYUP, 0); is there a trick to get around this issue? ...

How to hide the exporting functions in DLL

I don't want user to see all the exporting functions through Dependence in my DLL, is there a way to do it? I complie my DLL with C++ and MS Visual Studio. ...

Debugging in visual studio takes 5-15 minutes per page(aspx)

I'm running a Pentium 4 2.8 ghz with 1.7g gigs of ram. ...

LINQ to SQL, Stored Procedures and the Methods Pane (more like Methods PAIN!)

I'm new to LINQ and am having a small issue. I created a DBML file and dragged all of my tables to the design surface. Now, when I try to drag a stored procedure to the methods pane, Visual Studio thinks a second and then doesn't do anything. My method does not show up in the methods pane. Is some error occurring behind the scenes? If s...