visual-studio

How to configure MSBuild to do some tasks only on release builds?

I just learned about how to include FxCop on a build. But it's slow and I want it to be done just only on release builds. Is there any way to configure that? ...

Upgrading Compact Framework 1 app from VS 2003 to VS 2005 breaks form designer?

I am trying to move a C# Compact Framework 1 application from Visual Studio 2003 to Visual Studio 2005 (no comments please on how outdated all this is :-)). I am now able to compile and run the app in VS 2005 just fine, however when I open one of the forms, the form designer does not show the actual form layout but just some rows of icon...

How to read de Exchange Database ??

Hello, im creating an application that have to read and update Contacts Information (like phone number, email, etc..) from Microsoft Exchange... Does any one know how can i connect to a MS Exchange DB ?? ...

Why does Visual Studio debugging mode does not work properly (performing F5 when F11 was pressed)

Hello. I've faced the strangest problem with Visual Studio C# debugger in my career. In short after break point in my code was hit I cannot step through the code. F11 (step into) and F10(step over) work for several times, but eventually VS performs F5 (continue) action. I still able to debug using break point on every line. This behavi...

Is there a way to see the color that will display for a .NET color name?

I'm using System.Drawing.Color, is there anything in Visual Studio that can display the color for the name? For example if I used Color.Cornsilk what would color would be displayed? ...

How to use different files in a project for different build configurations - Visual Studio C# .net

I have a c# .net winforms solution and I want to create two different builds: one that supports IE6 and one that supports IE7. A few of the files in one of my projects are different for the IE6 build versus the IE7 build, so I want to include the IE6 files when I build for IE6 and the IE7 files when I build for IE7. What's the best way o...

complex.h workaround in Visual Studio

After some searching I've found that Microsoft Visual Studio does not provide the "complex.h" header file, but I have some C code that unfortunately uses it. I've tried using <complex> and compiling as C++ code; this requires changing complex to _complex I don't even know what I would need to change long complex to. Any ideas ho...

Porting OpenGL project from Visual Studio to Xcode

I'm in the process of converting/migrating a Visual Studio OpenGL project to an Xcode (iPhone) OpenGL project. Do you have any experience or suggestions? ...

Team is Going from XP32 to XP64 for .NET Development - Any Gotchas?

My team is getting new XP64 workstations. We've been using XP32 up until now. Most of our work is done in managed C#/VS2008/.net 3.5 and SQL Server 2005. However we do have a couple apps that are still in VS2005/.net 2.0. The majority of our applications are ASP.NET webforms apps and WCF services that are running on 64bit servers in prod...

Why does Conditional breakpoint decrease the application execution speed at debug time?

When I use conditional breakpoint in VS2005 instead of using temporary code to check specific conditions, I noticed it takes more time and the execution speed is decreased!! Do you know why? and how to resolve this issue? Exmaple: int sequence = atoi(m_SequenceNumber.GetAscii()); if( sequence == 392914)//temporary code to check...

Unicode Basics on Windows

Hello, I have a C++ library which I deliver to other developers. One of them needs i18n, so he asked me if I could add L prefix to the strings in the API. I don't know much about i18n so I have some basic questions: When I compile my lib with Unicode, can other developers use this build as usual ? Or shall developers also change the...

Connecting to a remote server using Visual Studio

I am trying to add a remote server to "server explorer" (not a data connection) so I can view Event Logs, Services etc. I keep getting the following error: "Could not reconnect to 'mail'. Make sure the machine name and path are valid." 'mail.domain.com' is what the IP address I enter resolves to (this is due to the email server being ...

Visual Studio 2005 and .Net framework 1.1

Is it possible to create and maintain a .Net framework 1.1 application with Visual Studio 2005? ...

How to generate minified javascript with Script#?

I am testing Script# and its manual tells me that it has a "Release" mode, where the code is minified for performance. But I couldn't find how to enter this mode. Anyone knows? Update BenS has found a command line solution. I wonder if there is a graphical solution, preferably integrated with Visual Studio. ...

How do I have an icon displayed when a setup CD is autoplayed in Windows.

I have a setup CD to install a visual studio C++ application I made. It has three files: setup.exe, AUTORUN.INF, and app.msi. When I insert the CD the Windows AutoPlay popup shows a generic icon. How do I have my own icon displayed for setup.exe. I also want this for the drive icon after I insert the CD, I think they're related. ...

How do I specify a publisher for the setup.exe when a setup CD is autoplayed in Windows.

I have a setup CD to install a visual studio C++ application I made. The AutoPlay popup shows "Publisher not specified" for running setup.exe. How do I specify a publisher? ...

Multi-Target Visual Studio Project: one source code

Any suggestions on how one could go about setting up a build system that would compile one or two libraries against a couple of different platforms/targets. The main project is in Visual Studio. For example, I have a library: nav.lib It compiles on Windows and Linux with a few tweaks. The executable that uses the library, win_nav...

any way to detect a TimeStamp column in a DataTable from SQL Server (fillSchema???)

When updating a datatable from a "select * from sometable", I am iterating the columns in the datatable to dynamically create an update or insert statement, based on datatable.rowstate and DataTable.PrimaryKey. However, I can't seem to find any property that indicates whether a column is a TimeStamp in SQL Server and must therefore be i...

Why can't I debug?

When I was about to debug C++ program in VS2005,the program didn't stop at the breakpoints. The VS said"No symbols are loaded for any call stack frame. The source code cannot be displayed". What can I do? ...

Where are changelogs or bugfix details for Visual Studio 2005 to 2008?

The MSDN and Microsoft websites tout new features of Visual Studio. However, I am interested in finding a list of bugs fixed in the new release, if such a list exists. If no such official list exists, I am interested in blogs of Visual Studio developers and users of Visual Studio, reporting on the fixing of bugs in 2008 (release or SP1)...