Li Shao's Q&A profile
Visual C++ VCBuild and project level settings
I'm building a VS.NET 2005 solution that contains only C++ projects. At the moment I'm running VCBuild from the command line, but later I'd like to incorporate it into an MSBuild script. It seems that VCBuild isn't picking up project-level properties. We have Additional Include Directories on some projects, and they fail because the headers can't be found. They compile in the IDE. I am using the /useenv switch, but I thought it only affected the solution-level INCLUDE and so on. Do I have to add the additional paths to my INCLUDE variable in the environment Apparently, no one is using VCBuild wi ...Show All
Visual Studio Tools for Office TrackChanges Issue
Hi, We are working on word customization using VSTO 2005. We binded a XML Schema. When user switching between XML Tags we are disabling track changes in the intension of any background operation is done on Word would not be reflected in Track changes by giving like this, this.TrackRevisions = false Once the background operation is finished we are enabling track changes again. this.TrackRevisions = false But the track changes whatever being done in the background operation are displayed as track changes, though we are disabling the track changes before the operation. Thanks in advance for the pointers. Regards, Je ...Show All
Visual Studio Express Editions How to catch the Output parameter sent from an SP.
Hi Say for an insertion of new record, we wrote an SP which takes input and sents the identity ID as output parameter.. Now from c# : I have executed the SP, but how should I get the Output parameter into my front end.. at present I have to send it as a resultset...and in the front end taking it as table(0) 's value....But I know this is not the way to get the output parameter into the front end.... plz suggest me a correct way.. Hi there, Here's a quite simplistic, bare-bones example that hopefully I've done well enough so that you can use it as a basis. It's only an example, so I haven't put anything like exception handli ...Show All
.NET Development Soap Serializer does not support serializing Generic Types.
I tried to serialize an object contains list (List<>) of objects and I got this exception: Soap Serializer does not support serializing Generic Types : System.Collections.Generic.List. It works fine with the BinaryFormatter. Yeah, Let me post more codes about the configuration. What I am doing here is, I have a remoting server start, also to have the capability for a client to event call back to server, we defined a delegate and an event wrapper as the book "Advanced remoting said". Here is the definition: public interface IFactory { IWorker getNewWorker(); } public del ...Show All
Visual Studio Team System TF30177: Team Project Creation Failed
I'm getting the following error when trying to create a new team project using a WORKGROUP install of the TFS Release Candidate: Error TF30004: The New Team Project Wizard encountered an unexpected error while initializing the Microsoft.ProjectCreationWizard.Portal plug-in. Explanation TF30171: The Microsoft.ProjectCreationWizard.Portal plug-in used to create the new team project could not be initialized and returned the following error: Invalid URI: The hostname could not be parsed.. User Action Contact your Team Foundation Server administrator The team project creation log is as follows: 2006-02-12 12:15:35Z | Module: Inte ...Show All
Visual Studio Team System Do New FxCop Versions Upgrade VS2005 Code Analysis
As new versions of FxCop are released, do I need to do anything special to upgrade the VS2005 Code Analysis tool Or are they so tightly intergrated that upgrading FxCop will automatically upgrade Code Analysis at the same time. Thanks I think the way I'll work it then is to use Code Analysis for a quick check and use FxCop when preparing to signoff on the class/project Cheers ...Show All
Visual Studio Express Editions System.InvalidOperationException in System.Windows.Forms.dll
Hello, I use to do programming long time ago, in the DOS era, survived TRS80, Tiny Basic, GWbasic and Quickbasic. Recently I managed to pickup programming Basic style again with Visual Basic Express. After installing it and playing a bit around, I tried to find an initial setup for a Local area network packet sniffer. Google came up with a package called PackMon.NET and Sniffer.NET from v2softwares http://www.1vbstreet.com/vb/scripts/ShowCode.asp txtCodeId=3881&lngWId=10 . A VB component seems hard to find, there is more C code available. Unfortunately I am sort of illiterate at C. When I run the package, the list scr ...Show All
SQL Server Errors while Deploying Analysis services projects in server
Hi, I am using Sql server Business Intelligence Development Studio 2005 and SQL server Management studio. I created a Analysis services project in the BI Dev Studio, and set the correct server attributes in the project properties -> deployment tab. I have created a data source , then a datasource view and then cube and dimensions. 1) When I tried deploying with the database name as 'xyz'. (again set in the project properties -> database ,target attribute), and the database 'xyz' is previously created and thus present in the Analysis server 2005. I get the following error: " The database , 'xyz', contains an Im ...Show All
Visual Basic Using TabPage and binding data
I had a tab wherein there are two tabpages(tabList,tabEditList)...On the tabList there is a datagridview(dgvPatients) which displays all data of a certain coulumn(Name)..The table("PATIENT") where Name is a member had other columns(ID,LastName,FirstName...etc) I make this other columns hidden in the dgvPatients as what i only like to show here are the names...What i really trying to do is, all of other details of such certain name would be displayed in the tabEditList page, wherein it(tabEditList) contains different controls such as textboxes and datetimepicker(dtpBirthDate)...Say for example, on the tabList, dgvPatients was pointin ...Show All
Windows Forms open calculator
hi everyone, I have a windows application where I want to click a button so the calculator open (the calculator in Start...All Programs...Accesories), is that possible Thanks. ...Show All
Visual C++ Please Help Me! Please...Please...!
Hi. I want design Line in a StaticControl.(or any function.like sin(x)) Please Help me. Nishes reply to this question previously will allow you to do a line on your form. If you want the line to follow a function like sin(x), then you need to write your own control, no built in control does this. ...Show All
Visual Studio Team System Code Coverage not working
I debugged a problem where code coverage was not working for one of our people. The user was running VSTD and was getting the message 'Code coverage not enabled for this run'. There is only one testrunconfig, and code coverage was enabled. What I found was that the user was running the tests by pressing F5 (debug mode) They were not getting the message 'Debugging tests on a remote computer...' So I suspect they clicked on the box 'Do not show this dialog box' Is there a way to turn back on the dialog box Is there a way to Gray out the code coverage button when run in debug mode Thanks, TomK I'm getting this ...Show All
Visual Studio Tools for Office Infopath to Sharepoint
What is the most straightforward way to take information from an Infopath form to a Sharepoint web part For example, if I save an Infopath form into a library, can I then create a Dataview from the XML I would prefer to do this to creating a .NET control. What is the recommended approach Thank you. Jim, It is helpful to remember that this forum is mainly for issues that directly pertain to the Visual Studio Tools for Office tools per se. So you will be best served by posing this question to a forum or newsgroup wholly dedicated to application-specific issues such as yours. Here is a link to r ...Show All
Windows Forms DataGridView and Detail Dialog => Problems just at the beginning
Hi, I am struggeling with visual studio 2005 and also i am a complete vs-newbie. Goal: datagridview that displays rows from a database table. The user can click on a row and open a detail dialog to edit this row. The user can close this dialog by clicking save or cancel or can scroll inside all details forward and backward. The user can click new to open an empty (new) detail dialog First step: I overloaded customerBindingSource_AddingNew to add a new customer instance and open the detail dialog Problem: Now I get constraints errors while clicking forward and backward. So I guess I also need to customize other events from the datag ...Show All
.NET Development VS service proxy class generation not handling output parameters correctly
I am attempting to conusme a third party web service. When I have Visual Studio(VB) generate the service proxy class, it does not handle the output parameters correctly. Instead of ussing the given parameter, say "Status", it includes it as an input (byVal), and creates a new parameter "Status1" as the byRef output. Is this a problem with the wsdl If this forum accepts this post, I will include the wsdl in another post. Thanks in advance for any ideas. Tracy Spratt Hmm, the wsdl breaks the post. How can I post it safely ...Show All
