visual-studio-2008

LNK4086 warning and missing dll entrypoint in VS2008 asm build

I tried to compile the following .asm file in VS2008 (as part of an empty Win32 dll project to which I added this single .asm file): .386 .model flat, stdcall option casemap:none TRUE equ 1 .code start: DllEntry proc instance:DWORD, reason:DWORD, reserved:DWORD mov eax, TRUE ret DllEntry endp CPUIDI...

Automatically advance minor version number every build (VS 2008)

I use the assembly information version number - and advance it manually through the VS 2008. Is there a way to advance the minor version number automatically each time I Build the solution ? ...

Why have my Visual Studio 2008 SP1 macros stropped working

I just cannot for the life of me figure out why my build event macro is no longer firing. Any ideas? Option Strict Off Option Explicit Off Imports System Imports EnvDTE Imports EnvDTE80 Imports EnvDTE90 Imports System.Diagnostics Public Module EnvironmentEvents Private Sub BuildEvents_OnBuildProjConfigDone(ByVal Project As Stri...

Ajax type controls for .NET winforms

Are there any 3rd part WinForms controls out there that give me ajax type effects. For example I want an effect where if I have a list box or a DataGrid control and someone clicks a field to mark it as complete I want that field to fade away not just instantly disappear. The standard controls get the job done but are not the best looking...

Visual Studio 2008 BuildEvent Macros not Firing

I added this well documented macro to MyMacros, Environment Events in VS 2008 Macros in order to cancel failed builds: Private Sub BuildEvents_OnBuildProjConfigDone(ByVal Project As String, ByVal ProjectConfig As String, ByVal Platform As String, ByVal SolutionConfig As String, ByVal Success As Boolean) Handles BuildEvents.OnBuildProjCo...

IE problem loading sites when debugging with Visual Studio

Quite frequently when running debug mode in Visual Studio 2008 on XP, IE 7 starts up but never loads the web page. It says 'Connecting to site 127.0.0.1' but never actually opens my web page. When this problem happens I'm unable to load any external websites either in that instance of IE (even in a new tab). I can't even open the 'About ...

Visual Basic 2008 - NullReferenceException ERROR?

Hey all, I'm using Visual Basic 2008 here, and I'm debugging my code that connects to my SQL Database and writes something in it. It was working fine and all until I came to an error like this. NullReferenceException was unhandled. What's going on? Here is the code I'm working with: Dim conn As MySqlConnection conn ...

Change app.config connection string depending on PC

Hi guys I'm doing a c# course at university, and now I'm beginning linQ to xml, linQ to Sql-Server, etc. I work with the example projects in two PCs (university PC and office PC) Is there an easy way to change connection string (from app.config) at runtime, or designtime (using a constant in main.cs) so I can use a connection string at u...

How to share settings between different versions of the same software

I am deriving from ApplicationSettingsBase to store our users settings, however when the build number gets incremented the app uses a new settings folder, and so the old settings are lost. What is an appropriate way to deal with the situation of shared settings over different build numbers. ...

Office 2007: Programmatically control Out-Of-Office assistant?

Hello Does anybody know how to programmatically enable/disable the actual state of the out-of-office auto-responder in Outlook 2007? Already searched the object browser in VS 2008 and found the enumeration Microsoft.Office.Interop.Outlook.OlBusyStatus but i didn't find any class or anything else using this. Any idea is appreciated, th...

How to download Visual Studio Express Edition ISO from an FTP Mirror

Does Microsoft provide the ISOs of Visual Studio Express Edition 2008 via FTP? I have doubts they do but if anyone knows... please let me know. ...

visual studio 2008 MFC linker error

hi i start a mfc application with a dialog window i debug it (nothing added) and i give me an linker error i run it on release mod and it worked my OS is windows 7 what should i do error: LINK : fatal error LNK1000: Internal error during IncrBuildImage 1> Version 9.00.21022.08 1> ExceptionCode = C0000005 1> Except...

Stateful WCF Web Service

I'm new to WCF and I've been trying to use the Session state in Web Services, which I managed to get working with a number of articles. But these articles all follow the .net 2.0 approach, as the new WCF Service References do not have a CookieContainer by default. What is the new school way of using stateful web services? (Without us...

VSX: Custom Package's Project Type to mimik "Debug >> Start Action >> Start External Program"

I have a custom project type based on the C# Class Library project type in a VSX Package (2008+). For this project type, even though the output is a class library, I want to be able to debug this app just by pressing F5 (etc). I have a prebuilt executable that takes an assembly path as a command-line argument and loads it for workbench...

c++ problem with build

I have this method declaration in Util.h file 30:string to_string(const bit_vector& v); Util.cc file has the definition string to_string(const bit_vector& v){ string str = ""; for (bit_vector::const_iterator i = v.begin(); i < v.end(); ++i){ if(*i == 1) str += "1"; else str += "0"; } return str; } when I try to bui...

How to cut the crap out of the VS2008 output window

My output windows is full of The thread 0xe48 has exited with code 0 (0x0). The thread 0x8d0 has exited with code 0 (0x0). 'xxx.vshost.exe' (Managed): Loaded 'C:\Users\xx\Projects\xx\xx\bin\Debug\xx.exe', Symbols loaded. 'xxx.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\Syste...

ClickOnce Icon when updating the app doesn't use my default application icon

I am deploying with ClickOnce. My app has a default icon, which is used fine. When updating (via clickonce) the update window does not use my application icon (it uses the default no icon). I can't find a way to change this to use my application icon. Does anyone know? Thanks! ...

How do I Programmatically change Connection String un LINQ C# Winforms

Hey Guys. This question may be redundant, but i could not totally understand how to do this. I need to be able to, when the users Run my Winforms app, can search for the instance of SQL if the previous one are not available. I already have the check for the DB existence, and also made a dialog wich search for all the available instance, ...

How can I show a message when I open a File in VS 2008?

I want to show a warning when a certain file is opened, how can this be done? for example if I open the Program.cs a warning dialog pops up: "If you edit this you are gonna die" ...

In visual studio, as I am stepping through code, is there a way to execute a method call without stepping into it?

Let's say I have int a() { /* Tons of code ....*/ return someInt; } void main() { /* Tons of code ....*/ int k = a(); /* Tons of code ....*/ } Next, lets pretend that I'm debugging one step at a time and about to go into the int k = a(); statement but that I just want it executed without stepping through a() manually. Is there ...