seva0412's Q&A profile
Visual Basic matrix algebra, how to do it in VB
hi, I want to perform some matrix algebra in vb.net (m columns, n lines, m x n) - transpose - inverse - determinant - add, minus, multiply... Anyone can help And how to input those matrix in vb (from a text file, or from excel data, or by input by hand) Please help thanks Hi, You can create a user control that dynamically creates textbox upon a property specification. And you can store this values in a multi-dimensional array for your calculation. for example a 3x3 matrix could be stored in an array with a 3 dimensions with 3 rows... cheers, Paul June A. Domag ...Show All
Visual Studio Team System Detecting the SuppressMessage attribute?
Hi all, I want to make a special rule that detects the use of the System.Diagnostics.CodeAnalysis.SuppressMessage attribute on members, types, or assemblies. But the attribute does not show up in the Atributes property... i need a place to detect and log the use of the SuppressMessage attribute and an special FxCop rule seemed like the ideal place to do this... so can anyone point me in the right direction Greetings Thanx for you input JLeBert, i am indeed aware that it gets compiled in my assemblies. I am hoping i can enable CODE_ANALYSIS on the debug flavor only, cos i build 2 flav ...Show All
.NET Development Concurrency Control in ADO.NET
My name is Sivaramaiah. I am working on .net, we have a project on Banking. So I have a web form which is used to add or subtract the amount from a bank account using datasets. I used a dataset and used acceptChanges() method of dataset before updating the database, so from that I can get fresh data into my dataset. So my problem is if there are 3 customers using my form. One want to add 2000 and another want to subtract 3000 and another want to add 1000. In the bank account the default amount is 5000. so when the first customer is added 2000 then the amount is 7000 and rest will get this data by using the acceptChanges() method of t ...Show All
Visual Basic App.config VB2005
I was using VB2005 and i noticed that when i do this Dim connect As String = System.ConfigurationSetting.AppSettings("connstring") I am told that is an obcelete way of connecting to my DB through my app.config file....and it refers me to the Configuration manager Any help on this topic http://lab.msdn.microsoft.com/search/ query=ConfigurationManager Don't forget to add a reference to System.Configuration.dll if you want to use it... Best regards, Johan Stenberg ...Show All
Visual C# Best C# book
Hi! I'm looking for the best C# book. I already know C++. Which is the best according to you Thanks. Luca Honestly, the 'best' book depends on what your goals are. Given that you already know C++, it is unlikely that a book focusing on the syntax of C# would be useful. Instead, I'd be trying to learn about the different classes in the Base Class Library and how they can be used to create various types of applications. If this sounds like what you're looking for, check out: Applied Microsoft .NET Framework Programming - Jeffrey Richter .NET Framework Standard Library Annotated Ref ...Show All
Visual C# datagrid in vs2005
In VS 2003 there was Datagrid1.Columns or Datagrid1.Rows, in vs 2005 none. I want to define width of a column, so i can't use Datagrid1[0,0]. My question is: Is necessary do datagrid1.Tablestyle[0].gridcolumnstyle[0].width or there is another way Thx YEs i know but gridview has some bug we are trying to solve. Moreover they are not the same... i haven' t datagrid.rows in vs 2005 Thx ...Show All
Visual Studio Team System How to customize things in an existing project?
I have successfully created my own custom template based on NSF Agile, mainly in the work item area. It's working out great. There are a couple of projects created based on MSF Agile previously. Is it possible to customize certain things in them so they are consistent with the new projects created using my own template e.g. list items under Priority and State for work items. I've been using the Imaginet tool to create my custom template. Didn't realize the option to open directly from a project on the TFS Server. I just tried and it works great. I noticed that if I changed a state (say, changed Active to ...Show All
Software Development for Windows Vista anyone succed in excuting James Conard's Expense Reporting Example Application ?
i follow the instruction in the Readme.mht,first i start the ExpenseHost.exe , then i excute ExpenseApplication.exe,there is a failure on the line, // Submit the Expense Report for approval Guid expenseReportId = expenseService.SubmitExpenseReport(report); ChanelIOException was unhandled The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error. anyone can help me Hi ! Even though I have already built the project, i still received the specified exception. The problem was the DateTime field in the ExpenseReport. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Normals
Ok another noob question. I am programming a Cad system and at the moment just playing around with how I am going to do the zooming. I am not using lighting at the moment but I want to get things right now, to future proof by app. So I am worried about messing up my normals for the lighting. From what I have read the world matrix will definitely do this, so I was wondering if I use the projection matrix (I am using Matrix.OrthoRH) to do the zooming will my normals will be Ok Thanks Julian You do want the world matrix to affect your normals -- at least for rotation. Otherwis ...Show All
Visual Studio Linear data
Just a very quick question. As an example: I have a database which contain four records each record containing some text I wish to display in a report. I would like to display text in four boxes along the page, each one to the right of the previous. Box A on the left contains record 1, box B record 2, etc. Box 4 on the right contains record 4. Each record is also labelled in a seperate column in the same dataset. eg. (Example dataset layout of columns) Record number (autonum) - Description - Value Record A could be called 'intro'. Record B 'statement'. It would be useful to place the rows into the corresponding box by reference to this ...Show All
SQL Server Crosstab in SQL 2000./.net 2003
Hi al Don't know this is the right forum, but here is my question anyway Is there a way to make a crosstab like you can in access with the transform statement Regards Remco Please update post to answered if that answered your question ...Show All
SQL Server How to use FlatFileSourceErrorOutputColumn
I am testing the functionality of XMLTextWriter in regard to handling errors. The scenario is that I have a text file with some bad data. I wrote a script component to take any rows containing bad data and write them out to an XML file. Here is the entire script: Imports System Imports System.Data Imports System.Math Imports System.Xml Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper Imports Microsoft.SqlServer.Dts.Runtime.Wrapper Public Class ScriptMain Inherits UserComponent Dim xWriter As XmlTextWriter Public Overrides Sub PreExecute() xWriter = New XmlTextWriter( Me .Connection ...Show All
.NET Development My programs won't start up on Win98 or Win2000
I've been struggling hard with this for about a month. I have a program written in C# .Net 1.1, that has about 170,000 lines of code and is in daily use by thousands of users. Any version that I released after about 9/1/05 simply fails to start up at all on Win98 or Win2000. "An unhandled exception has occurred", followed by thread id, but absolutely none of the usual details. Keep in mind that it continues to work flawlessly on WinXP, and it always worked flawlessley on Win98/2k until one month ago. The problem does not affect previously compiled versions, only those which I compiled after that ...Show All
SQL Server User Defined string functions Transact-SQL
Ladies and Gentlemen, I would like to offer you the following string functions Transact-SQL GETWORDCOUNT() Counts the words in a string GETWORDNUM() Returns a specified word from a string AT() Returns the beginning numeric position of the first occurrence of a character expression within another character expression, counting from the leftmost character RAT() Returns the numeric position of the last (rightmost) occurrence of a character string within another character string CHRTRAN() Replaces each character in a character expression that matches a character in a second character expression with the corresponding character in ...Show All
Visual Studio 2008 (Pre-release) Xbab applications not running from the internet
Hi there, I am trying to run an xbap application from this URL http://www.valil.com/winfx/Valil.Chess.WinFX.xbap (other xbab apps from the internet are not running either e.g http://www.charlespetzold.com/wpf/JeuDeTacquin/JeuDeTacquin.xbap ) IE 6 gives me an error message and wont let me run the app even though I have added the site as a trusted site. It runs if I get the source and compile and run it locally. It looks like a security issue. Can some one kindly tell me what I need to do get the app running from the internet The detailed error info is as follows: Startup URI: http://www.valil.com/winfx/Valil.Chess.WinFX.xbap Application Iden ...Show All
