DroopyPawn's Q&A profile
Software Development for Windows Vista custom sql persistence
What I'm basically doing is deriving from the SqlWorkflowPersistenceService: public class SqlWorkflowStepPersistenceService : SqlWorkflowPersistenceService { protected override System.Workflow.ComponentModel.Activity LoadWorkflowInstanceState(Guid id) { Guid StepID; byte[] State; if (RetreiveNextStepData(id, out StepID, out State)) return WorkflowPersistenceService.RestoreFromDefaultSerializedForm(State, null); ...Show All
Visual C++ Excluding files in xdcmake?
Hello, I'm currently writing a .NET Class Library in VS 2005 for use in cross-language development, and I've come across a small problem. I've been using the XML comment flags to generate an XML documentation file to accompany my library, which is working out fairly well. However, I have to include a number of header files from a different project which all support a somewhat different commenting style. So, trying to compile my project with these headers included creates a number of warnings in those associated header files (actually, 'a number' is a bit of an understatment - in the thousands is more like it). This is proving to be a bit of a nuisance as it's become very hard to separate documentation warnings applicable to my code vs. t ...Show All
Visual C# Copy file to folder
string cpath = listBox2.SelectedIndex.ToString(); string cpath2 = cpath + "temp"; if (cpath.Substring(cpath.Length-3,3).ToLower() == "xml") { File.Copy(cpath, cpath2); } I have a listbox of folders and when i click a folder the files appear in my listbox2...i want to select one the files click by button and that file is copied to my c:\\temp folder.....I am getting the exception that my start index must be less than zero....any help...thanks! Tryin2Bgood wrote: string cpath = listBox2.SelectedIndex.ToString(); that should really be if (listBox2.SelectedIndex==-1) { return; } String cpath = listBox2. SelectedValue ; You SHOULD use my code from above however als ...Show All
SQL Server URGNET: Report Builder with Forms Authentication
We have successfully implemented forms authentication using the sample provided with SQL Server 2005. The ReportServer and Report Manager both are working fine with the following url. http://<server-name>/Reports http://<server-name>/ReportServer However, when we launch the ReportBuilder using the following url http://<server-name>/ReportServer/ReportBuilder/ReportBuilder.application or from the Report Manager it prompts for user name and password. On entering the valid user-name and password, it gives the following error. The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version. This error is when we are trying to access ...Show All
Windows Live Developer Forums More tiles, please?
Greetings, I see from the API that there's a way to implement a custom tile layer. Pretty cool, but for the project I'm brewing, I need more tiles (it's a granularity/server resource issue) at all zoom levels than the map engine uses. Is there a way I can implement this, or should I just roll my own tool Cheers, Bradford This is worth a read: http://viavirtualearth.com/vve/Articles/WorldWind.ashx John. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Render to Texture
Hi, is it possible to render my 3d world to a texture instead of the screen If so, can someone please supply a short example of how to do this. FYI - I am using depth buffer enabled =true. I have looked at some other posts regarding this topic, but the code no longer seems applicable since the release of version 1.0. Any help is much appreciated. Dave PS XNA is really good fun !!!! Thanks guys !!!! thanks guys. GiantKiller - I need to render to the texture, not just get a copy of the current screen. But what you have found will be very useful for another part of my game, thanks for that mate !! ...Show All
Smart Device Development Windows hooks on WM 5.0 for Smartphone
I am aware that SetWindowsHookEx is not meant to be used for smartphones on WM 5.0, though I notice the function is available in coredll.dll in both Smartphones and PocketPCs. I also notice that limited usage can be achieved on PocketPCs (yet, it's all undocumented), while I had no success while playing with it on a smartphone. What do we do in that case I want my application to be able to receive press events (incl. the events coming from 0-9 keys) while homescreen is in foreground, and to be able to execute a code before any other application (for instance a dialer) handles the events. What do we do for it when SetWindowsHookEx() is not available Btw, is SetWindowsHookEx() now considered to be a *privileged API*, or it is not availabl ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rotating points in 3D
I am working with some vector graphics that consists only of an ordered set of 2D points in XY space. The order of points determines the path that a line is drawn through them. I would like to be able to rotate the points in 3D so that I can flip and rotate the vector picture. After performing a rotate of some degree I want to be able to write the new set of points to an array or file or whatever. I also want to be able to display my vector image in a Window. So I have two questions: 1) Is there anything in DirectX that will help me rotate some XY points in a 3D space and then give me the resulting XY coordinates 2) What do I use to draw these points to the Window using DirectX In the past I have used normal Windows drawing me ...Show All
Visual Studio Express Editions Printing Assistance needed.
Hello, I wrote a little application that accepts a studentID in Textbox 1 and returns courses taken in Textbox2. I need to print a carrige return in between the two boxes, because when I send it to the printer textbox2 prints on top of textbox1. I have the VB step by step book which was helpful, but left it at my mom's house. Please assist me. Here is my code for my print component: Private Sub PrintDocument1_PrintPage( ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage 'Prints Textbox1 and Textbox2 e.Graphics.DrawString(TextBox1.Text, TextBox1.Font, Brushes.Black, New System.Drawing.RectangleF(e.MarginBounds.Top, e.MarginBounds.Left, e. ...Show All
Visual Studio Team System Work item Action list
Hi, There is more work item actions beside - Microsoft.VSTS.Actions.Checkin If there is, where can I find them Thanks in advance, shmulik. Actions only provide hints to third party applications on what the next state may be for a current state; they cannot be used to trigger any custom actions during a transition. Unfortunately, work item type itself is pretty much closed, and does not support any customization other then supported by rules and conditions. And we do not support custom rules/actions. Sorry. Alex ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to outline BoundingBox visual queue?
Does anyone have a method of drawing a wireframe box on the outer edges of a bounding box I'm curious if it's possible so that in a debug / scene builder scenario it would be possible to get a visual indicator of a selected boundingbox I can code it out, but if there is some blantantly obvious method for this I'm missing I'd love to know. For more flexibility, you could make a class that draws a 1/1/1 cube using lines, and when drawing it, apply a Scale Matrix based on the values of the bounding box. This way, you only have to create a single box object in memory and use it as much as you want. ...Show All
Visual Studio Unable to start debugging on the web server
Hi I dont know if this error has been addressed already couldnt find it but here goes. When I try to debug my website on VS 2005 it is giving me the following popup error. Unable to start debugging on the web server .An authentication error occured while communicating with the web server. I have tried almost everything suggested on the net also verified my username addition in the Debugger Users group The site launches successfully on CTRL+F5 Interestingly I havent come across this particular error message in any of the forums I visited. Any help would be extremely appreciated. Regards Amrit Plz solve this problem "Unable to start debugging on the we ...Show All
Software Development for Windows Vista sequential WorkFlow
Dear sir In sequential Wf, Where it is possible the following case I have Ten Activities After excuting the secound Activity, WF wants to wait for Some user input. According to the User input, when I am Clicking the button, the Third activity should work Please give the details where it is possible in WF beta2 or Beta2.2 regards vijil Bangalore www.craftsilicon.com yes, between the activity2 and 3 add an HandleExternalEvent activity that will wait for your user input; after this handleExternalEvent activity, add an ifElse Activity ; drop your activity3 on the left ifElseBranch activity and in the property page of this left branch set the condition. You can ...Show All
SQL Server Is there a notification icon?
Is there any way to configure a notification icon in the start tray in Express 2005 (like we had in SQL Server 2000) with a little green (or red) arrow (or dot) to indicate whether the server's up (or down) Hi, SQL Service Manager doesn't come with SQL2005 editions, but if you want one, you can get it here . Andrej ...Show All
.NET Development URGENT: XML document from VB.NET
Hi, I am a new developer trying to create an XML document for a VB application. I want to store the data from the all form controls in the application in a XML document. I started with a single form and my following code created XML document successfully, but my problem is the XML elements are created in descending order, i.e., first element is displayed as the last element... Dim controlType As System.Type Dim ctl As System.Windows.Forms.Control Dim mywriter As System.Xml.XmlTextWriter mywriter = New System.Xml.XmlTextWriter("c:\testxml.xml", Nothing) With mywriter .Indentation = 4 .IndentChar = " " .Formatting = .Indentation .WriteStartDocument() ...Show All
