Haashole's Q&A profile
SQL Server date field select help
Help, I've got a field in this format that I can't break apart. 05/30/2005 00:00 00 I need to select records with this field greater than 02/01/2006 without disturbing the field, can i do this select in SQL Even with the hours/seconds in there Thanks, Scooter doesn't that depend on the localization settings in the states 12/1/2006 is December first 2006 . . . but in the uk its January first. . . isnt it ...Show All
SQL Server Can't Open Encrypted Package After SP1 applied
I have a problem where after applying SQl Server 2005 SP1 to my workstation, where it presumably updates Visual Studio, I cannot open a package that is password protected and was created before applying SP1. My colleague has not applied SP1 and can still open the package, but I don't even get prompted for the password. Has anyone else come across this Hi, What messages do you see when you try The package is stored on the File System or in SQL Did you apply SP1 to the release version of SQL 2005 or was it a pre-release/CTP version of SQL 2005 When your colleague successfully opens it, they are prompte ...Show All
Visual C++ C++ STL vector class behavior within a managed class
First off, I am using the visual C++ .NET environment. I am creating a poker game. I have a Deck class and a Card class. The Deck class contains a vector of cards. Originally, I had both classes unmanaged and they worked fine but were difficult to use within my managed form class so I decided to make both Deck and Card classes managed. I am able to get everything working except something about my vector is creating compiler errors. Im sure this has a very simple solution but I am still a novice within the .NET environment. C3149: 'Card' : illegal use of managed type 'Card'; did you forget a '* ...Show All
Visual C# Problem Path length allowed for new project in VS2005
I am getting a very strange error in VS2005 Team Developer Edition. Here is the scenario: I go into FILE/NEW/PROJECT/Visual C# Windows Console Application. I get the New Project dialog box. I am looking to use the following as the Location: "C:\Documents and Settings\XXXX XXXXXXXXX.ZZZ-ZZZZZZZZZZZ\My Documents\Microsoft Press\Visual CSharp Step By Step\Chapter 1" (I have replaced my name with X's and my machine name with Z's in the example above.) I am naming the aplication: "WindowsApplication1" or somthing that length. It is clear that this is a long path but well under 260 characters - the length that I understand is the max for my OS (Wi ...Show All
Visual FoxPro Treeview stops answering
Hi, all. I'm needing some help with a rather strange problem: I have a form with aTreeview (ActiveX Control) in it. There's a routine that calls another form. Funny thing is: if I trace this routine and form (using the SET STEP ON command) it works perfect. On the other hand, if I run it normally, when I lose the second form, the Treeview stops responding to the mouse, I.E it doesn't scroll or allow the user to click a node. I have no idea as to what I should be looking for... Thanks in advance I've already solved it... Just made the form modal, and it strated working perfectly... anyhow ...Show All
Visual Studio Tools for Office PInvokeStackImbalance was detected
I am trying to create a smartdocument using Office 2003 professional edition and implementing the same on VS.NET 2005 edition. As soon as I load the winword.exe(as startup from VS.NET 2005) and attach the manifest in debug mode the following error is displayed. Can someone shed some light on how to overcome, any Microsoft VSTO team members, pls help. ERROR: PInvokeStackImbalance was detected Message: A call to PInvoke function 'WRDomainSetup!WRDomainSetup.EverettPolicy::GetRequestedRuntimeInfo' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the ca ...Show All
Software Development for Windows Vista Feb CTP - Can't get Workflow packages to appear in Visual Studio
Hello. I've installed the February CTP on my notebook a few days ago. Everything works fine except that the Windows Workflow Packages don't appear in the New Project window. So I can't create any WF project. I can't figure out why this is happening. WCF, for example, works fine (I have the "WinFx Service Library" template available). I installed VS 2005 Extensions for WF Beta 2 also, so the corresponding templates should appear, no Has anyone experienced this problem Is it something with the Windows SDK installation Thanks in advance. Regards. workflow can be installed only in vs en ...Show All
SQL Server Migrating a Legacy Maintenance Plan?
Has anyone been able to migrate a Legacy Maintenance Plan to the Integration Services style I'm using the SQL 2005 RTM, right-clicking the Legacy Maintenance Plan, and selecting "Migrate..." After a few seconds, it presents the error "Input string was not in the correct format. (mscorlib)" The only thing that sticks out in SQL Profiler is this statement: SELECT s.log_shipping AS [LogShipping] FROM msdb.dbo.sysdbmaintplans AS s WHERE (s.plan_name=N'MaintenancePlan1') and this error message: Invalid column name 'log_shipping'. but these happened near the beginning of the trace/action. To the best of my knowledge, there isn't anything ...Show All
Visual Studio Team System Delete Custom Work Item Type
Hi I have added my own Work Item Type (WIT) "BuildBugs" using the WITImport.exe file. Now I want to delete my WIT from the "Team" - "Add Work Item" menu. How can I do this Thanks It is not possible in v1. This question came up recently and Bill Essary gave the following guidance for mitigating the problem: Here are a few things that you can do: 1) Change the name of the type to something like “(Deprecated) Bug” so that users know not to use it 2) Add an attribute to the WIT that stops users from creating a new Work Item of that type. If your initial workflow state is “ ...Show All
Visual C# global variable problem
Hello, I have the following simple code: using System; using System.Collections.Generic; using System.Text; namespace EKG { public class globe { public static Boolean bigin = true ; } } and trying to make a global variable "bigin". But when I go globe.bigin in my MAIN form it says "The name 'globe' does not exist in the current context" What am I doing wrong :( Thanks, Bruce is the library containing globe referenced, or in the same project as main form If either are true, add using EKG; to the "usi ...Show All
Windows Forms Tablestyles in VS2005 Winform Datagrids do not work
I have discovered that the winform datagrid has a bug in it when you try to use tablestyles with bindingsources. I have an object that has two other objects in it. When I bind my object to the datagrid, I get the expected behavior (the parent object is shown and the children objects are shown with the + sign that allows you to drill down to them.) The problem is if you want to use a tablestyle on any of the objects. You can only select the child objects in mapping name and when you select the columns for the tablestyle you get the fieldnames of the parent object. Of course if you over write any of these objects with the correct information i ...Show All
Visual Studio Where can i get more documents of DLS Tools for developer?
hello everyone , i am chinese, first, please excuse my weak english; i had work with DSL Tools ,but i am getting a trouble to DSLDD files defines, who can help me ,and indicate me where i can get more documents for developer thanks Matt.Lin Matt.Lin, The DSLTools zip files contains a few documents that provide some background information. Also a little about the structure of the underlying xml files. Maybe that docs can help you out a little. If not, describe your question in this forum and I am sure there are lots of people trying to help you solve your issues. There is also an customizations guide available that ...Show All
Visual Studio Team System Saving diagram changes
Hi, I’m changing diagram programmatically. Is there a way to invoke (programmatically) saving of my changes to the underlying SDM files Thanks, Nel Hello Nel, This behavior is valid as we donot persist in memory model to sdm files upon change without explicit save action. The question remains can one programmatically save the diagram Answer is yes, DTE automation model of visual studio lets user perform the save. From the EnvDTE80.DTE2 object one can call: EnvDTE80.DTE2 DTE2Obj = addin.DTE as EnvDTE80.DTE2; DTEObj.ActiveDocument.Save(SomeFileName); Please note that we donot sup ...Show All
Windows Forms Unselecting text when entering DataGridView cell
When a user clicks on a DataGridView cell to enter edit mode, the contents of the cell is automatically selected (i.e. all the text in the cell is highlighted in blue). How can I stop this Is there a way to make it so that when they enter edit mode, the cursor is just placed into the cell without highlighting the text. Is there something I can do in the DataGridView.CellBeginEdit event, or am I looking in thw wrong place Set the DataGridView's EditMode property to EditOnEnter http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridview.editmode.aspx ...Show All
Visual Studio VS.NET 2K5, web projects and source code control
Is there a way to "tell" VS.NET 2K5 (and ultimately the sccs) to ignore the \bin folder (or any sub folder for that matter) when using file based web projects With VS.NET 2K5 there are no more web project files when using file based web sites, everything is pushed into the solution file. Therefore to VS.NET 2K5, everything underneath the web diretory is "fair game" and is published to the web. Matter of fact, the "Exclude from Project" context menu does not even exist. So, for example: 1. Let's say I have WebProject1 as my main web site. At this point I only have one project in my solution file - WebProject1. 2. I now want to add some bus ...Show All
