visual-studio-2008

Insert code into multiple files? Remove from multiple files?

Hi I have some code I want to insert into several classes but I don't want to do it manually, is there a way to automate this in visual studio 2008? Can you remove code from several files in a similiar way? thanks ...

Debugger problem at C# Express - 2008

Hi All, I'm living a debugger problem at C# Express Edition - 2008. After modifying in code, I run the debugger. Unfortunately, the last modification are not be processed. After I exit C# and then run again it, when I load the code and run the debugger, the last modification are processed by the debugger. Where is the problem at ? Than...

How to Paste a pre-formated text in the cursor position in VS2008?

Hello There! I'm creating an application to help with e-mail replying, so I got a few sample mensages I want to Paste into the e-mail text page, starting from the cursor position. Imagine, I got this app with Button1,2,3,4 etc, and associated to each button is a pre-formated text, so when I hit Button1 it will Paste the text, starting ...

visual studio property missing characters

I've just started up visual studio express 2008 for the first time in 6 months, and the when I expand the properties window, all the name/values are rendered as squares. Event the ellipses (...) are squares! The weird thing is, all other text is OK, the code, toolbar, menus etc. What font/character set does visual studio use for this te...

Help to review whether my XML validation code is efficient

Hello everyone, I am checking againtst whether a specific input string are valid (could be used as the value for an XML element) in XML UTF-8 encoding. My goal is to tell which string (from an input string array) is not valid according to XML UTF-8 encoding standard. Here is my code, my current implementation is straightforward -- asse...

Visual Studio 2008 resource editor is annoying with PNG's

I have a resource DLL project in VS2008 that contains mostly PNG images. Every time I import a new image to the resource file, I get an RC2170 error: bitmap file is not 3.0 format, for every PNG that was previously in the resource file. Thing is, all of those iamges have complied ok before I add the new image. Only after I remove all of...

Why doesn't WinHTTP work while debugging?

I am using WinHTTP (WinAPI interface) in a C program. When I'm running the relase build from outside the ide (that is, without any debugger. IDE is VS2008) it works fine. However, if I run it inside the debugger (either the release or the debug build), or if I run the debug build from outside, WinHTTP won't work right. The status callb...

How can I compile a Visual C# 2008 program that includes an access database?

I have tried creating an install file but it never includes the database in the output, I have run into this problem a few times and most of the answers I find online are too cryptic for me to wrap my head around. ...

extern C can not be used at class level?

Hello everyone, Just want to confirm in Windows environment, VSTS 2008 + C++ project, we could only apply extern C to function level, not be able to apply to class level (so that all member functions from the class use C language name mangling)? I have tried several ways, but always compile error. thanks in advance, George ...

Can I dynamically determine all solutions, projects and configurations on a build/trigger event and call them all with MSBuild (from command line/script)?

We're still a little early in setting up our build automation and just using a bat file for now for Win32 C++ solutions. We have about 4 solutions and each has a couple vcproj files. Each time a new solution or configuration is added I have to update the bat file to reflect the new solution or configuration to call with MSBuild. I...

Dialog has a modern look on time design , but old look on run time (using Visual C++ and resource editor)

Hi all, I'm creating a dialog with the resource editor of Visual C++. When I run the test button of the editor, components of the dialog are displayed with a modern look, while when running the application that creates and shows the dialog, it's displayed with an old look...I'm just using WINAPI calls to display the dialog, not MFC. Her...

WCF binding not found error?

Hello everyone, I am using VSTS 2008 + C# + .Net 3.0. I am using self-hosted WCF. When executing the following statement, there is the following binding not found error. I have posted my whole app.config file, any ideas what is wrong? ServiceHost host = new ServiceHost(typeof(MyWCFService)); Error message, Configuration binding exte...

mex binding error in WCF

Hello everyone, I am using VSTS 2008 + C# + .Net 3.0. I am using self-hosted WCF. When executing the following statement, there is the following binding not found error. I have posted my whole app.config file, any ideas what is wrong? ServiceHost host = new ServiceHost(typeof(MyWCFService)); Error message, Could not find a base addr...

WCF wsHttpBinding 'algorithmSuite' cannot be parsed error

Hello everyone, I am using VSTS 2008 + C# + .Net 3.0. I am using self-hosted WCF. When executing the following statement (host.Open()), there is the following binding not found error. I have posted my whole app.config file, any ideas what is wrong? ServiceHost host = new ServiceHost(typeof(MyWCFService)); host.Open(); Error message, ...

How can I stop Visual Studio automatically upgrading projects?

I'd like to give VS2k10 a shot, but I'm in a VS2k8 environment. I compared the upgraded project files in VS2k10 and the only difference was the updated version number - how can I stop VS from doing this? ...

My MFC Application Freezes if I Switch to Another App

Commence V 2.0 of this question. My VC++ MFC application compiles and runs just fine. That is, until I switch to another window. As soon as my program loses focus, it freezes; I cannot switch back to it and if I move a window that is in front of it, my app window displays white in the space that the other window was covering. Since I f...

ITypeResolutionService not resolving any types

I'm working on a visual studio 2008 add-in that will generate data-access code by looking at the method signature combined with a set of options the user enters in a dialog. For analyzing the method signature I use the ITypeResolutionService of visual studio to lookup a type that either exists in the current project, in the referenced ...

How to fail an MSBuild when content files are missing

I've noticed that our cruise control server does not fail the build when content files are missing. I'd like to fail the build when javascript / graphics files etc are missing. How can I go about validating the project file with the files pulled from svn? ...

my code reading Excel file error

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 to read Excel file created by Excel 2007 (but saved as Excel 2003 xls format). Here is my code, when executing code adapter.Fill(cities), there is exception -- "OldDbException Could not find installable ISAM". Any ideas what is wrong? static void Main(string[] args) { string conn...

Insert current datetime in Visual Studio Snippet

Does anyone know of a way that I can insert the current date & time in a visual studio 2008 snippet? What I want is something like this in the body of my .snippet file... <Code Language="csharp"> <![CDATA[ // $DateTime$ // more code here for my snippet... </Code> ...