visual-studio-2010

VS2010 Express missing devenv.exe so I can't fix “project out of date” issue

喜欢而已 提交于 2019-12-30 06:10:08
问题 I'm actually trying to fix this issue where my projects are always out of date by using the steps outlined in this answer to enable system logging. However I can't find devenv.exe.config or the matching .exe file anywhere on my machine let alone in either C:\Program Files or C:\Program Files (x86) . I'm running Windows 7 SP1 (which I presume isn't particularly relevant) and VS2010 Express SP1. I was thinking that maybe devenv isn't available in the Express version but I can't find any info to

What is the difference between a “Win32 Project”, “CLR Empty Project”, and “Empty Project” templates in Visual Studio?

北慕城南 提交于 2019-12-30 06:08:05
问题 I've just recently started working with Visual Studio this summer, primarily on CUDA and OpenCV related projects. Prior to this, I had been doing my development on Linux for CUDA using Makefiles and the common.mk makefile from NVIDIA. So my question is as follows: I've not been able to figure out for the life of me what the difference between some of the different project templates are. I know that I've had to use "Empty Project" from the general tab of the Visual C++ options, but that's more

What is the difference between a “Win32 Project”, “CLR Empty Project”, and “Empty Project” templates in Visual Studio?

﹥>﹥吖頭↗ 提交于 2019-12-30 06:06:12
问题 I've just recently started working with Visual Studio this summer, primarily on CUDA and OpenCV related projects. Prior to this, I had been doing my development on Linux for CUDA using Makefiles and the common.mk makefile from NVIDIA. So my question is as follows: I've not been able to figure out for the life of me what the difference between some of the different project templates are. I know that I've had to use "Empty Project" from the general tab of the Visual C++ options, but that's more

Can visual studio automatically indent / format preprocessing directives? [duplicate]

狂风中的少年 提交于 2019-12-30 06:02:56
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to force indentation of C# conditional directives? Say I want to type this in Visual Studio: class Program { private const Byte NUM_THREADS = #if DEBUG 1; #else 8; #endif } If I simply type it out (i.e. not manually fix any indentation), Visual Studio will format it like this: class Program { private const Byte NUM_THREADS = #if DEBUG 1; #else 8; #endif } Is there anything I can do so it automatically

VS2010: Link in a single library statically

断了今生、忘了曾经 提交于 2019-12-30 06:01:52
问题 Situation: I'm building a library with VS2010, and it has a dependency on LibraryA. I am only using one of many features that LibraryA offers, so I want to link it in statically. Everything I'm reading about this tells me to set the whole project to link statically against MFC, which is something I don't want to do. I'm just fine with my library dynamically linking against windows DLLs; I just want to statically link against LibraryA only. Fooling around with the options windows, I don't seem

Make CSS 3.0 the Default in Visual Studio 2010 SP1 Web Update

你。 提交于 2019-12-30 05:43:09
问题 I'm working on a HTML5 / CSS 3.0 / MVC 3 project in Visual Studio 2010. Every time I restart VS and then open a CSS file, it's always set to 'CSS 2.1'. Is there a way to tell VS I want to use CSS 3.0 always (or at least by default)? BTW, I have looked under "Tools>Options>Text Editor>HTML" - no CSS options, default is HTML5. I have also looked under "Tools>Options>Text Editor>CSS" - no version option as far as I can see. Thanks, Michael 回答1: I had a similar problem after SP1. I had to

adding a library to visual studio 2010 express

霸气de小男生 提交于 2019-12-30 05:11:26
问题 cant seem to find a definintive answer to how to add a library. theres project properties with a whole bunch of places to add filepaths but im wondering if i shouldnt be editing all of them, can someone tell me the purpose of each possible entry, if there are more, and possibly which ones i should be editing? or a handy tutoril? ill list what entries i know about. currently trying to add the Wwise library. project-> project name properties ->configuration properties->vc++ directories->library

VSIX Package doesn't include referenced project's dependencies

久未见 提交于 2019-12-30 04:56:07
问题 We have a visual studio package (VS Package) that references a class library project (Project A). Project A in turn references another class library project (Project B). So the dependency structure looks like this: VS Package > Project A > Project B All projects exist inside the same solution and the dependencies have been set up as proper project references. If I build the package in visual studio and look in the bin/Debug folder all necessary assemblies are there including Project B's.

How to make a custom ComboBox (OwnerDrawFixed) looks 3D like the standard ComboBox?

拥有回忆 提交于 2019-12-30 04:42:07
问题 I am making a custom ComboBox, inherited from Winforms' standard ComboBox. For my custom ComboBox, I set DrawMode to OwnerDrawFixed and DropDownStyle to DropDownList . Then I write my own OnDrawItem method. But I ended up like this: How do I make my Custom ComboBox to look like the Standard one? Update 1: ButtonRenderer After searching all around, I found the ButtonRenderer class. It provides a DrawButton static/shared method which -- as the name implies -- draws the proper 3D button. I'm

VS2010 C++ variadic template example

天大地大妈咪最大 提交于 2019-12-30 04:24:10
问题 I have a class template and I can't seem to figure out how to perform a Variadic Template style instantiation. Here is the "code" so far of what I'm looking for: template<typename _Classname, typename... Args> class CFunctorStartExT { friend class CXXFactory; protected: template<typename U> CFunctorStartExT(typename U& _functor, Args&... args) : m_Functor(_functor), m_args(args) { } virtual bool ProcessLoop(CSomeClass* pThread) { return m_Functor(pThread, m_args); } protected: _Classname& m