visual-studio-2005

How to create uninstaller in visual studio setup project?

心不动则不痛 提交于 2021-02-19 04:01:57
问题 I have created a visual studio setup project, but I don't know how to create uninstaller in my visual studio setup project, please tell me how to do that?? I am using Visual Studio 2005, Or is there any other software which creates complete setups with uninstaller. 回答1: I have created a visual studio setup project, but I don't know how to create uninstaller in my visual studio setup project, please tell me how to do that?? Kazar's answer is correct. The Visual Studio setup creates a .msi file

How to simplify multiple constructors?

北城以北 提交于 2021-02-16 08:40:13
问题 I would like to have two constructors for a class, as follows: public MyClass() { // do stuff here } public MyClass(int num) { MyClass(); // do other stuff here } Is the above the correct way to achieve my purpose? Is there some kind of shorthand which is better? 回答1: public MyClass() { // do stuff } public MyClass(int num) : this () { // do other stuff with num } The : this() bit is called a Constructor Initialiser . Every constructor in C# has a an initialiser which runs before the body of

How to simplify multiple constructors?

[亡魂溺海] 提交于 2021-02-16 08:35:47
问题 I would like to have two constructors for a class, as follows: public MyClass() { // do stuff here } public MyClass(int num) { MyClass(); // do other stuff here } Is the above the correct way to achieve my purpose? Is there some kind of shorthand which is better? 回答1: public MyClass() { // do stuff } public MyClass(int num) : this () { // do other stuff with num } The : this() bit is called a Constructor Initialiser . Every constructor in C# has a an initialiser which runs before the body of

How to get a stack trace when C++ program crashes? (using msvc8/2005)

两盒软妹~` 提交于 2021-02-06 11:55:50
问题 Sometimes my c++ program crashes in debug mode, and what I got is a message box saying that an assertion failed in some of the internal memory management routines (accessing unallocated memory etc.). But I don't know where that was called from, because I didn't get any stack trace. How do I get a stack trace or at least see where it fails in my code (instead of library/ built-in routines)? 回答1: If you have a crash, you can get information about where the crash happened whether you have a

How to get a stack trace when C++ program crashes? (using msvc8/2005)

别来无恙 提交于 2021-02-06 11:55:11
问题 Sometimes my c++ program crashes in debug mode, and what I got is a message box saying that an assertion failed in some of the internal memory management routines (accessing unallocated memory etc.). But I don't know where that was called from, because I didn't get any stack trace. How do I get a stack trace or at least see where it fails in my code (instead of library/ built-in routines)? 回答1: If you have a crash, you can get information about where the crash happened whether you have a

VS ignores symbol _Debug in Resources.rc (Visual Studio bug ?)

…衆ロ難τιáo~ 提交于 2021-01-28 19:49:26
问题 Can anybody explain me that very strange fenomenon ? In my VS2005 Managed C++ project file (VCPROJ) is defined: <Configuration Name="Debug|Win32" .... PreprocessorDefinitions="WIN32;_DEBUG" .... </Configuration> <Configuration Name="Release|Win32" .... PreprocessorDefinitions="WIN32;NDEBUG" .... </Configuration> Whereever I used the symbol _Debug it works perfect. For example: #ifdef _DEBUG #include "noexist.h" #endif produces an error C1083: Cannot open include file: 'noexist.h': No such

Outlook Add-in VSTO: Ribbon Type property is not shown

☆樱花仙子☆ 提交于 2021-01-28 04:45:20
问题 I am a new VSTO 2015 user. I want to add a custom group to the Outlook 2010 built-in Ribbon message tab. I followed a Microsoft example. After creating the project I added a new Item and selected the Ribbon (Visual Designer). The ribbon shows up in the designer however I cannot see the RibbonType property in the Ribbon’s property window. Therefore I cannot select the Microsoft.Outlook.Mail.Compose that will allow me to add the custom group to the message tab. Your help is highly appreciated.

Outlook Add-in VSTO: Ribbon Type property is not shown

狂风中的少年 提交于 2021-01-28 04:24:41
问题 I am a new VSTO 2015 user. I want to add a custom group to the Outlook 2010 built-in Ribbon message tab. I followed a Microsoft example. After creating the project I added a new Item and selected the Ribbon (Visual Designer). The ribbon shows up in the designer however I cannot see the RibbonType property in the Ribbon’s property window. Therefore I cannot select the Microsoft.Outlook.Mail.Compose that will allow me to add the custom group to the message tab. Your help is highly appreciated.

VB.Net 2005, how can I subtract a date from the (current date minus 7 days) and produce a number of days?

淺唱寂寞╮ 提交于 2021-01-27 14:21:40
问题 I have a date in the future e.g. 13/10/2008 I need to subtract the current date (today is the 28/09/2010) minus 7 days, so thats 21/09/2010 minus 13/10/2008, which would equal erm, 720 something ? But the current date won't always be 28/09/2010, obviously. I need the code for this. EDIT: When i said future I mean past :) 回答1: Sub Main() Dim dt As DateTime = New DateTime(2008, 10, 13) ' be careful what you are subtracting from what ' the date you have is not in the future (year 2008) ' if the

How to use tlb files in a native C++ project

假如想象 提交于 2021-01-27 05:59:36
问题 I have a tlb files that contains some function declaration that I need to use. If I use #import "type_library.tlb" I can correclty reference the function from my code: tlb_namespace::required_function(); But when I compile the project the linker says that tlb_namespace::required_function is an unresolved external symbol. How can I succesfully build this kind of project? EDIT : I have used the same type library in a Dummy VBA access project. I have added the reference to the type library and I