visual-studio-2005

ASMX Web Service - "This web service is using http://tempuri.org/ as its default namespace." message - but it shouldn't be.

I've created a web service using Visual Studio ( 2005 - I know I'm old school ) and it all compiles fine but when it opens I get warned thus: This web service does not conform to WS-I Basic Profile v1.1. And furthermore: This web service is using http://tempuri.org/ as its default namespace. Which would be fine except my serv...

Is there any tool to convert multiline text for Visual Studio 2008/2005?

Is there any tool that will convert a multiline text, to a compatible multiline string for Visual Studio 2008/2005? For example: line1 line2 line3 line4 Should become: "line1" & _ "line2" & _ "line3" & _ "line4" ...

DropDownList reloading

I have 2 dropdownlists on a WebForm. Dropdownlist1 controls what should display on DropDownList2. When the page first loads I pass in a selectedindex of 0 to function to load DropDownList2. The data loads perfectly. However when I change the selectedindex on DropdownList1 which causes a postback to recalculate new Dropdownlist2 vales t...

Manipulating the case of the build macros in Visual Studio: $(TargetDir)

I've come across a weird problem today in Visual Studio 2005. If I create a new configuration "NewConfiguration" for one of my projects. The output directory referred to by the project in $(TargetDir) is "/path/to/build/area/newconfiguration". Note the loss of capital letters, I'd expect it to be in "/path/to/build/area/NewConfigurati...

How to resize font on the GUI buttons in MFC

I have a GUI written in MFC for a Windows CE device. However I need to resize some of the buttons and their corresponding text. I can't figure out how to change font size. The following code fragments did not help: Trial 1: *CFont fnt2; fnt2.CreateFont(10, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLI...

Garbled fonts in Visual Studio 2005

Hello, I'm using for the time being an old VS 2005. Fonts appear to be messed up at times (see display in link below); this seems to be happening all the time with Resharper switched on but I have also seen it without Resharper being activated (typically on a line throwing an exception while debugging) although not so frequently. Would a...

How to tell if a certain Excel file is open using VB.NET?

I'm exporting my Dataset to an excel file, and I want to make sure I keep any file errors under control. One in particular that I'm concerned about is accessing a file that's already open. A general IOException occurs that says "The process cannot access the file 'C:\Reports\report300.csv' because it is being used by another process." H...

Positioning the dialog box in the centre of the screen

I have a dialog box developed in mfc for a Windows CE device and want it to occupy the entire screen. I used the following code to center my dialog box on the lcd screen of the device: CWnd* pWnd = GetDesktopWindow(); CenterWindow(pWnd); However, I still get a tiny sliver of space on the left side of the dialog box, resizing the dia...

Visual Studio 2005 Error

Im currently debugging a webservice written in visual studio 2005, however when i build it, it has an error but it did not specify anything Error 1 The specified module could not be found. (Exception from HRESULT: 0x8007007E) error message can be seen here Badly needed your help. Thank you ...

XSD generation from a SQL Server database using schemas

I'm willing to use NDbUnit on a SQL Server database which uses schemas. I have to generate the XSD schema from the database. Visual Studio has a tool to do that, but Visual Studio 2005 doesn't include the schema information in the generated XSD. Therefore, NDbUnit fails because the generated SQL queries do not match the database. Worse...

How to escape a semicolon in C++ string

std:string str("text1\; text2\;"); How come VS2005 says ; unrecognized character escape sequence. Please advise, thanks. ...

onTextChanged Event for many Textboxes c#

Hi, I am currently building a prototype for a new system screen, and i am using c# to build this. The question i have is, i currently have 14 textboxes which are filled from a condition from a couple of other controls on the screen. these 14 textboxes all add up to a total shown in another textbox. as these textboxes are editable (in ...

C#: why is there an asterisk on one of the code editor tabs in VS2005?

C#: why is there an asterisk on one of the code editor tabs in VS2005? Does it have something to do with source control? ...

Protocol communication help..

Using Visual Studio 2005 Language: c# A new to c# I have software, the software should communicate with gprs devices. So i want to write a protocol, TCP, UDP communication code. Can any one give some idea for writing a source code and some sample code also. ...

C++ Windows Application to include all dlls into an executable file

IDE: VS2005 Say I am using Poco library and the executable needs below dlls. I have to put them in same directory where the executable is. msjava.dll msvcp80.dll msvcr80.dll PocoFoundation.dll PocoNet.dll Is there any way that can build a dll-free executable? Thanks. ...

What is Visual C++ 2005 Service Pack 1 Redistributable Package for?

I am using Poco library and when running my program on other machines which don't have VS2005 installed, I have to install "Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package ATL Security Update", otherwise the the program will give error when launching. What is this redistributable package for? Is there any way to avoid ...

visual studio 2005 project configuration (release / debug / All)

If there's some common settings for both release and debug configuration. How can I just make the change once, not both change in debug/release? I tried to change in all configuration section, but it overwrites everything in debug and release. Did I do something wrong? Please advise, thanks. ...

Should I auto-increment the assembly version when I build my software?

In Visual Studio 2003, you could easily set your project assembly to auto-increment every time you built it, but with Visual Studio 2005, this functionality was removed. You can still auto-increment your assembly version on every build, but it's a complicated custom build step instead of an integrated feature. I'm not sure why this was ...

VS2005 C++ compiler crashes with the /Gd flag

I was trying to compile our project in Visual Studio 2010 using the 2005 compiler and I stumbled upon this strange bug. There's this particular file that crashes the compiler whenever I try to compile it from VS2010 with a "Microsoft (R) C/C++ Optimizing Compiler" error dialog with "don't send" buttons. I looked at the way VS2010 invok...

Can Folder Shortcuts be explored from within SHBrowseForFolder?

I'm trying to resolve an issue that I brought up at the end of the investigation into SHBrowseForFolder and folder shortcut browsing: I cannot figure out how IFolderFilter's member function ShouldShow should work to filter out everything but folders and folder shortcuts. I haven't found much documentation on this and my current solution...