Prajakta Chavan's Q&A profile
Visual Studio Team System VS hangs while checking custom rules.
I have 2 simple custom rules - one that checks if all classes are marked with author attribute and the second that checks filed names. I noticed that VS hangs while running that rules. It helps when I uncheck that rules and build a few times checking one more rule after every build. Is it possible that my rules couses a deadlock While in hang my VS doesn't use processor time. How can I debug it or find out what is wrong Marcin I can't find out what is wrong. Disabling one custom rule that checks private fields names helps and the problem exists only inside VS not in standalone FxCop. Anyway, the problem is general and it probably is in VS build process which is slow, unpredictable and very ann ...Show All
Visual C++ A Problem with feof()
I am trying to build a program that, among other things, loads data from a binary data file, I use fread() in a while loop with condition !feof. every thing loads fine but the last part of the file loads twice creating a duplecate element at the end of the list. Does anyone know why this is and if it can be avoided; hear is my source code for the loading function: afx_msg void EditWindow::OnOpen() { if(head) { while(current->next) { current = current->next; } while(current!=head) { current=current->prev; delete(current->next); current->next = NULL; } delete(current, head); head =NULL; current = NULL; } ReadOutIn o; FILE* loadPointer = fopen("Level.lvl", "rb"); if(loadPointer) { while(!fe ...Show All
SQL Server Determine Processor Architecture for SQL Server 2005
I like the new features in SERVERPROPERTY but there's a huge, glaring oversight in my opinion: it doesn't return the processor architecture. I'm trying to write a detailed server info collection script and (1) use only TSQL, and (2) have it return the processor architecture. Here's what I have so far: SELECT SERVERPROPERTY('InstanceName') AS [InstanceName] , SERVERPROPERTY('ServerName') AS [ServerName] , @@VERSION AS Version , CASE WHEN CHARINDEX('Intel X86',@@VERSION)<>0 THEN '32-bit' WHEN CHARINDEX('Intel IA-64',@@VERSION)<>0 THEN '64-bit' -- WHEN CHARINDEX('x86-64',@@VERSION)<>0 THEN '64-bit' -- WHEN CHARINDEX('AMD64',@@VERSION)<>0 THEN '64-bit' -- WHEN CHARINDEX('WOW64',@@VERSION)<>0 THEN 'WOW64' ...Show All
.NET Development System.Data.Common vs System.Data.<specific>
Hello, I am writing a set of classes to help me with some fairly routine tasks involving querying and downloading data from remote databases. There are a number of databases I use from time to time, each of them on different platforms, including SQL Server, Oracle and Sybase. I'd like to make my classes as generic as possible, so I can use a one size fits all approach. What I'd like to know is if there are any serious performance penalties in using the System.Data.Common classes rather than their platform specific counterparts (eg System.Data.SqlClient). As I say, I am really only interested in server side queries, and collecting data through a data reader. To be specific, would there be any reason why the following two snippets w ...Show All
Software Development for Windows Vista Which Codecs ship with Vista x64?
Anyone have any idea which video codecs ship with the x64 edition of Vista Just asking because Indeo5 did not ship with XP x64 and I was wondering if the same was true for Vista. I can't find any MSDN articles that discuss this for Vista. Thanks, -Nick ...Show All
Visual Studio Express Editions TaskbarNotifier from backgroundworker
With ref to John O'Bryne's great code to run a msn-like taskbar notifier http://www.codeproject.com/cs/miscctrl/taskbarnotifier.asp Please can someone help walk me through how to use this taskbarnotifer in a C# project and run a message "Your job is done" from a backgroundworker's RunWorkerCompleted event Basically I'd like to use the taskbarnotifier instead of messagebox.show Thanks for any help. Here's another approach that uses a balloon tip on a tray icon. Start a new project. Project + properties, Resources tab, click the arrow on "Add resource", Add new icon. The default icon and name is fine, you can change it later. Paste this code: using System; using ...Show All
SQL Server Chart in Reporting Services
hey all I am using RS 2005 I have a report with chart parameters = value1, value2, value3, all How can I make the chart only show when all is selected cheers jewel sorry about that Geert Must be a slow reaction to being back at work after a break. Absolutely right! cheers for this jewel ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Game Studio Professional
In the announcement of XNA Game Studio it says that the Professional Edition "will add support for tools and services that professional game developers need to ship commercial games". My questions: What exactly would prevent me from programming a game in the Express Edition and sell it (If the answer to the question above is "nothing"): What would make me want to buy the Professional Edition It has already been stated that you can write and sell commercial games for Windows with the GS Express edtion If you want to sell games for 360 you have to buy Pro. The xna faq has more info on this. cheers, -paul ...Show All
.NET Development What happens to original reference if I upgrade .NET assembly?
Hello, I have 2 projects (front-end and business code) front-end is referencing business code project. I install business code assembly into GAC. If I update business code project later on and change version number on it, recompile it and put into GAC which version of assembly my front-end application will be using The one which it was compiled with or latest one in GAC How do I control this If you open the properties of a reference (right-click the reference and select Properties) then the option is Specific Version . Michael Taylor - 10/13/06 ...Show All
.NET Development GetEmptyWebProxy for 2005?
I'm in the process of converting a VB.NET 1.1 program to VB.NET 2.0. I have the need to get an empty web proxy, and would use the following in the old code. httpreq.Proxy = GlobalProxySelection.GetEmptyWebProxy() GlobalProxySelection has been deprecated in 2.0. And indicates the following: 'System.Net.GlobalProxySelection' is obsolete: 'This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/ linkid=14202' This sounds simple, but does not function the same. When I change the code to the following, I am not getting an empty web proxy. httpreq.Proxy = WebRequest.DefaultWebProxy A ...Show All
SQL Server SOLUTION! - VB.NET 2005 Express and SQL Server 2005 - NOT saving updates to DB - SOLUTION!
VB.NET 2005 Express and SQL Server 2005 Express - NOT saving updates to DB - SOLUTION! ----------------------------------- The following article is bogus and confusing: How to: Manage Local Data Files - Setting 'Copy to Output Directory' to 'Do not copy' http://msdn2.microsoft.com/en-us/library/ms246989.aspx You must manually copy the database file to the output directory AFTER setting 'Copy to Output Directory' to 'Do not copy'. Do not copy The file is never copied or overwritten by the project system. Because your application creates a dynamic connection string that points to the database file in the output directory, this setting only works for local database files when you manually copy the file ...Show All
Software Development for Windows Vista WM5 & incoming call notification window
Sorry, if it is a stupid question, but I don't know how to solve this problem. How to disable incoming call notification window in WM5 Is it possible in WM5 Maybe some registry key or something Hi: This forum is for discussion of programming issues with Tablet PCs and Mobile PCs, such as laptops and Ultra Mobile PCs. I believe you want to post your question in one of the Smart Device Development forums . Thanks, Mark Hopkins - MSFT ...Show All
Visual Studio Team System Regarding MSBuild
Is there a way in build script to run unit tests only in debug mode Dinesh - perhaps you are referring to the "Debug tests" option that you can see in the IDE where you can step through your tests while they execute. Do you want to run tests in this debug mode while doing automatic build through Team Build If yes, I don't think this is possible since this option is only available if you run tests from the IDE, not through a service as is the case with Team Build. ...Show All
Visual Basic What is this ComboBox event name please?
Hi, When you HOVER over an item not when you hover over the comboBox itself please I was hoping to answer a question in this forum.>> http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1221868&SiteID=1 So far i have.>> Dim comments(50) As String Dim Index As Integer Private Sub ComboBox1_MouseHover( ByVal sender As Object , ByVal e As System.EventArgs) Handles ComboBox1.MouseHover ToolTip1.SetToolTip(ComboBox1, "Hi from combobox1!!") End Sub Private Sub Form1_MouseHover( ByVal sender As Object , ByVal e As System.EventArgs) Handles MyBase .MouseHover ToolTip1.SetToolTip( Me , "Hi there from ME your FORM!!") End Sub Public Sub ...Show All
Visual Basic .Net Sendkeys
I have a VB.Net 2.0 application, on my form I am using a Component ONE PDF reader control. I am trying to send to this control a F4 keystoke to close the navigation panel when it opens the PDF file. It is not working or not accepting the sendkey. I put focus on the control first. Code below: Me .PDF1.Focus() Me .PDF1.Select() My .Computer.Keyboard.SendKeys( "{F4}" , True ) I have tried different variations of the Sendkeys with no success. Not sure if this will work as I have no test for it but VS did not reject the line when typed... There is an enum for keyboard keys: My .Computer.Keyboard.SendKeys( Keys.F4 , True ) ...Show All
