visual-studio-2008

Can .Net Application be converted into a Portable App i.e. single .exe

╄→гoц情女王★ 提交于 2019-12-19 02:58:08
问题 Can a .Net application be converted into a single .exe portable application? i.e. no installer, it just runs? I imagine all the dll's, resources etc need embedding into the exe? If so, how would I do this? Thanks 回答1: You could use ILMerge to merge all assemblies into a single executable. But you still need the framework runtime installed. To turn your executable into a native executable you may take a look at this question. 回答2: No - you can't statically include the .net runtime in your own

Error 1001 using custom installer with Visual Studio 2008

妖精的绣舞 提交于 2019-12-19 02:35:06
问题 I've created a simple winforms app and a custom installer. It all seems simple enough but I get the following popup and error details in the event log. The description for Event ID 11001 from source MsiInstaller cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. If the event originated on another computer, the display information had to be saved

Prefast with Visual studio 2008

拜拜、爱过 提交于 2019-12-19 02:34:08
问题 Is there any way to enable Prefast in Visual Studio 2008 Professional addition? I am trying to compile native c++ code. I have tried following things, Downloaded Windows SDK Set compiler's Bin / Include / Lib paths to the SDK. Added additional option for c/c++ compilation (/Analyze:WX-) I believe these steps should have set the appropriate compiler to do static analysis using prefast. This setting actually worked with Visual Studio 2005. However it does not work with Visual Studio 2008. It

Visual Studio project build as an executable AND a DLL

末鹿安然 提交于 2019-12-18 21:50:12
问题 In Visual Studio 2008 project properties, Application tab, I can set the Output type to Windows Application, Console Application, or Class Library. I have a project that I want to build as a stand-alone tool (console app) and be available to a couple other tools I'm working on as a class library. The VS GUI only lets me choose one or the other, and building the proj twice all the time is inconvenient. How can I set it up to build both output types in a single build job? Do I write some custom

How to use boost::error_info correctly?

£可爱£侵袭症+ 提交于 2019-12-18 19:18:23
问题 I'm trying to following the examples on this page: http://www.boost.org/doc/libs/1_40_0/libs/exception/doc/motivation.html The minute I try the following line: throw file_read_error() << errno_code(errno); I get an error: error C2440: '<function-style-cast>' : cannot convert from 'int' to 'errno_code' How do I get this to work?? Ideally I want to create something like this: typedef boost::error_info<struct tag_HRESULTErrorInfo, HRESULT> HRESULTErrorInfo; But I can't even get the first

“Illegal characters in path.” Visual Studio WinForm Design View

我的梦境 提交于 2019-12-18 19:01:36
问题 I am putting together a lightweight MVP pattern for a WinForms project. Everything compiles and runs fine. However when I attempt to open the WinForm in design mode in Visual Studio I get a " Illegal characters in path " error. My WinForm is using generics and inheriting from a base Form class. Is there a problem with using generics in a WinForm? Here is the WinForm and base Form class. public partial class TapsForm : MvpForm<TapsPresenter, TapsFormModel>, ITapsView { public TapsForm() {

What's the default intellisense shortcut in vs2008?

时光毁灭记忆、已成空白 提交于 2019-12-18 18:58:02
问题 I'd like to open the intelligence window without typing a character and then backspacing it. I can't seem to remember the shortcut for this. What is it? 回答1: Ctrl + Space ? Also, go to Tools -> Options -> Environment -> Keyboard or Default Keyboard Shortcuts in Visual Studio, you can then search for commands and see what is assigned to that (and remap). 回答2: Ctrl + Space for normal Intellisense, and Ctrl + Shift + Space for parameter Intellisense (e.g. to see what overloads are available in a

What's the default intellisense shortcut in vs2008?

爱⌒轻易说出口 提交于 2019-12-18 18:57:07
问题 I'd like to open the intelligence window without typing a character and then backspacing it. I can't seem to remember the shortcut for this. What is it? 回答1: Ctrl + Space ? Also, go to Tools -> Options -> Environment -> Keyboard or Default Keyboard Shortcuts in Visual Studio, you can then search for commands and see what is assigned to that (and remap). 回答2: Ctrl + Space for normal Intellisense, and Ctrl + Shift + Space for parameter Intellisense (e.g. to see what overloads are available in a

Beginning ASP.NET MVC with VB.net 2008

橙三吉。 提交于 2019-12-18 17:37:30
问题 Where can I find a good tutorial on learning ASP.NET MVC using VB.net 2008 as the language? Most in-depth tutorials that I found in searching the web were written in C#. 回答1: Have you tried adding the word "VB" to your searches?? http://www.myvbprof.com/2007_Version/MVC_Intro_Tutorial.aspx http://www.asp.net/learn/mvc/tutorial-07-vb.aspx http://geekswithblogs.net/jwhitehorn/archive/2007/12/10/117569.aspx 回答2: http://quickstarts.asp.net/3-5-extensions/mvc/default.aspx Is that relevant? 来源:

Set DCB Fails When Attempting to Configure COM Port

强颜欢笑 提交于 2019-12-18 17:13:33
问题 I'm trying to write a C++ MFC application that uses the serial port (e.g. COM8). Every time I try to set the DCB it fails. If someone can point out what I'm doing wrong, I'd really appreciate it. DCB dcb = {0}; dcb.DCBlength = sizeof(DCB); port.Insert( 0, L"\\\\.\\" ); m_hComm = CreateFile( port, // Virtual COM port GENERIC_READ | GENERIC_WRITE, // Access: Read and write 0, // Share: No sharing NULL, // Security: None OPEN_EXISTING, // The COM port already exists. FILE_FLAG_OVERLAPPED, //