PrasannaGPKBE's Q&A profile
Visual Studio Team System Could not load type 'Microsoft.VisualStudio.Performance.PerfWorkItem' (Beta 2)
I am getting the above error when trying to create a new performance session. the assembly is 'PerfPkg,Version=8.0.0.0, Culture=neutral'. Any ideas Some folks on private blogs were reporting this error as well and they mentioned that it was related to not installing TF (Team Foundation) client. Moving this thread to the TF forum for their confirmation. Thanks, Ayman Shoukry VC++ Team ...Show All
SQL Server How to do a SELECT on SP Result
Hi there, Problem: Having an old webapplication with dynamic build sql queries. Now the database changed completly because of new db model. Queries are getting much more complex now, so i put them into stored procedures. Now i want to work with the data in an application for sorting an filtering. All the 'WHERE' conditions are build dynamic within the code. For not modifying the whole application i would like to do something like: SELECT * FROM (EXECUTE sp_someprocedure) WHERE X = 1 Is there a way to realize this Thx for helping Hi, Just doing queries won’t work, althou ...Show All
Visual C# exception handling
hi friends am new to c# and am developing a small app. my question is how can i create global exception handler which displays/handles error messages whenever there is one. what am i trying at the moment is am using try..catch whereever i think the could b an error .for example conn.ConnectionString = @"Application name=myapp.net;data source=myserver;database=mydb;user id=" + cUid+ ";pwd=" +cPwd; try { conn.Open(); // opening a sql server connection and there could b errors like wrong pwd or user id } catch ( Exception ex) { MessageBox .Show( "Error ...Show All
Windows Forms Finding Design Time assembly
In a run-time assembly I specify a UIDesigner for a component's property using string notation, for a designer in another design time assembly. How does Visual Studio then find my design time assembly where the actual designer resides ...Show All
Windows Forms RichTextBox Length
Hi! I'm currently programming a text editor that needs to display very large files... The one that I'm testing with is a log file that's about 55 MB. The StreamReader can read the entire file just fine, but I can't seem to get the entire text to enter into the RichTextBox. Here's the code I'm using: Dim openstream As New FileStream(filepath, FileMode.Open) Dim opensr As New StreamReader(openstream, True) Dim NewWin As New frmNoteWin NewWin.rtbText.Text = opensr.ReadToEnd opensr.Close() opensr = Nothing openstream.Close() openstream = Nothing It doesn't even come close to loading ...Show All
SQL Server How xml could help us with our ETL processes on daily-basis?
Hi all of you, I'm just a newbie with XML. Now we're moving all our DTS to SSIS packages. Most of them are simply processes that takes a plain file and loading these data into Sql table or in inverse way. So that I wonder what role will play XML here. I mean, are there big differences between store data as XML format and nvarchar That sort of stuff. Thanks in advance for any input, Oh, there's a whole religous debate to be had here. In my opinion there are legitimate scenarios for storing XML snippets in a database table (we are using this on my current project in a very interesting way) but if you're talking about stor ...Show All
Microsoft ISV Community Center Forums Edit Data in Access
Hi, I currently have a MS Access 2002 database, and it has a table with the fields "Part", "Quantity", "Date", and "Comments". Thie "Part", "Quantity" and "Date" data are extracted on a weekly basis from another MRP database. However, I have to manually copy the "Comments" data over because it is not part of the MRP database. I wrote some simple queries to see the change in Quantity over time for each different Part(i.e. check quantities each week, and calculate a delta). Now, the issue I have is that I would like to automatically copy the "Comments ...Show All
Visual Studio Express Editions How to connect two tracking bars and a data table?
Hi! Me again, with my next "small" problem. I have a SQL database table, with two primary key coulums. In my application I would like to use two slide bars (each of them to be bind to one of the DB coulums), to select the data to be displayed on the form. Can someone help me on this issue Thanx! hi. Is your problem solved could you be more clear in your problem definition Thank you, Bhanu. ...Show All
Visual C# UserControl Terminate or Close Event
Does anyone know of an event for a UserControl that fires when the UserControl is closed by the user In VB6 there was a terminate event. In windows forms there is a close event. I haven't been able to find an equivalent. Thanks in advance for you help. Provided you are sure that the Dispose is being called on the user control when it is closed you could listen for occurrences of the Disposed event. Otherwise I’d have to suggest implementing your own event for your user control as I do not believe that there is a Closed or Closing event that is part of the UserControl. ...Show All
Visual C++ Frame Grabbing Mpeg-2 Frames in VC++ to BMP
Hi Everyone, Does anyone know of an aproach to capturing Mpeg2 frames to BMP in Windows Apparently I can't find any descent way to do this. It can be done with AVI's, but what about Mpeg's I need to find a way to capture the frames. Thanks, Jason :) Hello Jason, I know this isn't the best place to post this, but can you mention the way you said you could rip AVIs to BMPs please With Thanks, Gal Beniamini. ...Show All
Visual C# List<> - What am I doing wrong here?
OK, I'm writing an app for managing citation records. I've choosen to use List<> arrays to contain elements with variable numbers of instances in each record such as the Authors. Right now, I am running into 2 problems. My code is down at the end of this post. 1: In my default constructor, I want to initialize all of the List<>s with default values. Unfortunately, I can't figure out how to create an array without declaring a temporary variable and then adding it to the List<> for every element. While the current method works, having all these temp variables in my constructor strikes me as poor programming technique. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creating a very simple GUI
I am trying to integrate a very simple GUI into the project I am working on. All I need is 3 edit boxes to accept values and a button to execute a command. That's it. I have looked at the tutorials included with DirectX, and the GUI example is simply too complicated...I don't want to include a bunch of files I probably won't even need. What's the easiest way to implement a GUI like the one I am describing (By the way , I am writing this in C++.) thanks in advance. >What is wrong with the sample code provided in the SDK (Custom UI) It can't be used unless you use the whole of the framework. There's ...Show All
Windows Forms Getting the content of Textbox in one form, from another form
Hi all, i'm having two forms. Form1 contains a textbox 'txtId'.Form2 contains a grid. Based on the Id in txtId, the grid should get filled in Form2. When i try to access the text in TxtId in my Form2,i need to instantiate the Form1 class which leads to the creation of new object which contains 'null' for my TxtId. Help me to overcome this problem,immediately!!!!!! I referred How do I access a TextBox on one Form from another Form http://msdn.microsoft.com/smartclient/community/wffaq/default.aspx and Code: Getting a Value from Another Form (Visual C#) http://msdn.microsoft.com/library/default.asp url=/library/en-us/cscon/html/vcwlkcodege ...Show All
.NET Development how to read a certain line of textfile??
Hi, Is there any way in c# of specifying which line number of a textfile I want to read Thanks, ...Show All
Visual C++ Menu Event Handler is blank (bug)
I've started a simple MDI applicaton in MFC with a menu. After creating the menu items I right click on the item to add an Event Handler. The Event Handler dialog comes up, but the Message Type and Class list are both empty. I can't see anything. Knowing roughly where my selections are I can click blindly to choose the class and message type, but none of the list items are visible. Has anyone else had this problem Please report the issue at the prodcut feedback center at http://lab.msdn.microsoft.com/ Also, it would be great if you can provide a link to the bug so that other can follow up on the status. ...Show All
