Rhubarb's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. How to draw an arc between two points
Im trying to make an application in C# to draw an Visio Drawing. The problem is that I dont know how to implement the ElipticalArc statement in the .vdx file. Is there a way to draw an eliptical arc between two points and thru a control point with direct3d Thanks for your answer. Do you know where to find an algorithm to draw an eliptical arc Maybe there is a book that brings up this subject ...Show All
Visual Studio Tools for Office Outlook Addin Deployment Strategy
We're writing a ClickOnce smart client app, which will have an Outlook addin component. The publish mechanism will maintain the smart client app. We're looking for the best Outlook addin deployment strategy to complement ClickOnce. We want to maintain the addin seamlessly. The problem I'm seeing is that the addin "Publish" option does not handle registry entries or CAS. There's a theory that we can bundle deployment-aware publish manifests into a setup project. Then the setup would make the initiail registry and CAS entries, while the manifest system would maintain the code from that point forward. But this seems limited to only those upgrades that don't require registry or CAS changes. So, if you make a change that affects ...Show All
SQL Server “AcquireConnection method call to the OLEDB Connection Manager for SQL Server failed” Error
I have an SSIS package which takes input from Flat file and transfer the data to SQL Server using OLEDB Destination Data Flow Item. The OLEDB Connection Manager used for the destination is configured to use SQL Server Authentication for the user ‘sa’. The package works fine without enabling the configurations. But when I enable package configuration and save the configuration of the various connection managers in an XML configuration file and then run the package it gives the following error in the validation phase: [OLE DB Destination [21]] Error: The AcquireConnection method call to the connection manager "<Connection Manager Name>" failed with error code 0xC0202009. And after the validation phase is comp ...Show All
Software Development for Windows Vista DelayActivity, State-Machine Workflow, Sharepoint
Hi there! We've got a problem with a state machine workflow in sharepoint 2007, especially with the delay activity. It seems to me as if the event of the timeout is generated, but not executed. My workflow is quite simple. It only has three states, Start, Execute and Completed. I create a task in the Start State and step to Execute State. This one has two EventDrivenActivities. First a OnTaskChanged an second a Delay (20 sec). If I install my workflow to a document library in sharepoint, start it an finish the task within 20 sec (debug mode VS2005) nothing surprising happens. The Code in the OnTaskChanges branch is executed as it should be. If I wait my 20sec without working on the task, the code of the Delay branch should be executed, but ...Show All
Windows Forms OnHandleCreated, IsHandleCreated: some threading issue makes me crazy :(
I'm getting smth strange. I am overriding OnHandleCreated method on my Form, and as usual Window Handle is already created i can happily access it from the OnHandleCreated method body. but if start a new thread right away, i can not access the Window Handle from there - at least "IsHandleCreated" returns false and Form.Invoke methods throws an exception if called from this new thread "private IntPtr handle;" is not declares as volatile, so maybe what i am getting is a threading memory synchronization issue how do flush thread caches i've tried executing some "locked" section - in Java this would reload all the data from the main memory copy, but this did not help :( what i hate about my problem - it is 50% repro ...Show All
Windows Forms Does WinForms 2.0 support floating and docking menu/toolstrips like Office 2003 or Visual Studio 2005? [Question only for MSFT]
I had high hopes for the ToolStripContainer but it appears that it only allows a ToolStrip or MenuStrip to be moved from one of its edges to another. If I start dragging a ToolStrip and try to release it anywhere except one of the four edges—for example, in the content panel or outside the window—nothing happens. Question: Is there some existing mechanism that I can use or is it necessary to build this from scratch I know about third party controls, but I'm looking for standard solution (in WinForms 2.0 from Microsoft)! PS: My question is only for MSFT! ...Show All
Visual Studio Help System, Sandcastle - Catch 22's, etc
Hi, I've downloaded and installed Sandcastle, I've downloaded and installed Eric Woodruff's Sandcastle Builder and I've downloaded Innovasys' Document X product. Both Eric's the Innovasys' software inform me that I need to install the Help System, I'm not certain that Sandcastle itself didn't tell me the same thing. So I downloaded the Help System, however early on in its install process I was informed that I already had the help System installed and because it was a later version and because it wasn't broken the install, of the version I downloaded on Tuesday, terminated. I've installed the May MSDN in its entirety and I have VS Express (C# and J#) installed. Any suggestions, other than reformatting my disks and reinstalling everything (I ...Show All
Visual J# J# source code to compare XML files like ExamXML
Hello, I’m working on a project that includes comparing XML files and I need a source code on J# to compare XML fragments. I’m using ExamXML from http://www.a7soft.com to compare XML files but I need the J# source code. Can anybody help me. Thanks. Oops..We wouldnt be able to help you get the J# source code -:( If you run into any issues, we will do our best to respond to your issues. Thanks, Varun ...Show All
Visual Studio Express Editions Ugh....Driving Me nuts....
I am in the middle of writing a prog that takes a file within a directory on a HD renames it to the directories name and then places the newly named file on the root of that HD. Here is the code. and I am not getting it.....I would really appreciate your help. Thanks Imports System Imports System.io Imports System.IO.DirectoryInfo Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim dlg As New FolderBrowserDialog Dim FileNamesSelected() As String Dim SelectedFolder As String 'Dim FileFound As String SelectedFolder = Me .FolderBrowserDialog1.SelectedPath FileNamesSelected = System ...Show All
.NET Development Data Adapters...where are they?
I just upgraded to VS2005 and am just wondering what the differences are between the data access setups. I know that in my current code from previous projects I have data adapters and I see that the VS2005 doesn't even have data adapters. The reason I'm asking.... I was working with a project and I needed to add another connection/data adapter and I couldn't. So, I just copied and pasted a previous one and set the properties like I wanted. This didn't work and only made it so none of my connections/adapters are working now. It was odd, but would it be worth my time to just switch over to the newer style Thanks for your time. I found it odd myself. Is this the way I should have gone about adding a new d ...Show All
Visual Studio Team System Failed to Queue Test Run
I'm trying to run load tests in a test rig. When I try to execute the test, I got the next message Failed to Queue Test Run 'rido@LAB03 2006-11-22 20:44:48' with id {d91a3672-eb34-477f-8fd2-86ab886c56a4}: System.Security.Authentication.InvalidCredentialException: The server has rejected the client credentials. I have setup the same user as admin with the same password on every machine (client, agent and controller) I enabled the controller traces and looks like this: [V, 3100, 9, 2006/11/22 20:53:47.203 33857683064] QTController.exe: Hello [I, 3100, 9, 2006/11/22 20:53:47.243 33857832671] QTController.exe: Remote User Connected: TESTCONTROLLER\rido [V, 3100, 9, 2006/11/22 20:53:47.243 33857833405] QTController.exe: Checking ...Show All
SQL Server File Location based on parameter ?
Currently File Connection Manager Editor with Usage Type : Create File and File: eg C:\DBA\Log\SSISPackage1.log The desired Goal: Rather than hardcode the file directory for a log file eg C:\DBA\Log\SSISPackage1.log can the definition be parameterized. For example \\MachineName \DBA\Log\SSISPackage1.log where MachineName is the location where the package is phyiscally located. I have been trying to use a user variable for the fileName but I get keep getting the message expression for LoggingFileName failed evaluation. There is an error in the expression. My expression is "\\" + &[System::MachineName] + "\ ...Show All
Software Development for Windows Vista TypeConverter not working
Hello, I have a property that is an IPAddress. I set the following dependency property public static DependencyProperty IpAddressProperty = DependencyProperty.Register( "IpAddress", typeof(IPAddress), typeof(PortCheckerActivity), new PropertyMetadata(IPAddress.Parse("127.0.0.1"), new Attribute[] { new ValidationOptionAttribute(ValidationOption.Required) })); Then the property declaration is: [Description("IP address")] [Category("Net")] [ValidationOption(ValidationOption.Required)] [MergableProperty(false)] [TypeConverter(typeof(IpAddressConverter))] public IPAddress IpAddress { get { return (IPAddress)(base.GetValue(PortCheckerActivity.IpAddressProperty)); } set { ...Show All
Visual Studio Team System From Single Node to Dual Node with Clustered SQL Server
I was wondering if somone has migrated TFS from a single server installation to a Dual Node installation with clustered SQL Server in the backend What kind of issues one should expect Also is a any document from microsoft that describes how to actually perform this migration Thanks Shahab While there isn't anything specifically for this exact scenario, there is MSDN Help documentation both on configuring TFS for use with a clustered SQL server in the data-tier (this should be present in the installation documentation), and documentation on moving from a single server installation to a dual server installation (see http://msdn2.microsoft.com/en-us/library/ms404854.aspx ). This topic assumes that as part of the move, you will ...Show All
.NET Development Best/fastest way to save a large DataTable a database?
Hey, Whats the best way to save a rather large DataTable to a database It consists of roughly 60 columns and 15 thousand records (6MB of raw text). I was thinking of using a stored procedure but would that give any performance increases on an operation like this Thanks! Regards, Weiran. I have another problem :(. Every time I insert into the table, it deletes all the previous records! How can I avoid this Thanks! ...Show All
