mcnamaragio's Q&A profile
Visual Studio Team System TFS Builds and work items
Is there any way to get TFS to create a seperate work item for each build error and or warning I hate having to trrack back the bug to the build report then magically I close one work item and all the errors in that build are fixed I would like to be more granular. Your question is very interesting. Let me tell my suggestion on this regard. The build workitem creation is especially for the particular build which is failed due to COMPILATION errors [higher priority - since it won't go to next phase like unit test or code analysis and it will create a new workitem called BUG and assigned to Administrator] or Unit Tests or Code analysis .. So from the above term, if the ...Show All
Visual C++ VC++ 2005 Win32 redistributable
I would like to make a single file, redistributable "Hello World" program. Is there a way of compiling any depenent files/DLLs into the helloWorld.exe program #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { printf("Hello World!!!\n"); return 0; } OR #include "stdafx.h" #include "iostream" using namespace std; int _tmain(int argc, _TCHAR* argv[]) { cout << "Hello Object World!!!\n"; return 0; } *** please test (must run on a computer other than the one used to compile) I think what you are after is a packer. I use one called Mole Box. Link: http://www.molebox.com/ ...Show All
Windows Forms Calling a method in form1 from form2.
Ok this is my first post on these forums so go easy with me please Ok as you can see from the threads title im trying to call a method in form1 from form2. This i have managed to do but what im trying to do is when calling the method from form2 i need it to add some text to a textbox in form1. For some reason this will not work, but if i add a simple messagebox to the method this gets called and the messagebox pops up Now i've only been coding in C# for a few months and im new to this so please go easy with me. Here's what i have so far... Form1... namespace CallingMethods { public partial class Form1 : Form { public Form1() &nb ...Show All
Visual C# how to check if a file is read-only?
I used : if ((File.GetAttributes(file) & FileAttributes.ReadOnly) != 0) gave me error, saying The given path's format is not supported. Hi, You can use the following code segment string FilePath = @"C:\TEST.txt" ; System.IO. FileInfo Info = new System.IO. FileInfo (FilePath); if (Info.IsReadOnly) { Console .WriteLine( "FILE IS READ-ONLY" ); } ...Show All
Visual Studio Express Editions ReneeC I need your Help.....
Well...there comes a time in almost where a choice in the past makes for a difficult (or at least uneasy) future...I have made such a mistake. Now I need to correct it and since you (ReneeC) helped me with it in the very first place I beseech you to help me correct it..... I am not sure it you remember the following program: ----------------------------------------------------- Imports System.io Public Class FolderRenamer Protected Const ext As String = ".vob" Protected gbFd As New GroupBox Protected gbTb As New GroupBox Protected Friend WithEvents TextBox1 As New TextBox Protected Friend WithEvents Fdb As FolderBrowserDialog Protected FilesMoved ...Show All
Game Technologies: DirectX, XNA, XACT, etc. PC deployment in a single download. (Minus framework download)
I have not seen this posted since the 1.0 release. I really want to be able to get games into peoples hands with the least number of steps.. Downloading the framework is one more step I do not wish the less technically inclined to have to deal with. Has there been any more information released on the future prospects of being (PC SIDE) able to have a deployable game that does not require the download of external libraries ( The XNA framework ) Thank you and sorry if I missed a post on this. Easiest is to use the re-distributable installers for .NET 2.0 and XNA and DirectX, and put those installers into your game installer. Then chain out to those installers, in "/silent" mode, to make sure the pre-r ...Show All
Software Development for Windows Vista Validating wich activities I can insert on my custom activity.
Hi. I have a custom composite activity, and I don't want that an activity of the same type is inserted as child of it, in any level. I don't have problems when I want to insert the same type activity as a direct child, because I can override the CanInsertActivities on the my designer. But if I add a composite activity, I cannot find out how can I forbid to add an activity of the parent type inside it.... (Like a similar behaviour when adding a transactionscope that is indirectly a child of another transactionscope, but instead of showing the validator, I don't want the user to be allowed to add it...) Thanks in advance, Matias Matt, I don't think you can do this 100% with the designers. As f ...Show All
SQL Server SQL-DBMS - Database Management System
DBMS - Database Management System A Database Management System (DBMS) is a computer program that can access data in a database. The DBMS program enables you to extract, modify, or store information in a database. Different DBMS programs provides different functions for querying data, reporting data, and modifying data. ...Show All
Windows Forms "ReBuild Solution" resizes dialog and reorders DataGridView columns
Hi, I've been working on a VS05 project (C#) for a couple of weeks and today VS05 has started to shrink my main dialog form and reorder the columns in a DataGridView on the same form each time I rebuild the solution. The strange thing is that if I close the form designer for the dialog concerned and then rebuild the problem does not occur - it only happens when the form designer is open. I've tried cleaning the solution and restarting VS05 but it doesn't make any difference. Can anyone suggest a fix for this - I'm getting tired of resizing the form and reordering the DataGridView columns each time I rebuild the solution and forget to close down the form designer first! Thanks in advance. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I need Path-Finding
I am currently working on an RPG using XNA and I was wondering if anyone has implemented a shortest path algorithm on XNA. I need some shortest-path collision-avoiding code that I can use on a grid. I have looked at A* and Dijkstra's algorithm, but I think both may be outside my capabilities as a programmer. Any help is greatly appreciated. How precise must the shortest path be Do you need to find an absolute shortest path or only good path If you need an absolute shortest path, and if you can't find a simpler way, I can help you get started on a Dijkstra graph algorithm. But I'd be interested in an easier method as well... Dijkstra's algorithm is well suited when you have a grid with medium to larg ...Show All
.NET Development sending unknown amount of parameter to a select query.
Hey friends, I have a question but I don't know how to explain, I will try :) I use a SQL 2000 database and I have a table called " tblObject " . I want to get some records from this table according to a listboxes checked items . There might be only one Item checked or several items. Therefore I don't know how many parameter I have to send to the query. this is the way I do this job currently : ' Creates a WHERE statement string. ' To add at the end of Select command Private Function getCriteria( ByVal objectIds() As Integer ) As String Dim criteriaString As New StringBuilder For Counter As Integer ...Show All
Smart Device Development Visual Studio Options dialog does not change Device options
In Visual Studio 2005, I use the Options dialog > Device Tools > Devices to change the drop-down for "Show devices for platform", and then change my Default device to "Windows Mobile 5.0 Pocket PC Device", but as soon as I close the dialog box, the change disappears. The default emulator will not work at all with this project (upgraded to CF 2). Any suggestions Thanks. UPDATE: I suspect that I have to recreate the solution, selecting "Windows Mobile 5.0 Pocket PC" in the project type instead of "Pocket PC 2003". Is there any automated way to do this ...Show All
Software Development for Windows Vista Heap Corruption (?)
Greetings! This little nuisance has bothered me for quite some time now - it's regarding a heap corruption ( ) when I use DirectShow. The graph seem to build just fine (looks just fine using GraphEdit), it's not until I call m_pGB->Render (m_pGB being the Graph Builder) that I get four popups about the program triggering a breakpoint, possibly due to heap corruption in Visual Studio 2005. If I chose to "continue" through those four popups, the video renders just fine as it should. The same error also applies to a simple m_pGB->RenderFile, which I tested to make sure it wasn't somewhere in my graph setup. Has anyone got any idea whatsoever about what could be causing this I'm using Microsoft Platform SDK for Windows Serv ...Show All
SQL Server Torn_Page_Detection vs Checksum as Page Verifications
Any have experiences with the CHECKSUM database page verification (good or bad) My concern is that each would be ideal for certain situations, but none have been documented. Another concern is that CHECKSUM may not catch all the exceptions that TORN_PAGE would, and vice versa. If I had to guess, CHECKSUM introduces a minimal CPU overhead that could be noticed with larger recordsets, but offers more overall protection. From Books Online: CHECKSUM Calculates a checksum over the contents of the whole page and stores the value in the page header when a page is written to disk. When the page is read from disk, the checksum is recomputed and compared to the checksum value stored in the page header. If the values do not matc ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .X importer for XNA - XSI user needed!
http://www.myjavaserver.com/~jonathanf/stairs.x This .x file displays correctly in the DXviewer as a staircase. However, when loaded into xna it is merely a cube. What gives The staircase was made using XSI Mod Tool and exported using the default .x exporter. ~Jonathan download the source code from Rocket Commander XNA. there is a content processor for processing .x files. Download ...Show All
