visual-studio-2005

What are these odd files added to my Visual Studio MFC project?

Hi, I have a visual studio solution where one of the projects has somehow acquired several .bin files. They are named bin00001.bin, bin00002.bin, etc... and contains some kind of registry information. The contents of these files are one section repeated a number of times. bin00001.bin: HKCR { NoRemove AppID { '%APPID%'...

Planning to upgrade VS 2005 to VS 2010

Hi, I have installed VS 2010 and want to upgrade all code written in VS 2005 to VS 2010. Please note that we do not have VS 2008, all code are in C# 2.0 and Asp.net 2.0 only. Can anyone please tell me know what points need to be considered while migrating. Thanks in advance! ...

Error while upgrading VS 2005 to VS 2010

Hi, I have installed VS 2010 and want to upgrade all code written in VS 2005 to VS 2010. Please note that we do not have VS 2008, all code are in C# 2.0 and Asp.net 2.0 only. I have set target framework to 2.0 for all of my Libraries and web projects. It complies without any error! However, when site opens in IE (Set to default.aspx)...

MessageBox.Show() fonts.

Is there a way I can change the font types in a MessageBox.Show() to get bigger size, bold, italic styles? ...

Generic interface VS generic method?

I'm writing a generic type to handle the underlying Active Directory objects such as groups, organisational units and users. I'm also using "manual" dependency injection within my generic interface. I would like to know if, in my situation, which is more appropriate: generic interface or generic method? Here's a simplified code sample ...

Data not returned

I am using Visual Studio 2005. I have a stored procedure that retuns all the data, the dataset on the data tab of reporting service returns all the data, but the matrix in the report doesn't. it looks like it is pulling all of the data but the last 3 sites. is there a setting i need to adjust to get it to show all of the data? and not...

Accessing the property inside Dynamic control gives Null reference exception.

Hi I have an app with 24 different Forms. They have some security options based on which the 5 different buttons Submit, Approve, 2nd Approve, 3rd Approve, Reject etc get enabled disabled. Now I designed a MainForm that has all the buttons and the security code for them. I have created eachform as a usercontrol and load them dynamical...

Marshal.GetActiveObject() problem

I am using Microsoft.Office.Interop.Excel.Application oExcelApp = (Microsoft.Office.Interop.Excel.Application)Marshal.GetActiveObject("Excel.Application"); in my project. It gives me an error when there is no Excel file open at the moment. How can I check to see if there is no Excel file running? ...

Unit testing an ASP.NET 2.0 Web service application in VS 2005.

Hi, Most of the stuff I find about unit testing ASP.NET apps seems to be for VS 2010 / later versions of .NET / Visual studio in general. I can't really find the "Create unit tests" option in Visual studio 2005 at all. Can anyone point me to how I can go about Unit testing a .NET 2.0 app in VS 2005? Thanks, Teja. ...

3 Tier Winform Application

I have a college project that I want to do as 3 Tier Winform Application so that I need only to update my application at one place (ie the server). Does anyone have suggestion on how to do this? I have to work with a client machine, and a fairly good server. I want the server to house the Database and the Business Logic, and want the ...

Conversion error in vb.net?

I am puzzled by why it does not retrieve the data and keep saying i have a error "InvalidCastException", i am currently doing these in compact framework and is totally new to it, i searched around looking for a way to get data into a listview base on what little i know about java . these are my creation of table and inserting during form...

Debugging WCF service hosted in IIS 6.0 using Visual Studio 2005

Hello all I've created a WCF service selecting 'WCF Service' in installed web site templates in VS2005. I've added a ASP.Net client for the service in the SAME solution. I published the WCF service in IIS 6.0 and configured it to run in .Net Framework 2.0. I did an IISAPP in command prompt and identified the PID of the w3wp.exe process...

DataTable in C#

Let's say I have two DataTables DT1 and DT2 with a single row. DT1 has 3 columns: Col1, Col2, and Col3 and DT2 has 2 columns: ColA, ColB. Is it possible to join these two DataTables horizontally so I get Col1, Col2, Col3, ColA, and ColB? ...

Creating a shared MFC Dialog: Regular DLL or MFC extension DLL

When creating a MFC DLL project in VC++ 2005, you get a screen "application settings" with a choice of Regular DLL with static/dynamic MFC, or an MFC Extension DLL. We want a DLL that contains a few common dialogs, so we can use them in other projects e.g: CGetNameDlg *dlg = new CGetNameDlg(); dlg->doModal(); string name = dlg->getName...

Getting helpful error messages on Windows 7

During Windows XP development, if my application encountered an unhandled exception it would display an error message "X has encountered and error..." and give me the option to launch the debugger. Under Windows 7, all I get is a message that says "X has stopped working, Windows is checking for a solution". I can no longer see any deta...

Cross-platform svn management (Makefiles & Visual Studio)

I'm working on a little game called freegemas, it's an open source version of the classic Bejeweled written in C++ and using gosu as the graphic API. I've been developing it under Ubuntu Linux as usual, but the other day I wanted to give it a try and I compiled it on Windows using Visual Studio 2005 (which I had never used before). The p...

When I run or debug a web application in VS2005 on Windows 7 it occasionally leaves iexplore.exe open

When I am running Visual Studio 2005 on Windows 7, I try to run or debug my web application. (C#, but I doubt that matters). It will leave iexplore.exe open over and over again. Open VS Run your web application Visual Studio will lock up (if you try to click back to the window it will dim and not be accessible) but your web app will ...

Add static library to CLR Windows Forms Project, Get "unresolved external symbol _MAIN__"

I've reduced this issue to, with Visual Studio 2005, in Release mode: Create a new Windows Forms app Change to /CLR Check that the default Form1 runs Add one static library (which itself is linked with BLAS.lib, clapack.lib, libf2c.lib) Then I compile and link and get error LNK2019: unresolved external symbol MAIN_ referenced in...

Visual Studio 2005 SQL Server Express edtion username pass

Visual Studio 2005 I connect with SQL Server Express edition with SQL Server Management Studio Express using Windows authentication. When I installed Visual Studio 2005 I didn't get asked for SQL Server Express edition user name or password. How can I connect without Windows authentication ? ...

compiling against MSVCP70.dll instead of MSVCP80.dll in Visual Studio 2005

I am building a project in Visual Studio 2005 that require some libraries that were built in Visual Studio 2003. I'm getting linker errors like msvcprt.lib(MSVCP80.dll) : error LNK2005: class std::basic_string[...]already defined in libdiguy.lib(bdiNavMesh.obj) I believe that my program and the libraries are both compiled dynamically ...