CScs's Q&A profile
Visual Studio Team System Enabling FxCop in Visual Studio 2005
If FxCop is integrated with Visual Studio 2005 Team System, let me know on how the tool is to be enabled from the IDE. I am using the trial version of the software. Haritharan, To enable it on every build, do the following: In Solution Explorer , right-click on the project you want to enable Code Analysis and choose Properties In the properties window that opens, choose the Code Analysis tab In th ...Show All
Visual C++ setting enviroment option- save file option
Hi I am changging a code that works. I don't want to save my files befor running them ( because I don't want to save unchecked code. How can I do it . Now I have to save all before running the programs in order that the code changes will take effect. Thanks Open Tools->Options! Select Environment->Projects and solutions. At the build and run options select "Don't save changes to open documents" ...Show All
Visual C# Generics and "==" or "!="
I'm using Beta1 and within a generic class I'm attempting to use the != operator on a couple of variables of type T. The compiler won't let me. It says "Error 1 Operator '!=' cannot be applied to operands of type 'T' and 'T'...". Why not According to the documentation both the '==' and '!=' operators are implemented for all Objects and value types, (although for Objects the defaul ...Show All
Visual Studio Express Editions Int array conversion to string
I have an integer array number[x] i need to convert the entire array of unknow length to a singal string. In the end i want to take all of the integers from the array and put them on one line and out put it to a text box. I have tried using encout->Text= number[x].ToString(); but that only out puts the last integer in the array, and i need all of them comeing out. You need a loop. String str; for (int ...Show All
Visual C# Data Source (ODBC)
Hi Every1, How can I call/show Data Sourc(ODBC) popup (found in Andministrative tools) from my windows form and use the dinamic string connection (after user creats it) to connect to specified Db. Actualy the popup name is "Data Link Properties" Tnx. Hello again Found the solution. OleDbDataAdapter da = new OleDbDataAdapter (); DataTable dt = new DataTable (); ADODB. ...Show All
Visual Basic How to create user interface for Fileloader in VB.NET
Dear Sir/Madam, I am trying to create user interface in VS.NET that allow the user to choose and open a file (Browse) like MS Word, etc... It is like Fileloader in Java but I just don't know how to it in VS.NET Any help is greately appreciated. Thanks. Sincerely, Ramy. Bridgette --- the request for any kind of file is unusual. Usually reading routines take a file dat ...Show All
Visual Basic Is Clipboard.SetText available in VBA?
I would like to send some text to the clipboard in an MSAccess-VBA program, but the code is not recognizing the command. Is it available in VBA Hi, No, VBA doesn't actually support the Clipboard object. You can still acess the clipboard, it's just a little more convoluted. Someone asked the same question in a newsgroup, and the answer will give you what you need: http://groups.google.com/gr ...Show All
Smart Device Development WM5 .NET 2.0?
Hi! Sorry, title maybe misleading.... Basically in the UK the next version of the smartphone (SPV) is C600 (after the successor C500) and it will be launching at the end of the month now, I know it has WM5 (hurray!!) BUT would like to know, if anyone knows (esp the MSFT guys)... will it have .NET CF 2.0 I know it was in beta etc... for the past few months but now for MSDN subscribers VS.NET 2005 has been officially launched but the of ...Show All
Visual Basic Error when trying to update a database.
I have this code: Dim RowValues(2) As String RowValues(0) = AdUser.Text RowValues(1) = AdPass.Text RowValues(2) = AdTimes.Text UserPassDS.Users.Rows.Add(RowValues) UsersTableAdapter.Update(UserPassDS.Users) When I try to update (the last row), It says an error. The error is: System.Data.SqlClient.SqlException was unhandled Class=14 ErrorCode=-2146232060 LineNumber=65536 Message="An att ...Show All
Visual C# Thread Safe Access to DateTime
Hello all ... I'm working on a class to return the current date. It is a bit more complex than the following code due to managing cultures, but below is the basic idea. My question is: how can I ensure the execution of the get property is thread-safe, without single-threading my application My understanding from the doc that is that I need to be thread safe when using DateTime. I was thinking that lock would be too restrictive and w ...Show All
.NET Development Compare time
Hi, Im having a lil question. Im trying to compare 2 times with eachother. One time is in an xml file. The other one is the time at this current moment. If the time is older than 1 month, it should remove a whole table from the xml file. This is the code i produced so far: static void Main(string[] args) { try { DataSet xmlFile = new DataSet(); xmlFile.ReadXml("test.xml"); foreach (DataRow dateR ...Show All
.NET Development app.config with unmanaged EXEs
We have an unmanaged exe that pulls in a DLL that has some managed C++ in it. It turns out that running our app on a system with both .NET 1.1 and .NET 2.0 results in .NET 2.0 being loaded and that is causing our app to crash with an exception code 0xE0434F4D with an HRESULT of 0x800703E6. I tried creating a foo.exe.config file for our unmanaged exe but it doesn't seem to work. Here is what the file contains: < xml vers ...Show All
Visual C++ general question regarding arrays and functions
Writing another program for school and I've got something seriously screwed with this one. I may have to post code for this, but I have my main function that calls another function(switcher), I'm trying to pass two arrays to this function and have that function switch the lowest value in one array replace it with the lowest value in the second array and vice versa. The problem is when I compile the program, it builds with no errors or warnings, ...Show All
Windows Forms Detecting if preview mode
Hi, When I use the System.Windows.Forms.PrintPreviewDialog and get a PrintPage event. How can I see the difference between painting to the screen (in preview mode) or if painting to a printer (e.g. the user has pressed the Print button the PrintPreviewDialog) ...Show All
Visual Studio Team System Load Test Display
Is it possible to display where each user is during a load test My goal is to have code webtest that is similar to the following: display (User Login) <http requests> display (User Logged in As UserABC) <http requests> Then while running the load test I have created for the webtest. I would be able to see where each user was in the code with the display statements in a list. For example, User1 User Login User2 User Logged in As Us ...Show All
