Answer Questions
Matt Jones Stopping Automated build if analysis detects errors
Hello I am attempting to automate my build process (using MSBuild). MSBuild is happily constructing my assemblies and I am calling FxCopCmd after this. FxCopCmd is running happily and generating an analysis report. I would like the build process to be able to detect when the FxCopCmd analysis has found problems. The exitcode returned from FxCopCmd is 0 (zero) so I can't use that. It appears that I will have to "post process" the output generated by FxCopCmd, looking for warnings and errors. Have I got this right This seems like more work than I was expecting. Do you have any tips on how to perform this "post processing" or have I missed something and there is an easy way for the build ...Show All
kreigh Finished program
This is the nonsense project that I've been asking for help with, just in case any one wants to see it now that it's finished. It was an interesting exercise, and worth a look if you're beginning VB.net. http://www.planet-source-code.com/vb/scripts/ShowCode.asp txtCodeId=5496&lngWId=10 Works pretty good. I had to manually move the gifs to a "C:\pics" folder. Embedding them would have been better. Program review *** (naughty!) Yes Embedded would have been better but as I said it was only a bit of nonsense to give me a break, You could have moved the images to anywhere as long as you altered the path in the code to reflect where you placed them. Liked your program review ...Show All
Takato Is AfterCompile batched on ConfigurationToBuild?
I need to do some post compilation re-arranging of the binaries directory for each configuration, can I do this in AfterCompile and use the CompileOutDir item If I move the binaries to sub-directories of the BinariesRoot will the testing processes still pick them up You can copy your some post compilation to your sub-directories ,but you must manual config this . You can find the anser in 'http://blogs.msdn.com/aaronhallberg '. If you move the binaries to sub-directories of the BinariesRoot in AfterCompile, the follwing testing processes will not run, Team Build will report build error to your build log. I Think you can do this ( move the binaries to sub-directories of the BinariesRoot ) in A ...Show All
gauls how can I integrate C program in VB express?
how can I integrate C program in VB express Regards, Yaniv C++ mangles the symbol. Use extern "C" to stop the mangling: extern "C" double __declspec(dllexport) b5(int x) { return x; } I wrote dumpbin /exports b1.dll and I get this information: Dump of file b1.dll file type: DLL summary 4000 .data 1000 .idata 2000 .rdata 2000 .reloc 28000 .text and in the b1.def file I saw this : # microsoft Developer studio............,included by b1.mak ./stdafx.cpp : / "..\..\vc98\include\basetsd.h"\ ".\stdafx.h"\ So I don't understand how this information help me ...Show All
Will Buchanan Run 3rd Party app from button...
I know this is probably a dumb question but i couldnt find an answer on my own. I have basically an "auto-run" program that runs diffrent setup programs for various freeware apps. This will be saved onto a cd.....and the drive letter may change so how do I make a program start when I click on a button The easiest way to startup another app from yours is to use the Process class and it’s Start() method. To start a new instance of the Windows Calculator for instance you’d simply fire off this line: System.Diagnostics. Process .Start( "calc.exe" ) Not only can it accept just the program name without a path (provided the file is contained within a path the system will automatic ...Show All
HedleySohn VB Express connecting to SQL database
Can anyone tell me whether its possible to connect Visual Studio Express Edition to a SQL server database not stored on the local host. I rent some SQL space on the net but I only seem to be able to connect to a locally stored database in vb express. Can anyone help me out Thanks.. Hi, VB 2005 Express database explorer and database objects wizards only allow connections to a local database. The only way, I found, to resolve this limitation in VB Express is to code the connection string and database objects as per my previous post. I believe that the full version will allow this feature. Hi there, I've just installed SQL Server 2005 Express on my server running Windows Serve ...Show All
Yelnik arrays
Hi, what is the best way to compare and extract data from arrays with null characters, like char a[]={0x61, 0x00, 0x61}; (something like strstr, strcpy on strings) thanks MarianL wrote: what is the best way to compare and extract data from arrays with null characters, like char a[]={0x61, 0x00, 0x61}; (something like strstr, strcpy on strings) MarianL wrote: I am coding only C If these are meant to be arrays of arbitrary bytes, you might want to define a data type for them, something like typedef unsigned char byte ; How will you be keeping track of the sizes of things It looks like you want to use the counted versions of functions, comparable to strncmp()and strn ...Show All
hOmeR J Problems inserting into Access
I leep getting error of: A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.dll A first chance exception of type 'System.InvalidCastException' occurred in System.Data.dll A first chance exception of type 'System.InvalidCastException' occurred in System.Data.dll My code is: Imports System.Data.OleDb ' "at the top of the form1" Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Insert record Dim connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\TestInsert.mdb" ...Show All
xanadont Modification/customization of WI type "Task" cause Team project Creation failure. Process template is customized for WI "Task".
Scenario: I am working on customization of Work Item Type "Task". Scenario: I am customizing the CMMi process template to suit my Project requirements . To achieve this I changed the Work flow for the Work Item Type “Task”. Also I added few values to the “Discipline” field for WI Type “Task”. When I am importing this Work Item using “ witimport” it is working fine. But when I am adding this WI task.xml to Process Template and uploaded the process template on the server. Now am creating Team Project based on this Process template it is giving me error below: Event Description: TF26214: Cannot save the work item. Fields with errors: State,Discipline Exception Type: Microsoft.TeamFoundation.WorkItemTracking.Clien ...Show All
Omniscient Setting combobox.text property in SelectedIndexChanged event
When the user selects an item in the list in my combobox, I want to display only a portion of the text of the item in the text field of the combobox . The style of the combobox is DropDown (which I see from other postings is necessary to set the combobox.text property). But it's not working. In my SelectedIndexChanged event, I reset the .Text property. If I step through the code and examine the .Text value, it appears to change. But when the code exits that event, something sets it back to the text of the selected item and the full text of the selected item displays. Any ideas Interesting problem. The TextBox gets set *after* the SelectedIndexChanged event fires so it wipes out your modification. Al ...Show All
mikenwood Schema Import: Syntax Error with valid SPROC
I have a few stored procedures in our database that are getting ignored during schema import and have been logged into the "ScriptsIgnoredOnImport.sql" file. Please see below: "Syntax Error: Incorrect syntax near ,." CREATE PROCEDURE getOrders AS SELECT OrderID , OrderDate , ShippedDate FROM Orders WHERE CustomerID IN (( SELECT CustomerID FROM Customers WHERE CustomerID = 'ALFKI' ), ( SELECT CustomerID FROM Customers WHERE CustomerID = 'ANATR' ), ( SELECT CustomerID FROM Customers WHERE CustomerID = 'ANTON' )) GO Now obviously this procedure can be easily re-written to avoid using the comma-separated sub-queries, but this is merely a procedure o ...Show All
AlucardHellSing How to edit the vsmdi file to add unit tests for TeamBuild?
Hi, Like many other people, I only have VS Dev Edition so I cannot create test lists. Can someone show an example of how to edit the vsmdi file to include the desired assemblies with unit tests, and add it to the TeamBuild project file Not sure if this is exaclty a trivial task, but any pointers would be welcome. Thanks! DQM: thank you for your answer. We know about Buck's solution but we would also like to use the whole functionality of the test manager. Steve: thank you for sharing the real life experience :). We are also evaluating third party Test Manager add in (for now it works fine), but before making decision about purchasing it, wanted to share other peoples' strategies. Any other real life experiences ...Show All
Blkbird sending a value to a method
Hi, How can I send a value to a method. In the code below when the Analog value has change I would like to send the new value to PictureBox4_Paint. Module Module1 Public AnalogValue As Short End Module Public Sub PictureBox4_Paint( ByVal sender As Object , ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox4.Paint Dim B As New SolidBrush(Color.DarkGray) If AnalogValue >= 100 Then e.Graphics.FillRectangle(Brushes.Red, 0, 0, 10, 5) Else e.Graphics.FillRectangle(B, 0, 0, 10, 5) End If If AnalogValue >= 200 Then e.Graphics.FillRectangle(Brushes.Red, 0, 10, 10, 5) Else ...Show All
JeevesIndia Is it even possible to write a program to do what I need?
Hello All, I am a classic ASP developer. I wrote an ASP app for a companies intranet. They want me to make a "portable" version of it for sales people who do not have access to the web/intranet at certain times on the road. My idea was to have them install IIS on XP (they are all on XP), and run the app that way. The issue becomes that we need to have some way to ensure they have the latest files on their machine. They also want to be able to run the app from a start menu or desktop icon. I wrote an app in VB Express Edition that once installed would open up an IE window and access the ASP files. Here is the code I wrote... very simple: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As Syste ...Show All
Lawrence Liu - MSFT TF26212 - work item type definition problem
I've changed a work item type using witexport and importing it using: witimport /f <file name> /t <team foundation server> /p <project name> After importing, the work item type displays correctly, but when I try to save it, I get the following error: TF26212: Team Foundation Server could not save your changes. There may be problems with the work item type definition. Try again or contact your Team Foundation Server administrator. Unfortunately, the other items I found in the forums about this were unhelpful. My problem is slightly unique - Logging in as myself, I get the error above. However, a coworker logged in and did not get the error when saving. Any suggestions on how to correct this ...Show All
