Amitkm's Q&A profile
Visual Studio Team System Whidbey FxCop 1.32 ignores certain methods ?
Does the Whidbey FxCop 1.32 have built in intelligence for ignoring certain methods I ask because I have various rules which check ASP.NET generated assemblies. They run fine using the .NET Framework 1.1 FxCop 1.32 but when I run them on ASP.NET 2 assemblies using the Whidbey FxCop 1.32 none of the private generated methods are visited. This makes me wonder if they are being deliberately excluded. Guy We can change FxCop so that it always calls your rule for these methods. The only implication for your analysis results would be that no source file and line information would ever appear, since the asp.net comp ...Show All
Visual Studio VSS 2005 step by step set up and tutorial
Helo all....i am looking for a simple step by step tutorial which i can download and reference offline, if you know of any please point me to the right direction. Thanks Hi, installation: 1) Put DVD into your drive. 2) install the components you need (if you are not sure just make the complete installation) tutorial: If you want to learn working with visual studio and want to learn a programming language at the same time I recommend you one of the book from the step by step editions of Microsoft Press: http://www.amazon.com/exec/obidos/tg/detail/-/0735619107/qid=1128409380/sr=8-2/ref=pd_bbs_2/104-3030086-5991911 v=glance&s=books&a ...Show All
Visual C# 'Exclude Files From Project' - Beta 2
How do I 'Exclude Files From Project' in VS 2005 I have a solution that requires files to exists in the directory structure but not be compiled. Where has this functionality moved to Also, what happened to the 'Show All Files' option Regards, I am having the same problem with the same tools. please let me know if you find a work around ...Show All
Windows Forms How to publish a project to CD'S using ClickOnce
Hi guys, I have tried to deploy my project to a CD, using ClickOne feature, but it always report an error, telling me that the process could not be completed.... thanks for your help... Are you trying to publish the project directly to the CD. I mean do you specify the CD driver as the destination for publishing your project Thanks, Sameer ...Show All
.NET Development How can assign ExecuteOracleScalar() to int
how can i do this without error: int count = cmd .ExecuteOracleScalar() ; the message error is: Unable to cast object of type 'System.Data.OracleClient.OracleNumber' to type 'System.IConvertible'. thank you for your attention ExecuteOracleScalar returns an Oracle-specific data type. In this case, from the error you can see that it is returning an OracleNumber. There is no valid implicit cast from OracleNumber directly to int. Instead, you can explicitly cast like this: int count = ( int )( OracleNumber )cmd.ExecuteOracleScalar(); You can also use ExecuteScalar to return a regul ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Packaging a DirectX Game
Hi, I've recently started programming using DirectX and C#. I created a game and it runs fine on my development machine (.Net 1.1, DX SDK). But when I compile the game for a release, and move it onto a machine that only has the DirectX runtimes, it fails to find any of the neccessary libraries and will not start. I've tried telling to to "include resources" when it compiles, in which case it copies a bunch of .dll's to the release directory, but that still wont work on regular machines. It works fine on any machine that has the SDK installed. The regular machines are all running Dx9.0c and .Net 1.1. Any idea how to package a release ...Show All
Windows Forms New Window
i am making a browser in vb 2005 beta but sometimes when i click a link it opens in a new window in Internet Explorer now how can i have it so it opens in a new version of my own browser or a browser on a second form any help would be greatly apreciated. So what if you use the entire code on that site, does it then still not work on your particular computer ...Show All
Visual Studio Tools for Office better to store VSTO docs on hard drive or in sqlServer?
hiya, I am going to do an app that require a word docs that will contain numeric fields. ie, there will be several lines of descriptive text, then a gap where a user can enter a numeric amount. Later, the user may have to re-open the document to make some more changes. I think I have 2 options: 1) the user saves the word docs onto a section of the hard drive 2) the user saves the numeric values into a sqlServer database, and the document has a primary key that uniquely identifies thatdocument. I was wondering if anyone had any thoughts on the above approaches I'm still new to VSTO, so perhaps there is an even better way many thanks, y ...Show All
Visual Basic Delay using nesting in For Next Loop
I am new to Visual Basic and am using the 2005 Express Edition. Can anyone please tell me why the following code does not produce 10 Beeps with a short delay between each one. For Int As Integer = 1 To 10 For Tim As Integer = 1 To 50 Beep() Next Tim Next Int Be careful with threading sleep for any significant delays as the delay if in a looping construct can make the applications rather unresponsive as the process and UI are on the same thread and your just suspendin ...Show All
Visual Studio Create the "Solution Items" pseudo-folder via automation
This issue is related to this thread but I started a different thread because it's another aspect of the problem... I want to put files in the "Solution Items" pseudo-folder of a new, template-created project. This is not possible via the .vstemplate XML file, as pointed out by Ole Preisler. I'm now trying to achieve this via a GAT Action that is run after the solution template is completely unfolded. I have in hand the source path of the items and the DTE that points on the solution to which I want to add the items. The problem is to create the "Solution Items" pseudo-folder in the solution, because it is not initially present. This Use ...Show All
Software Development for Windows Vista Cannot schedule item with duplicate key for workflowInstanceId
Hi, I think I'm missing something basic... Using Beta 2.2 and state machine workflow created with Beta 2, running under ASP.NET and using the ManualWorkflowSchedulerService as well as SQL Persistance and SQL Tracking. I can create / start the workflow and it sits in an initial state waiting for events. Whenever I raise an event (via a local service) to move it to another state the workflow terminates with " Cannot schedule item with duplicate key for workflowInstanceId" error message. RunWorkflow() is called on the workflow instance after the event is raised. What am I missing Thanks! Shawn ps the workflow runs fine under Beta 2 ...Show All
Windows Forms Basic DataGrid Question Where do I start here?
I manually put a datagrid in on a form. I then added this code to an event to populate it: OdbcConnection conn = new OdbcConnection("DSN=CardBase"); sqlCardHolders = "SELECT * FROM tblcardholders " + "WHERE last_name LIKE '%" + txtLastName.Text + "%'"; DataSet rs = new DataSet(); conn.Open(); OdbcDataAdapter myOdbcAdapter = new OdbcDataAdapter(sqlCardHolders, conn); myOdbcAda ...Show All
Visual C++ Microsoft Visual C++ Runtime Library error (WMP)
I've searched this forum and others for help with this problem. When ever I have streaming media thats uses wmp on all browsers (Opera, Firefox, IE) the media doesnt play and it looks like this http://www.xmgimg.com/uploads/53467e5074.jpg When ever I close the window or tab, go back or anything to get rid of that page that has WMP on it it crashes the browser and I get this error http://www.xmgimg.com/uploads/90152012a1.jpg Ive searched the web without an answer I dont know what to do besides reformat my HD. I have all updates possible. I havent done anything that could have caused this with the exception of a reg cleaner. ...Show All
Windows Forms Date Format in DataGridView
Hello everyone, Can anyone tell me if I'm being really stupid here or maybe missing something really simple I have a datagridview on a windows form that is populated by various data tables from an SQL Server 2000 database. When a Date field is loaded in to the dataset the values are shown in the format MM.DD.YYYY which I would call American format. In VS2002/3 the dates were always displayed in the system default, which in my case (in Scotland) would be DD.MM.YYYY. I can't seem to find anyway to change the way the DataGridView displays dates. Is there a way to do this Or is this specific to the Beta Versions Cheers C-Ya Aly ...Show All
.NET Development Binary Serialization of DataSets - bug with DateTime-Columns?
I just tried to serialize a datatable which contains two DateTime-Columns (I use .Net 2.0). The result of serialize and deserialize a dataset in case if a DateTime-Column has value DBNull is not the same if you use binary- instead of xml-serialization! Here is the result if you use XML-Serialization : **** before serialize **** Date1: DAte2: 11/9/2005 3:03:01 PM ------------------------------- **** after deserialize **** Date1: DAte2: 11/9/2005 3:03:01 PM Here with Binary-Serialization: **** before serialize **** Date1: DAte2: 11/9/2005 3:04:02 PM ------------------------------- **** after deseriali ...Show All
