ron nash's Q&A profile
Visual Studio Team System Custom rule
1 Can i write a custom rule to check after keyword "return" and "goto" ,there is no "()" for instance return (a) ;is wrong return a; is right 2 To check "{}" is exist when "if" and "for" has one statement for instance if (a == b) return a; -- is wrong if (a == b) { return a; } -- is right You can use String.StartsWith to check the name of your property (you'd do this in a Check(Member) rule). FxCop does not expose a mechanism to determine whether a token constitutes a verb or adjective, though. ...Show All
Visual FoxPro Help with expression (one more time...)?
Hello All...many thanks to all who helped with my previous post. I have hit one more 'snag' in preparing my data. Here's a sample of three fields in my table... MRC REQUIRED DETAILS 4720-00-001-0057 ADLF HOSE OR TUBING SPEC/STD DATA MIL MIL-H-5593,SIZE 4 SPECIFICATION ADJM INNER CONVEYING TUBE MATERIAL RUBBER, SYNTHETIC MEDA MEDIA FOR WHICH DESIGNED AIR CRWL INSIDE SURFACE CONDITION SMOOTH CQCS LAYER COMPOSITION AND LOCATION 1ST LAYER ANY ACCEPTABLE CQCS OUTER LAYER MOLDED RUBBER CRJM OUTER COVERING ENVIRONMENTAL ABRASION RESISTANT AND PROTECTION CRJM ...Show All
SQL Server Sharepoint 2007 Report Services Addin Install Problem
I have the following setup: Windows 2003, Sahrepoint 2007, Report Services Addin (v9.00.3033) on one machine Windows 2003, SQL Server 2005 SP2 CTP (v9.00.3033) on another. When I install the Report Service addin on the Sharepoint machine, the install goes fine; however, when I go to the Application Management screen in Sharepoint Central Admin I don't see a "Reporting Services" section or a "Manage integration settings" link. Any thoguths Thanks, Atul Did reinstall work in displaying the links on the application management page of sharepoint's central administration I am experiencing the same issue. Cheers, Gerald ...Show All
Visual C++ Building a x64 bit app
Hi This is the app I was building #include <windows.h> #include <stdio.h> void main() { ULONG_PTR x; printf("Size = %d, X = %d\n", sizeof(ULONG_PTR), sizeof(x)); } I built Win32/Release binary and it displayed as expected Size = 4, X = 4 I changed the platform type to x64 built a Rlease binary and I got as expected Size = 8, X = 8 After couple of days I agian do the same thing I am unable to build the x64 module Earlier the size of the x64/Release binary was 549,376 bytes and now x64/Relase binary size is 6,144. I installed VS 2005 on a different system and tried and it failed. I keep getting "The system cannot execute the program specified" I am missing on some vital step I did earleir. which I am not ...Show All
Visual Studio Team System Unable to connect team foundation server.
We developed tfswebsite our deployement server is located in somewhere and tfsserver is located in anotherplace when i am trying to connect tfs server from my website it throws exception unable to connect tfs server i used integrated windows authentication for my website i am able to connect deployment server but i am unable to connect team foundation server pls help me this is very urgent Also, make sure to check this blog post for common issues when creating a web site that will call to TFS via the object model http://blogs.msdn.com/narend/archive/2006/07/29/682032.aspx ...Show All
Windows Forms Putting 2 controls into 1 DataGridViewColumn
Hi, is there anyone know how to place 2 controls into 1 column in the datagridview There's one approach that i've tried, which is to create a Custom Control that inherits a DataGridViewColumn. But it didn't work. Any suggestion Many thanks in advance.. ...Show All
Visual C++ is there a easyway to disable Event handler during startup.....
Hi! All I'm starting to get into C++/CLI managed now that I'm getting used to to Syntax... Anyway This is my story............... C++/CLI seems to have the same issue that VB has in that when you start the program and load your saved options into the checkboxs/radiobuttons the event handlers CheckChanged fire,,,,,, I don't need these firing cause I am just loading them up with the saved options from the registry keys.....Nothing needs to be changed ... Is there a easy way to disable them on program startup. The way I got around that In VB is to add a startup flag.. . Skip if true.......... Thanks............ There is no difference in handling events between VC, C ...Show All
Gadgets HTC files with gadgets?
I have been reading about consuming web services with javascript and it seems every example uses an htc file to accomplish this. Does this work the same way with gadgets I tried searching the forum but no results for htc. If anyone has an example that does this I would really appreciate it! Thanks in advance! Ok, I figured it out.. I didn't realize that any private members could not be used with web services! By removing the get return sequence and just setting the public string values it works perfectly! ...Show All
Microsoft ISV Community Center Forums Summing up hours on form based on parameter query
Hi there - im finalising my new activity system but i have one issue. on an activity form i have certain fields for information purposes that are non editable - they are 'hours worked with client' , 'hours worked this month' and 'hours worked for the day'. The first 2 fields are populated automatically by opening recordsets on form load or companyname exit and summing up the hours based on the relevant query where the criteria ensures that the query is already populated. However for the 'hours worked for the day' field the query is a parameter query (qrytodayhours) where activitydate = Forms![frmactivity]![activitydate] and i was then hoping to enter the following code to sum up the hours using a recordset on the on exit of the acti ...Show All
Windows Live Developer Forums Information / Error messages
Hi there, Is there a knowledgebase or something somewhere that holds all the informational or error messages that can tell me further details on the message ie, while signed into Live messenger, I have an information message that says "due to Connection problems changes you make might not be applied to other computers you use", and all my contacts appear offline, and I can't add new contacts. I've deleted various regenerating dlls and cache.dat files etc and nothing's worked. I've even shutdown my zonelabs firewall. I can talk to people, but can't see their status. I even reactivated my hotmail account for the first time in years, so I could see if my contacts were still attached to my passport, and ...Show All
Visual Studio Express Editions BindingSource.EndEdit()
Hi all, How do I to know whether the BindingSource DataSet has changes before call the EndEdit method Tks Hi, It doesn't help because the GetChanges returns not null only after EndEdit was called. I need to know this before EndEdit is called Tks ...Show All
SQL Server How to set douplicate id in sql server 2005?
Hi There, Some one please help me to achieve this task. I have task to join 2 tables and insert values.The table which i am inserting values has typeid column which is primary key column.I supposed to insert values except this column(TypeId).When i m trying insert values its throw an error saying Error: Cannot insert the value NULL into column column does not allow nulls. INSERT fails. Please let me know ther is a way to set duplicate id for this rows Thanks in advance. Does your query return more than one row Notice that you aren't selecting the max(typeid) from the table, tblType. select MaxKey = case when TypeId is null then 0 else TypeId end from tblType ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How can I start the XBox360 development progress?
Hi, In the company, I'm working for a great xb360 game now. Also I want to develop my own smart games for xb360. There are so many xb360 kits and other xb360-related hardware resources in my company but I can't use them for my business. So the question is: How can I get/buy the XBox 360 kit machine I can't see them opening up native development and C++ on the 360 without the $$ becuase of the way the console games are handled financially. The Console manufacturer has to control that process. Also there is a lot more security risk allowing this. We may see C++/CLR happen in Game Studio express at some point but it will all be managed code to allow security control. You can request this on the connect website for XNA http://forum ...Show All
Visual Studio 2008 (Pre-release) How to bind Properties.Settings to textboxes via XAML
Can anyone tell me how to bind directly to the Application Settings via XAML Using the xaml example above, is it possible to assign the binding path to a setting < ObjectDataProvider x:Key = " AppSettings " ObjectType = " {x:Type Task:Properties.Settings} " ></ ObjectDataProvider > Text = " {Binding RelativeSource={RelativeSource TemplatedParent}, Path=RequestId} " I want to change it to something like this where SettingName would be equal to RequestId... Text = " {Binding RelativeSource={RelativeSource TemplatedParent}, Path=AppSettings.Default.SettingName} " I don't get any errors but my data isn't showing up either ...Show All
Smart Device Development InitializeComponents() is Throwing "Casting Exception" error
I have only edited that sub from within the design editor, so I don't know how it could have gotten messed up. The contents of that sub contains: Private Sub InitializeComponent() Me.MainMenu1 = New System.Windows.Forms.MainMenu Me.cmdgenerate = New System.Windows.Forms.MenuItem Me.MenuItem1 = New System.Windows.Forms.MenuItem Me.mnuExit = New System.Windows.Forms.MenuItem Me.mnuReset = New System.Windows.Forms.MenuItem Me.cmbType = New System.Windows.Forms.ComboBox Me.lblType = New System.Windows.Forms.Label Me.pnlBurrito = New System.Windows.Forms.Panel Me.lblBurritoMeat = New System.Windows.Forms.Label Me.lblBurritoWith = New System.Windows.Forms.Label Me.cmbBurritoWith = New System.Window ...Show All
