Mike Thurber's Q&A profile
Visual Studio Team System Unit tests on Team Build
Hi I am trying to get Unit Tests running as part of the daily build. I have setup the test lists and added them to the Team Build. The Unit Tests run correctly locally, however when I go to run the Build I get the following error MSBUILD : warning : Failed to instantiate type 'Microsoft.VisualStudio.TestTools.WebStress.WebTestRunConfig, Microsoft.VisualStudio.QualityTools.LoadTest, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a': Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.LoadTest' or one of its dependencies. The system cannot find the file specified. Now VSTS SDE is installed on the Build server and I thought this was all that was needed to automate the Unit Tests, is this assumption ...Show All
Visual C# Speeding up pixel loops - speed of Math.Pow() ?
Hello, I'm writing a simple color corrector to teach myself C#, and have come across a couple of performance problems. First, I am using Bitmap.LockBits to loop through the pixels (this part seems fast enough!). The problem I am having is having to do if statements in the loop to clamp colors if they're out of range (0-255), and also it seems Math.Pow( ) is really, really slow (which forces me to do an additional if inside the loop, even!) Here's sample code (for blue, so this is repeated for red and green as well) for the math performed per pixel, per component: if (tmpBlueGamma != 1.0) { tmp = (float)((Math.Pow((double)(srcR[x * pixelSize] * toFloat), tmpBlueGamma)) * tmpBlueGain + tmpBlueOffset) * 255.0f; } else { ...Show All
Visual C# update datagrid
how can i update a changed datagrid if(dg.haschange()) // dg is your datagrid name { dg.aceptchange() ; // or something like that dataadapter1.update( dataset or your table name) } /// dataadapter is a control to update from datatable or dataset to database does it help you/ DongMT, Vietnam ...Show All
Visual Studio Express Editions all system fonts in a list box
u know like in word it displays all your fonts even the ones you ve installed in the C:/windows/fonts dir - well i cant do this obviously manually coz i dont know wot fonts dey gunna av - SO can u help me put all the fonts on the pc into my combo box All help apreciated, James. This only seems to work on normal combos, is there a way of doing it on a toolstrip combobox ...Show All
.NET Development Is this only possible in XPath 2.0
I can't fugure out how to write an xpath to do the following in xpath 1.0: Doc < Plane > < Seats Number =" 1 " Window =" No "/> < Seats Number =" 2 " Window =" Yes "/> </ Plane > I would like to concatinate the @Number & @Window fields on each node set returned Desired Results: 1^NO 2^Yes The problem is if I use concat in xpath 1.0 I only get a single string result. Any ideas This is easy if the number of "Seats" elements is known (or can be obtained and then the XPath expression can be dynamically generated. In case one knows an expected maximum number of "Seats" elements, it is still ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where is Microsoft.Xna.Framework.Components namespace ??
I recently got hold of a small code sample that uses XNA to generate terrain. Great !!! ... or so I thought. It turns out the project was created in xna game studio beta 1 and I have the 2nd beta. I have everything working except for 1 thing ... The above named namespace is referenced with a using statement at the top of some of the classes in my code and a few objects from within the namespace are used but I cant work out what assembly its in or even if i have that assembly !!! Can anyone shed any light on this ... preferably rendered in realtime :) Sorry about the long delay in replying but its been a bit hectic lately. Im trying to create a simple mesh based terrain generator. I downloaded a code sample fro ...Show All
Windows Forms position one form accurately over another resizable form
My form1 has a button, which when pressed - I need small form 2 to appear exactly under the button. Form1 is resizable, so I guess the button's coordinates will change according to size. Need help on this one please. the following code will be helpful private void button1_Click(object sender, EventArgs e) { Form2 form2 = new Form2(); int form2x = this.Location.X + button1.Left; int form2y = this.Location.Y + button1.Top + button1.Height + 50; form2.Location = new System.Drawing.Point(form2x , form2y); form2.Show(); form2.Location = new System.Drawing.Point(form2x, form2y); } ...Show All
Visual C++ How to synchronize between applications
I'm creating a data acquisition application that has to have its DAQ process started at the same time as the voltage generation application's start process. Naturally, this is a case of how to simultaneously trigger two separate applications. Windows messaging comes to mind, and i've been digging out PostMessage() but i dont understand how to implement it, if it even works between applications instead of just within one. Is there a MSDN entry or topic i should look into specifically to achieve this Thanks guys. 'kernel objects' was just the keyword i needed. I pulled a quick CreateEvent and OpenEvent to get its handle from a different application. Thanks again. ...Show All
Visual Studio Team System Issues with dimension after following warehouse troubleshooting guide
Hello, After following the troubleshooting guide and watching the trace files from the warehouse process I get the following error. Apparently I have some bad data in the system on a dimension. I've tried to figure out what's causing this with no luck. No reports are working as a result of this issue. Thank you for your help. 380: [DW] [Info, PID 380, TID 964, 17:26:29.048] Microsoft.TeamFoundation.WorkItemTracking.Adapter: Retrieved 689 Work Items to process. 380: [DW] [Info, PID 380, TID 964, 17:26:29.048] Microsoft.TeamFoundation.WorkItemTracking.Adapter: Processing work item 132 revision 1 380: [CS] [Verbose, PID 380, TID 3680, 17:26:29.078] Request authentication type: NTLM 380: [CS] [Info, PID 380, TID 3680, 17:26:29.088] CommonS ...Show All
SQL Server SSIS package
Guys I've migrated a SQL Server 2000 DTS package over to SSIS (which seems to have worked), its a really simple package with just one item, it first checks for a tables existance and deletes if necessary, then recreates the table and then inserts data from a selection of other tables, except its only creating the table no data is being inserted, yet the script to insert data works as I've tried it in a query. Any ideas Thanks inadvance Duncan-Countrywide wrote: Hi Thanks for the swift reply, I'm using the control flows and an execute sql task, as is it was imported, the only change I've made is the server names, as I said it does work no errors are generated, just when I check the tabl ...Show All
Visual Studio 2008 (Pre-release) DateTime display format in GridView
Does anyone know how to format the DateTime text and display it in my grid view. Right now the format is rather arbitrary. It's not just XAML, you have to write some .NET code too. Have a look at the MSDN documentation for IValueConverter for a sample of a DateTime converter. ...Show All
.NET Development How to connect to paradox database with password protected by c# using oledbconnection
I have question here.I can access paradox database using c# with oldeconnection which has connectstring as "this.connect.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+Application.StartupPath +@"\table;Extended Properties=Paradox 5.x;";",but I couldn't 't access a paradox database with password protection.Anyone has idea to solve it thanks in advance! " I believe that the password needs to be specified in the SQL statement. Below is an example: SELECT * FROM [Paradox 3.x;DATABASE=C:\MYDATA;PWD=ABC].[Table1#DB] ...Show All
Architecture Management of permissions in ASP.NET
I am putting an architectural design for an ASP.NET appliction. The application should allow multiple adminsitration levels and authorities. I am thinking of managing the users log on and permissions using session variables. When the user is authenticating, according to his role (which is stored in the database) a "role" session variable is created. when requesting a page, this session variable is tested and according to its value the user either uses the page or he is directed to a "No permission" page. Is there any better method for doing this task Muhammad, you can also take an integral look in security with these guidances Threat Modeling Web Applications ...Show All
Visual Studio Team System Is there a way to abort a web test if it encounters errors?
Hi, all. This is probably simple, so I apologize if this is too much of a newbie question. What I am seeing in my web tests is that if one step fails, the rest of them continue on. So, let's say my web test has 10 steps and step # 7 failed. Then steps 8, 9, and 10 are still executed. Is there any way to tell the web test to stop/abort once it encounters an error Thank you. What if you test the webtest and it works all the time and then run a load test that contains this working webtest and errors start appearing. If an error is reported, it appears that the script continues on, potentially reporting more errors. These additional errors might only have been due to the initial error. Is there a way ...Show All
Visual Studio Tools for Office Custom toolbar ONLY for Inspector Windows
Hi, i've got another post running where i was struggling to create a toolbar which is fine now, and i'm new to using VSTO for add-ins as i've been coding macro's a lot recently and now i'm transfering the macro's to this add-in. I need a new custom toolbar, or even just a new button to an existing toolbar, that is apparent ONLY on inspector windows - ideally mail items. I'm some way to doing it i think, but i assumed i would need to trap the event of an inspector window firing up, as it appears to me, impossible to attach a new toolbar or button to inspector windows, when originally none are open! Thanks for any help, Jay for some reason i'm really struggling with setting it all up, whether its setting up the event handli ...Show All
