kunala's Q&A profile
Visual C# Generic math functions
I want to create some functions that operate only on the numeric types but I don't particularly care what those types are. I'd rather rely on the invoker or .NET's automatic casting rules to create the answer in the appropriate type. I could declare two versions of every funciton one taking and returning doubles and the other decimals but that seems excessive and slow. Is there a way to make a function generic yet restrict its parameters to nume ...Show All
Windows Forms How to improve Listbox performance in ADO.NET 2.0?
I have a bunch of listboxes on my windows forms with a couple of thousand records in each one of them. It takes almost about a minute to load a form in .NET 1.1 We are migrating the application to .NET 2.0 and was wondering if there is any way to improve the performance in ADO.NET 2.0 so that the listboxes are loaded faster in .NET 2.0 I tried running speed test as per: http://msdn.microsoft.com/msdnmag/issues/05/11/DataPoints/default. ...Show All
Visual Studio Team System How to view submitted changesets?
When a file is checked in, it is part of a changeset (very similar to a changelist in Perforce). What I don't see in Team Foundation is a way to view previously submitted changesets (this is available in Perforce and is very useful). Is there a way to retrieve a list of submitted changesets, this seems like very basic functionality Since the changeset groups changes to multiple files logically, it often makes more sense to review the ove ...Show All
SQL Server AS2005 September CTP Errors when Processing Cube
I have a cube which was originally created in the June 2005 CTP. I have made no changes. I am just attempting to process it in the AS2005 September CTP. I get random messages like this: Errors in the OLAP storage engine: The attribute key cannot be found: Table: dbo_PolicyFact, Column: PolicyDimKey, Value: 3135. Errors in the OLAP storage engine: The record was skipped because the attribute key was not found. Attribute: Policy Number of Di ...Show All
Visual Studio Tools for Office How to launch a Windows Form in a new thread from a SmartTag action?
Hi all, I am using Excel 2003, VSTO 2005 and C#.NET 2005. I am creating an Office Addin and a Smart Tag DLL. Some of the Actions in the SmartTag DLL require me to launch a Windows Form. In the Smart Tag performance guide it is recommended that any such GUI components be launched in a new Thread so as not to load the smart tag recogniser thread. Can someone give me an example of how to do this Also, with my additional Office COMAddin, I also ne ...Show All
Visual Studio Express Editions Where are the registration benefits
Have just installed and registerd VB Express. I received an email with a link to the registrations benefits page ( http://go.microsoft.com/fwlink/ LinkId=52054 ). This link leads however to Microsoft Connect, not the registration benefits page. The link given in the Express Registration FAQ is the same incorrect link. Judging from this forum, this seems to be quite common. has anyone got a working link to the page Chee ...Show All
Visual Studio Team System Error on Check In
After upgrade checking out a file works fin. When I check it in a couple of error dialogs appear saying checkin failed. Output window shows: YesNoRadioButton.cs has been automatically checked out for editing. Changeset 240 successfully checked in. Object reference not set to an instance of an object. Looking in the Source Control Explorer shows the file checked in! But in the Solution Explorer it still shows as checked out. On restartin ...Show All
Visual Studio Error installing under Checked XPSP2 - Win Installer 3.1
Trying to install the final build of VS 2005 under the Checked/Debug build of Windows XP. My last try was a fresh install of XP followed by the Checked/Debug SP2 update. Cannot get past an error in the first step of VS 2005 trying to install Windows Installer 3.1. I downloaded the 3.1 Installer redistributable to see if it would install by itself. It displays a message saying that the Checked version of XP cannot b ...Show All
.NET Development Please help - a question on XPath...
Dear Expert, Please take a look at the bottom sample XML codes. I would like to write a XPath that finds out the ProjectId based on a given File Name . For example, the file name file1.txt corresponds to the ProjectId P007 . My XPath was written as follows: xPath = "/Sample/Projects/Project[./Files/File/Name='file1.txt']/ProjectId" This xPath is then put into the following code fragment for processing: XmlTextReader xtr = new XmlText ...Show All
.NET Development "Could not create type..." error deploying webservice
I know this question has been asked a billion times already because I've found several instances on the net, but none of the proposed solutions seems to solve my problem, so I'd appreciate any help. I've created a C# webservice on my local machine that runs fine. Now I'm trying to deploy it to a webserver. The server is Windows 2003 with IIS 6. I created a new virtual directory in IIS, set it to be an application, and gave it "scripts on ...Show All
Visual C++ Visual Studio 2005 MFC Applications on Windows 98
Hi, I am tring to build a unicode app to work on win 98/nt/xp. Built a sample MFC application in Visual Studio 2005 Team suite Beta 2. A unicode dialog app with a button. When run on windows 98 it shows this message. Installed VCredist_x86 and .NET framework 2.0 latest versions downloaded from web. Also coped mfc80u.dll to the exe folder. Microsoft Visual C++ RuntimeLibrary Runtime Error! This application has requested the runtime to te ...Show All
.NET Development How to dynamically change connection string in generated dataset class?
I have a project with database classes which are generated from database objects. That is I add a dataset to the project and drag and drop a database object onto it. The problem with this is that I have to give a connectionstring which is stored in the code. This is ok while developing the application. But runtime I want to use another connectionstring, both for security reasons and because each user of the application will correspond to a datab ...Show All
Visual Basic Databinding class to dataset
Hi, although there are dozens of examples on how to bind controls to a dataset but I cannot find any examples of how to bind class properties to a dataset. ie public class DataItem 'List of Property getters/setters end class public class DataItemsCollection Inherits System.Collections.CollectionBase Default Public ReadOnly Property Item(ByVal index As Integer) As PrintItem & ...Show All
SQL Server Insert Script from one table to another
I have a table in the SQL Server 2005 database that I want to copy 5 columns from one table into another table. I wanted to create a script to do this operation so I can use this on another database that would have different values for these columns. If I were to use something like this: DECLARE @pdtno smallint , @publyear smallint , @issord int , @pdtrnno smallint , @layout varchar ( 60 ) --- code to select the v ...Show All
.NET Development System.IO.Ports problem? I/O Exception...
I've searched all over and seen a few instances of other people having similar issues but have yet to find a solution. I'm trying to connect to my GPS unit via COM3 I use the following: SerialPort thisPort = new SerialPort("COM3", 4800, Parity.None, 8, StopBits.One); thisPort.Open(); This always throws an exception: The I/O operation has been aborted because of either a thread exit or an application request I wrote a similar applicatio ...Show All
