wangzhongtao's Q&A profile
Visual C++ What happened to vector?
Something is wrong with the STL 'vector' header file in the 2005 Express installation. After installing beta 2, I can't compile any source files which #include<vector> any more. The vector file is now 59k as opposed to a very tiny 'vector' header in the VC++ 2003 Toolkit. Also, the VC++2005 vector file has all the code in it, while the vector file that works only has a few lines including some other headers. These p ...Show All
Visual Studio Team System Forgot password for TFSService
I forgot the password that I setup for TFSService. Since our Domain requires the password to be changed every 90 days, I proceeded to change the password. I also updated the password in the Team Foundation Windows services that utilized it. Unfortunately, I found out that I should have used the tfsadminutil tool instead of trying to find all the places to update the password manually. I really don't understand why there is an "OldPasswor ...Show All
Visual Studio Exec task with ContinueOnError=true
I'm using an MSBuild build script as part of a continuous integration scenario. Part of the script is a target that runs unit tests with NUnit, using a batched item group that specifies test assemblies. The target contains an Exec task that runs the test runner application. Since I want to run all of the tests, even if some of them fail, I specify the ContinueOnError option on the Exec task. The problem is that even though some tests fail, MSBu ...Show All
Visual Studio 2008 (Pre-release) Invalid PropertyDescriptor Value -- please help!
I'm using the Feb CTP, and I'm trying to use a property in a trigger. Here's the specific XAML: <Window x:Class="TestThingie.Window2" xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " Title="Renamer" Height="300" Width="300" > <Window.Triggers> <Trigger Property="Test" Value="True"> <Setter Property="Window2.Background" Value="Blue ...Show All
Visual C++ MFC/ATL CString error?
I am trying to update a number of libraries dating back to 1980 which were developed using basic 'char' strings. I am trying to use CString as a replacement basic type. However, I have an unexplained error that I can't track down. When compiled with the Unicode character option, my code fails when I try to assign a TCHAR* to a CString. However, the same code compiles and runs properly when the MBCS character option is selected. This is probab ...Show All
Visual C# Big problem - Regular Expression
Hi I'm trying to build an regular expression to read this data Thu Jun 22 08:08:16 2006 Acct-Session-Id = "00001023" Cisco-AVPair = " call-id=226F99C2-11611DB-856D832F-210CC2EB@10.0.11.31 " Cisco-AVPair = "iphop=count:1" Cisco-AVPair = "iphop=hop1:10.0.11.31" h323-setup-time = "11:07:31.687 UTC Thu Jun 22 2006" h323-gw-id = "Celular32." h323-conf-id = "1FE0AF6C 011611DB 856A832F ...Show All
Visual Studio Tools for Office Conversion problem
I am trying to convert my VSTO 2003 projects to VSTO 2005 and failing one after another. VS says it converted them successfully, but the Solutioin Explorer shows they are unavailable. Attached is the log of one of the conversions. If I remove the unavailable converted proejct and try to add it back, then I get the following error: The operation could not be completed. No such interface supported. Could anyone offer any hint T ...Show All
Visual C++ Another example of my problem with structs...
Help! dynamic.h #pragma once #include "static.h" #include "stdafx.h" using namespace System::Collections; public ref class testit { public : testit( array <city^>^City) { System::Diagnostics::Debug::WriteLine(City[1]->cityID); } }; static.h #pragma once //#include "dynamic.h" (works when not included) ref struct city { int cityID; String ^ cityName; }; Form1.h #include "static.h" #in ...Show All
Visual Studio Express Editions Adding a new row to a database inserts a blank row between each new one.
The first time I press the Add Icon everything seems to work OK, but on each subsequent press of the Add Icon a correct new row and an unwanted blank row are added. Any ideas what may cause this Am I missing something from the code or is something incorrect in the code that would cause this Public Class Form1 Dim drNew As DataRow Dim StrHour As Integer = 8 Dim strMin ...Show All
Windows Forms Dynamic webbrowser creation on form
I am trying to dynamically add a webbrowser control to a tabpage. The application traverses a file structure which has multiple folders, subfolders and files. When a root folder is found I create a new tab page, if a file is found in that folder I add a browser control and set the navigate property to point to the file which it should then display. If a subfolder is found I create a new tabcontrol, tabpage and then add a browser control. Agai ...Show All
Smart Device Development Reactivating Form
I'm developing an application with several forms and an interface to an external device that uses a callback. The callback is a public subroutine and is set up when the application starts. When the callback gets data I would like to have it put it in a field on the currently active form. The problem I can't seem to get around is that when the callback executes the form becomes inactive and I can't update any controls on it. I can make event proc ...Show All
SQL Server I want to work with SQL RS 2000, what do I need on server and dev workstation?
Can anyone simply spell out what I need on each machine I have an SQL server(2000) that I plan on installing the RS 2000 on. I know it needs the framework 1.1 and vs 2003(on order). Is this correct And what do I need to install on my development workstations VS 2003 and ... Thanks, Fred Component Prerequisites Report server Web server with ASP.NET and Internet Inform ...Show All
Visual Studio Team System Team Foundation Server -- couldnot connect -- error
Hi, I need information regarding an error occuring while accessing my TFS. One of my client working in Japan is not able to access TFS. We could access the same for example from Berlin. Is there any possibility to find what could be the possible reason I've tried surfing through various threads in microsoft forums. But i feel my scenario needs to be a different thread though the nature of the problem is same. Scenario: VS->Team Ex ...Show All
Visual C# connection string doubt
I'm writing a web user control that update a datagrid getting data from a DB. Being a user control it must be reusable, so i don't know which type of DB is... I use a connection property that my app/form fill.It's a sensible data and i use Session["xxx"]. Now i prefer use a connectionstring better than a connection! Remember that i don't know DBtype, so i need something of general, like a connectionstringbuilder or particul ...Show All
Visual Studio Express Editions A reference to the "....dll" could not be added.Please make sure that the file is accessible and that it is a valid assembly or
When i add a .dll file as a reference in C# application it shows an error : A reference to the "....dll" could not be added.Please make sure that the file is accessible and that it is a valid assembly or COM component. Willfin David I assume you are working with VS2005. So here is the work around for that Execute "tlbimp <....>.dll" <Drive>:\Program Files\Micro ...Show All
