Limehill's Q&A profile
Visual Studio property processing order and scoping
Hello, I am trying to understand the scope and evaluation order of property values. In the test below, I expected the value of "testval" property, as defined in the PropertyGroup to have been overwritten by the call to GetPropertiesFromXMLTest. The output shows that the original value is overwritten, but is still returned by later references. Can anyone explain the processing order and scoping rules here THX Curt ======================================================== CODE: ------------------------------- <PropertyGroup> <testval>testval-pg</testval> </PropertyGroup> <Target Name="t1"> <Message Text="testval in t1 (before GetPropertiesFromXMLTest target)= $(testval)" /> ...Show All
Visual Studio 2008 (Pre-release) Where is DoubleBuffer?
In Windowsforms application, we can set ControlStyle.DoubleBuffer to true to prevent flicker caused by the redrawing of the control. In WPF, where is it Currently there is a very bad flicker in my animation . You probably need to read up a bit on WPF rendering, it's very different from GDI. There's no way to control this from your WPF application. They're working very hard to make sure there's no tearing during animation. What kind of video card are you using What is the value of RenderCapability.Tier in your application With some more details, perhaps someone with Microsoft will have an answer for you. HTH, Drew ...Show All
SQL Server Newbie Basic Question - DISTINCT & PKs
Could somebody please clarify this simple question for me I'm clearly missing something basic... I'm in the process of trying to teach myself T-SQL out of a WROX book, and am having a problem wrapping my head around this example, I understand the concept of Primary Keys through using MS Access, but haven't used TSQL extensively (or at all for that matter...) Using the classic "Northwind" database, using this query: SELECT COUNT(OrderID) FROM [Order Details] This returns 2155, which is the total number of rows with an OrderID, the primary key. Now, as I understood it, a PK has to be unique, but yet this query on the same DB: SELECT COUNT(DISTINCT OrderID) FROM [Order Details] returns 830 rows. If the PK (OrderID) is unqiue, ho ...Show All
SQL Server Leaf level calculations
Need to calculate datediff([base measure date], [user selected Time dimension level's end date]) for each leaf-level member. e.g. datediff([base measure], [selected Year's end date]) Year End Date is an attribute of the Time dimension Cannot have this multiplication in the dsv named query since user's selection is not known then. Member expressions can only have the form measure1*measure2 or measure1/measure2 In the calculations script scope(base measure) scope(leaves()) scope(base measure) this = datediff("d", base measure, CurrentTimeMember.Properties("end date")) end scope..... does not work since CurrentTimeMember in this context becomes Date, whereas selected Year is required and its end date for t ...Show All
SQL Server BUG: UPDATE updates not listed fields
Hi Everybody, I am in this forum for a first time. Today, I think, I found a bug in SQL Server 2000. I tried it on SQL Server 2005 and it is alive yet. Before I explain exact the problem I have a stupid question. Is there any type of award if I have found a real bug. It is about a situation when I try to update some fields in a table and I get updated some other wrong fields. There aren't any triggers ot something else. Create a new table, insert one row, update some fields but other ones get changed too. Is there something known about this Thanks, Hristo. Mike, This is a simple example what happens: ************************************************************************ CREATE TABLE [db ...Show All
SQL Server What could be the problem with my code? its not updating the database
Hi My code that Im using is not updating the database, Im using the following stored procedure :- set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go ALTER PROCEDURE [dbo] . [Update_VMI_Capture] ( @ID int , @Weighbridge nvarchar ( 50 ), @Volume float , @DateTime datetime , @Fuel_Type nvarchar ( 50 ) ) AS SET NOCOUNT OFF ; UPDATE VMI_Capture SET Weighbridge = @Weighbridge , Volume = @Volume , DateTime = @DateTime , Fuel_Type = @Fuel_Type WHERE ( [ID] = @ID ) When Im running this procedure using SQL Server Management Studio it runs perfect. The problem is when I use a little C# code to run this procedure like :- int ID = Convert .ToInt32(Requ ...Show All
Visual Studio Express Editions Double Buffering in Express VC++
Hi! I've got problems with dubbel buffering in Express VC++. It apperas that the designers are turning off the double buffer property of a windows form during compiling. The 2003 version was enabling users to set styles. Now the compiler is giving error messages such "the canditate method is not reachable" or something like that, if I want to set the styles manually. Is this a bug or is the double buffering temporarily turned off Any idea Regards Modeller. I thank you very much for your advice. However, this panel does exactly what its name suggests : it is an interractive drawing tool. I need a control which enables scrolling for software zoom, and to the best of my knowledge, the p ...Show All
Visual Studio Team System Project maintenance (Support)
All the documentation that I review about MSF goes from project vision to project deployment, but the life of an application does not end there. Is There any process/stage in MSF that applies to maintenance team Is there guidelines to understand when to consider the product changes, just product modifications/corrections or on the other hand, product new versions Thanks Actually the organization chart that we want to implement is considering two different teams, New Developments and Maintenance. We’re thinking that after a product is deployed all small modifications and bugs will be assigned to the maintenance team. Bigger requeriments will be considered products new versions. The problem is ...Show All
Visual C++ Elevating a User application to write to a named pipe created by a service running in LocalSystem
I have a named pipe that is used between a service running as LocalSystem and a client running in the User group. If the service passes a NULL to CreateNamedPipe the EVERYONE group only gets GENERIC_READ, hence the CreateFile for the pipe in the User application returns an access denied error when it requests GENERIC_READ | GENERIC_WRITE. How do I give the user application write capabilites My thinking is to build a SECURITY_ATTRIBUTES with EVERYONE set for GENERIC_READ/WRITE and pass it to CreateNamedPipe. Is this correct -- The personal opinion of Gary G. Little From the documentation of SetSecurityDescriporDacl you can learn Quote: There is an important difference between an empty and a nonex ...Show All
SQL Server Rolling back SQL Server 2005 databases back to SQL Server 2000
Does anybody know of a way to rollback SQL Server 2005 databases back to SQL Server 2000 Is there a way of doing it without resorting to Copy Database Wizard I love to find a way of attaching a SS 2005 database to a SS 2000 instance without any issues. I recently upgraded to SS 2005 and I am very unhappy with the SS 2005 and I want to rollback to SS 2000, which was a lot more stable. I am having several major issues that are affecting my whole company's day-to-day operations and the managers are not happy. Some of the issues include night time batch running very sluggish for no apparent reason. This is a biggest problem because it only occurs once or so a week and causes a disturbance with the daily activities when the ni ...Show All
Windows Forms Problem update record in datagridview, textbox data bounded controls when datagridview is sorted
Hi, I am having this strange problem updating a record when the user change the sort on a column in the datagridview (column sorting). Here is the setup. On the form, I have a datagridview and textboxes. Controls are bounded to a datatable in a dataset. The datagridview is ReadOnly. When need to edit, the user click the change button and make changes to the textboxes which basically shows whatever is selected on the datagridview. When the user don't change the sort order of any columns in the datagridview and update record, everything works fine. But then the user change the sort order in the datagridview, it will work but will eventually start updating other records (including the actual record ...Show All
Windows Search Technologies Problem Indexing E-mails with WDS 3.0 Beta 2
I have upgraded WDS to Product Version 6.0.5486.108 {3.0 Beta 2 for Windows XP (KB917013)}. It seems to be indexing my files and running well but none of my e-mails are included. I have Outlook 2003 (11.8010.8036) SP2. As an experiment I have installed Google Desktop Search. It has no problem picking up all the e-mail messages on my HDD in the *.pst files. WDS does not index them at all. Just to give you an idea (of the magnitude of the problem) -- Google Desktop Search identifies more than 100,000 files on my HDD when indexing is complete; WDS only finds ~ 26,000! The difference is the missing e-mails. What is the 'trick' Just to add to my confusion Windows Desktop Search is not listed when I open Settings/Control Panel/Add or Remove P ...Show All
Visual Studio Express Editions Output to Textbox adds zeros
Here is the code Private Sub Receiver(ByVal sender As Object, ByVal e As SerialDataReceivedEventArgs) Handles COMPort.DataReceived Dim RXByte, Nibble As Byte Dim RXArray(2047) As Char Dim I As Integer = 0 Dim J As Integer = 0 While COMPort.BytesToRead > 0 RXByte = COMPort.ReadByte Nibble = (RXByte >> 4) + 48 ' Convert received byte to Hex If Nibble > 57 Then Nibble = Nibble + 7 End If RXArray(I) = Chr(Nibble) I = I + 1 Nibble = (RXByte And 15) + 48 If Nibble > 57 Then Nibble = Nibble + 7 End If RXArray(I) = Chr(Nibble) I = I + 1 End While Dim RxString2 As New String(RXArray, 13, 7) TextBox1.AppendTe ...Show All
SQL Server SSIS Import/Export flat file
Firstly, I hope this question isn't asked too frequently but I found no existing reference to this situation.... I had a bunch of stored procedures in SQL 2k which imported and exported data to and from flat files using TEXTPTR, READTEXT, UPDATETEXT etc... The flat files were continuously changing so the filepath was a parameter for the sp. The reason I used the pointer to flat files is because I didn't want to load the files in memory before commiting them ie. with TEXTPTR and UPDATETEXT I can import a 1Gb binary file 80000 bytes at a time and keep (precious) memory usage down. I was accessing this procs from a C# application. Since these methods are going to be phased out by the guys at MS what is the best way of importing/exportin ...Show All
Visual Studio Express Editions VC# and Word XP
After I've installed VC# Express 2005, every time I start up Word XP it asks me to install some feature related to VC# 2005, and asks for the path to "vcssetup.msi", but there's no such file neither on the VC# CD nor the Office XP CD. Anyone who knows what this is about Rich Well I just tried to do a repair on the Office package, and that fixed it. Thanks very much! Rich ...Show All
