HowardRichards's Q&A profile
Visual Studio Team System Handling pre events to perfrom validation
hi all, We are successfully utilizing TFS event subscription via webservice and doing tasks like work item generation, email notification etc but the problem is we cant do any validation as they are post events, is there any legal way of handling pre events so that we can perform our validations or anyway of rollback, plz advise.. regards faraz Faraz, there is no functionality in v1 to provide additional validation through a webservice. You could do the validation in UI by building a package, but that is only for UI and those validations could be bypassed by using OM or by not installing your validation package. I can give more details on building such package if you are interested in this option. Anoth ...Show All
SQL Server Datareader Destination as source for other datareader source ?
HI! as far as I know from docs and forum datareader is for .NET data in memory. So if a use a complex dataflow to build up some data and want to use this in other dataflow componens - could i use data datareader source in the fist dataflow and then use a datareader souce in the second dataflow do read the inmemoty data from fist transform to do fursther cals how to pass in memory data from one dataflow to the next one (i do not want to rebuild the logic in each dataflow to build up data data Is there a way to do this and is the datareader the proper component (because its the one and only inmemory i guess, utherwise i need to write to temp table and read from temp table in next step) (I have only found examples fro .NET VB or C# ...Show All
Visual Studio Team System Cannot pass a GCHandle across AppDomains
While working on my Automaton framework for build automaton with Team Foundation Server I've come upon this rather cryptic exception. It seems to happen only once in a while, something I'm able to do successfull requests without this exception. What I have is an .ashx which returns some HTML content to my .aspx, and the .ashx is called using Xml Http javascript call (AJAX). The error occurs when I try to read the .WorkItems property on an instance of the Changeset class. Full exception stack: [ArgumentException: Cannot pass a GCHandle across AppDomains. Parameter name: handle] System.Runtime.InteropServices.GCHandle.InternalCheckDomain(IntPtr handle) +0 System.Runtime.InteropServices.GCHandle.FromIntPtr(IntPtr value) +92 CPr ...Show All
SQL Server Import/Export data with SQL Server 2005 Express
Hello folks! I have installed SQL Server 2005 Express and SQL Server Management Studio Express. Everything looks ok and works fine, but I can't find the Data Import/Export Wizard. Can anyone tell me how to Import/Export data Thank you!!! There is a company that makes a whole bunch of db converters. I just used one of them to convert from Access to MS SQL Express: http://www.convert-in.com/acc2mss.htm They have a demo that will convert the first five records from each of your tables if you'd like to try it out before you buy. ...Show All
Visual Basic How to convert Coordinates to image?
Hi, I want draw a image using X,Y coordinates.(Ex- (88,50)(86,49),(87,48)) Can some body give me idea how to draw a bit map using co-cordinates. Thx & best rgrds Roopesh Apart from the obvious speed implications of a large array, is there a reason you cannot do something like this dim bmp as new drawing.bitmap(w, h) dim g as drawing.graphics = drawing.graphics.fromimage(bmp) for each pt as drawing.point in myarrayofpoints() g.drawline(pens.black, pt, pt) next ...Show All
Windows Live Developer Forums expo xpath
Does anyone have a good sample for getting an XMLNodeList from the GetCategories() soap call for the Expo API using Xpath ...Show All
Visual C++ symbol IDR_TOOLBAR1 undefined.
Hi, I am creating a win32 application with Dialog , i want to create a docable toolbar in that dialog, when i inserted a new resource (Toolbar) named IDR_TOOLBAR1 and using it in source file, resource.h file already included, yet it doesn't recognise IDR_TOOLBAR1, when i find the definition for the same from context meny, it gives a message 'symbol IDR_TOOLBAR1 undefined', but it is there in resource.h. If code for implementing the Docable toolbar in dialog in win32 application, that will be very helpfull for me. Any help will be appreciated. I think you might have renamed that control after adding it. most probably the error will be coming from DoDataExchange function where the controls get binded. Even you rename the s ...Show All
Visual C# Metafile serialization impossible ?
Hi, I would like to serialize a class which includes an image property field. I have no problem saving a bitmap image. However, when using a metafile (*.emf format) the result is also converted to a bitmap. Could someone please point me in the right direction Thanks, Sylvain [ XmlElement ( "Image" )] public byte [] ImageByteArray { get { if (_image != null ) { TypeConverter imageConverter = TypeDescriptor .GetConverter(_image.GetType()); return ( byte [])imageConverter.ConvertTo(_image, typeof ( byte [])); } else return null ; } set { if ( value != null ) { //TypeConverter imageConverter = TypeDescriptor.GetConverter(typeof(Image)); //_image.GetType()); //_image = (Image)image ...Show All
Visual C# Read 1 byte at a time from an array
Hello All I'm still converting onto C# from COBOL and have managed to read a file of bytes into an array using the following; byte [] allBytes = File .ReadAllBytes(openFileDialog1.FileName); I'd now like to loop through the array, one byte at a time and check that byte to see if it contains binary zeroes. Any suggestions as to how I could do this If they are zeroes, I'd then like to jump 200 bytes forward and see if this bytes is also zeroes then take some action ! Thanks Mark Many thanks - it's great to see code and how it works, very different to what I'm used to. Once inside the for loop, how do I actually check an individual byte In COBOL it would be something like allBytes(i) but I ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Grr, my game wont play, WTF!!!
its coded right, but ist says this, for game.run(); "Could not find a Direct3D device that has a Direct3D9-level driver and supports pixel shader 1.1 or greater." what the hell does that mean, and what do i do about it shokthatlovinggamer wrote: I recomend buying an ATI Radeon grfx card or an Nvideo Gforce or whatever it's called lol o well idc what can i say i just play the games. and btw don't listen to half of the guys who posted here lawl i doubt they have even had any REAL experience with dealing with graphics cards for REAL Gameplay. My xfire is gbshok if u need something and if u don't have xfire and u consider urself a gamer then ur noob rofl see yall round'. Wow! Just, wow! The first two ...Show All
Visual C# Capturing the up/down arrow key in a child form
Hi, Recently, I was trying to capture the UP arrow key from my window forms application. I was able to capture the key in the parent form but once i open a child form, I would not be able to capture all the arrow keys but the rest of the keys like 'a', 'b','+' and etc are ok. I have searched the web but did not find any solution. Does anyone know how to overcome this problem Thank you. Soh GavH is correct. You should avoid using KeyPress or KeyDown event because will produce some Debuging problems and will not catch some special keys. ProcessCmdKey is a right way to do it. ...Show All
.NET Development pass argument to the Thread
hello Everybody I want to pass argument to the Thread Currently i m having the code like this createthread() { this._WatchThread=new Thread(new ThreadStart(RunWatch)); this._WatchThread.Start(); } private void RunWatch() This works fine, but i m not able to pass the parameter I want to pass the this parameter i.e. the whole class. Thank you in advance As david Said, Please see this example: Thread someThread = new Thread(new ParameterizedThreadStart(SomeMethod)); SomeClass someObject = new SomeClass(); someThread.Start(someObject); private void SomeMethod(SomeClass someObject) { // Do work with someObject here } I hope this will work like a Charm! Best Regard, Rizwan ...Show All
Windows Forms location of image inside a picture box?
hi, is there an easy way to determine the location of an image inside a PictureBox control i have a large image inside and the SizeMode is set to Zoom (to maintain aspect ratio) so there can be either a visible margin to the left and right or to the top and bottom of the PictureBox control. i think i can do this by knowing the aspect ratio of the image and the aspect ratio of the PictureBox but i am really lazy and don't want to do the math. i was thinking there would be some sort of magic image location property but i can't seem to find that. it seems that it must be known at some time since OnPaint() knows where to paint the image. thanks, scott thanks, i've done the math. it was not really that bad but ...Show All
Visual Studio Team System How can I run a performance session and profile a test that is part of my test project?
I have an individual test in my test project that takes a long time to complete and I wanted to profile that particular test. When i launch a performance session and try and attach to vstesthost.exe after i have started the test, i get the following error: The profiling environment for VSTestHost is not set up correctly Do you like to continue anyway If i choose yes, then i get the following error: PRF0010: Launch Aborted - Unable to start vsperfmon.exe How do i setup the profiling environment for VsTestHost Thanks, Priya If you want to profile a unit test we actually have integration built into our system to allow you to profile unit tests. In the test results window just right click on th ...Show All
Visual Studio Express Editions VB Express adds junk characters to txt files
Using the writealltext command, I generate a simple txt file (actually ends with .cmd) - everything looks fine in Windows and notepad BUT when I open it in the commandline window (since I am using this as a console applicatin) and chose "edit filename.cmd" the first four characters that are generated are non caracters !! (graphic ascii actually). Of course things are not working correctly - I also get a "header" error when running the cmd file - but there is no "header" of course. So what has VB express done to me Anybody have any ideas The pertinent lines would be the following Dim jdppart1 As String = "D:\... etc" Dim jdppart2 As String = " -user...etc" Di ...Show All
