Paul Marriott's Q&A profile
Visual Studio Team System Using iterations in MS Project
I have a project that we have recently migrated into TFS. I am trying to use MS Project to schedule/track my work items, and I am having a problem with the iterations. It seems to me that an iteration, in Project, should be a rollup of a number of subtasks, but I can't seem to get them to show up this way. Is there some way of doing this, or am I not understanding how iterations should be used TIA Ron L Randy Thanks for the response. I tried doing that, but Project doesn't seem to get all of the tasks under the proper iteration. The overall idea seems to be what I am looking for, but the implementation seems to miss something. Ron L ...Show All
Visual Studio Tools for Office Customizing the ribbon from a Word add-in using VSTO CTP
Hello all, I am working on an addin for word that involves both a custom task pane and a custom button on the ribbon. Naturally, I was excited to find that there are videos on channel9 for both of these scenarios. I watched the task pane video: http://channel9.msdn.com/Showpost.aspx postid=197654 and have come up with a task pane that looks good and does what I want it to do. Now, I want to add a button to the ribbon enabling me to hide or show the task pane. Unfortunately, it appears that to customize the ribbon, you need to start a "Shared add-in" project, rather than a "Word add-in" project, as the task pane video instructed me to do. My task pane project does not implement Extensibility.IDTExtensibility2, as htt ...Show All
Visual C++ 'out' value-type parameters and managed/unmanaged references
WOW the area of tracking references is confusing. I have a large unmanaged COM server (C++) to which I'm adding managed interfaces. Many of my methods provide output-only value results. For example, my Image class has a method that in C or COM you would declare as PixelRange(double* pMin, double* pMax), and in C++ you would declare as PixelRange(double& min, double& max) and in C# you would have PixelRange(out double min, out double max). It seems that I must declare this interface in managed C++ as PixelRange([Runtime::InteropServices::Out] Double% min, [RuntimeInteropServices::Out] Double% max). My problem is that for each such parameter I have to create an unmanaged variable to pass to the internal function, and I have to ...Show All
Visual Studio Express Editions how some help fix my code?
'Create a new MailMessage object and specify the"From" and "To" addresses Dim Email As New System.Net.Mail.MailMessage(" From@abc.com ", " To@abc.com ") Email.Subject = "test subject" Email.Body = "this is a test" Dim mailClient As New System.Net.Mail.SmtpClient() 'This object stores the authentication values Dim basicAuthenticationInfo As _ New System.Net.NetworkCredential("username", "password") 'Put your own, or your ISPs, mail server name onthis next line mailClient.Host = "Mail.RemoteMailServer.com" mailClient.UseDefaultCredentials = False mailClient.Credentials = basicAuthenticationInfo ...Show All
Windows Forms Events and interfaces
I have a similar question to this - in my case I have an application which has been written to use DLLs that will change from system to system. These conform to a common, defined interface and are accessed by the main executable using late binding. Each DLL essentially provides a UserControl which can then change appearance and functionality depending on which one is used (i.e. one for each customer). I have no problems accessing the parameters and methods defined by the interface, but I can't find any useful information on how to handle the Events within it using C#. What I need to know is a) how to define the events within the Interface and then b) how to handle these events from within the main application. Any info would be great ...Show All
Visual Studio Team System Visio for enterprise architects freezes on database stencil selection
Hi! I've installed Visio for enterprise architects on a windows xp x64 machine running visual studio 2005 team system for software developers, applied all the available windows updates and, as soon as i started visio and selected a database stencil, i got a freeze... I uninstalled and reinstaled visio... with no luck I downloaded SP2 for visio2003 but i couldnt install it since my version is visio 2003 EA... I've searched online for an answer with no luck It only freezes when a database stencil is selected... other stencils work fine! I tried to force visio to close but it didnt responded so the system auto-killed the process... and sent a bug report to microsoft... and by the look of it i was not the first person with this problem... Is ...Show All
SQL Server Where do I put my SQL Update Statment
OK I have my SSIS Dataflow behaving the way it should but how does one map to a table that needs an updatde to a table. In this case it is an Oracle Table so the SQl would liik like this... UPDATE PPS_PRINCIPALS SET NAME = @Variable2 WHERE (PRINCIPAL_ID = @Variable1) Sorry about that, I meant the OLE DB Command. Thats what i'd normally use to run a SQL command in the data flow task. I haven't tried it with Oracle though. ...Show All
.NET Development CreateParameter give bad performance
We are working with MSSQL 2005 and ado.net framework 1 .1 During our performance tests over large DB (~1M records) I found out that when I run one of our queries, with embeded values in the query -string, instead of using the CreateParametr method, the query ran 40 times faster!!! The parameters are 2 strings (~30 characters) , the type in database is varchar(255). Wh at can cause such a huge difference in the execution time This is our AddParameter source: public void AddParameter( object parameterValue) { string paramName; IDataParameter IParam; //For string that is empty do nothing means null is entered to field. if (((parameterValue is string ) && (parameterValue.ToString( ...Show All
.NET Development How do i send email in both HTML and text format?
Does anyone know how i can send an email with two bodies - one in HTML which will be displayed if client supports HTML, and one plain text message that will be displayed if the client does not support HTML Hmm. Theres something i don't understand... The documentation example uses a string as first argument (body) - but the AlternateView mothod only takes a "path to file" or a Stream as arguments What is that supposed to mean Edit: I just found out that it's an error in the documentation. It should be: AlternateView . CreateAlternateViewFromString ...Show All
Visual C# how to implement the same functions on different parts of a form?
Hi, everybody... In some softwares, there will be MenuStrip and ToolBox. The functions on ToolBox can also be found on the MenuStip. No matter user choose to try which one, the same results will be shown. I want to ask the ways to realize this. If there are many functions related to each other, there will be a huge task to update the status of the MenuStrip and ToolBox in-phase. For example: On both MenuStrip and ToolBox, there is a CheckBox, named "cb1"<MenuStrip> and "cb2"<ToolBox>, if user check "cb1", "cb2" should also be checked and vice versa... So I have to check the status of the two CheckBoxes first, as: private void cb1_CheckedChanged(object send ...Show All
Visual Studio Express Editions Reports in VB Express Edition
Hi friends i have been working over a project in vb express edition, but the problem is , in express edition i dont have crystal reports, this is what i think if there is Crystal Reports in EX. Ed. Please let me kno how to install and use them, or any other alternative. plz help... The good news: You can use crystal reports with Visual Basic Express The Bad news: There are serious limitations with what you can do!!!! The details: I am writting an app that creates monthly reports of sales for all customers of a specific type. I basically runs in batch and spits out a pdf format of a report showing the details for each customers monthly transactions, yearly totals, contanct info ...Show All
Visual C++ Vector subscript out of range - can't understand why
I'm having a problem regarding the 'vector subscript out of range line 756' when popping back a vector after upgrading to VS2005. Pushing back still works perfectly. Searching the web I find many others with the same problem, but no explanation or way to fix it. This is purely in debug mode, no problem with mixing release mode or anything. #include "fire.h" vector < fire > MYFIRE; In main I have this function for(unsigned int i = 0 ; i < MYFIRE.size(); ++i) { MYFIRE.DoPhysics(MYTIMER.getdelta_time()); if(MYFIRE.Pos().X()>400) { for(int j = i; j < MYFIRE.size(); ++j) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How Direct3D handles D3DPRESENT_INTERVAL_TWO
Hi. I implemented Direct3D in my company's software to be able to output RGB videos to DVI. Then a customer asks why I could output 30 fps video to 60 fps monitor because that customer will output the videos to a 60 fps projector and wants to make sure that no funny things happen. I did use D3DPRESENT_INTERVAL_TWO to make sure the 30 fps video look normal on 60 fps monitor. According to MSDN, Present operations will not be affected more frequently than every second screen refresh. The question that he and I (got curious also) want to ask is : Whenever it is not the second screen refresh (when display gets updated) what does Direct3D set the graphics card to do Does the graphics card keep displaying the frame it got from previous vertical b ...Show All
SQL Server How to show duplicates in reports
I'm trying to create a report in Sql Server 2005 Reporting Services where it will display duplicates rows in the reports. I'm unable to find the property that enables this. I would need something like HideDuplicates = false, but that is not the way it is intended to be used. If HideDuplicates is left blank, it seems to still hide duplicate values if the preceding row matches. The report is a crosstab type, so we are using a Matrix for the report item. I'll illustrate with a simple example: This is what we currently get: Catagory Class Detail Type 1 A Item 1 B Item 2 Item 3 Type 2 A Item 4 B Item 5 This is what we want: Cat ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Little Helper Code
I think this doesn't belong into tutorials - but that's just me, so feel free to close/move this thread elsewhere. Let's post some little useful code or links that are helpful for everyone. I will start: http://markus.rubicon-net.de/code/VectorRenderer.cs Line drawing utility. It supports 2d / 3d lines, BoundingBox and -Sphere. I always need something like this for testing. ...Show All
