AlexBB's Q&A profile
.NET Development How can I tell if I am being called from funceval
Hi, How can I know from within my .NET code if I am running in a funceval I can check that I am being debugger via, System.Diagnostics.Debugger.IsAttached but as the funceval is hijacking I cannot tell from the stack trace if the call is from the debugger. Is there any method that works differently when in funceval Is there a way in unmanaged code to do this any pointer is welcome. (I know about the debugger attributes, but these are not an option) Thanks Eli The are quite a few places where the above solutions break down. One for example is when we are recording a mocking sessions. In a recording session we hook to all the calls made and replay them later. This works well if we dont break inside the reco ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How I get the skin weights?
Hey, I am trying to understand how animations works in XNA. I have modified the content processor to get the vertex buffer of a mesh from a model in a raw data, and I believe that it is in the vertex buffer where the skin weights indices of each vertex for each bone is stored. Does anyone has some clue how to get the skin weights or how they are stored in the vertex buffer Or even better, does anyone know the proper way to retrieve the vertex buffer, index buffer and skin weigths from a model It will be easier to look up this data from the NodeContent tree before you call the ModelProcessor, rather than trying to examine the vertex buffer that is returned from ...Show All
Community Chat HTPC Frontend / MediaCenter made with WPF
Check this out: http://leffe.myftp.biz/evolutionmc.com/web/ A mediacenter made completly with WPF. Supports fully dynamic xaml-skins and has alot of other neat WPF-features like realy good looking pagetransitions and so on. Recommended! Our server crashed so we had to put up a temporaly site on a temporaly host. Now our real server and page is back online. http://leffe.myftp.biz/evolutionmc.com/web/ ...Show All
Visual Studio the filename selected is not recognized as legal.
Hi, I am not able to open project throught visual sourcesafe internet mode. what I did is click file->open->project/solution, then click SourceSafe(internet). it complains "the filename selected is not recognized as legal. Please select another file or rename the selected file.". the file name is very simply and I can open that in other machines. And one thing I am pretty sure is that I was able to open that file before using same way. I actually tried the method in this post , but it doesn't work. So can any one help me to figure out the reason Thanks this error message looks like this Can you give me the file name so that I could see if anything is invalid with it ...Show All
Visual C# Create a new object through the property grid
My apologies if I didn't label this subject appropriately. I couldn't think of anything better to put as the title. I don't know if this is even possible, but I figured this forum would be the best place to find out:) I have a property: [ BrowsableAttribute ( true ), ReadOnly ( false ), TypeConverter ( typeof (System.ComponentModel. ExpandableObjectConverter )), Category ( "Inherited Physical Values" )] public Shapes. Shape Shape { get { return _shape; } set { _shape = value ; } } The Shape property is from a parent class, "Physical" and is inherited in many child classes. The Shape class is obviously an abstract class which has m ...Show All
Visual Studio Out Of Memory error
Visual Studio 2005 (8.0.50727.42) Visual SourceSafe 2005 (8.0.50727.42) I have a solution with a Web Application project, a Web Service project, and I've just added a Database project (old kind, not the new SQL Server Project type). The projects are each bound to SourceSafe on a remote server using VSS integration. This Database project has around 800 stored procedure scripts, and since I added these items to the project I get a delay of around 30 seconds to 5 minutes or more for any SourceSafe operation that I do. Most of these delays result in an error popup saying Visual SourceSafe | Out Of Memory. I hit OK to this popup and things continue, but things aren't quite right (VS still shows a file as checked out even though it managed to ge ...Show All
Windows Forms BindingList.Add behaviour (Extremley slow!)
I am trying to improve a bindable class that supports filtering. I use a class I found on a blog somewhere. After some fidling I get it to work, and I have replaced the Filter functionality with my own RegEx filter that works nicely. My problem, however, is that the BindingList.Add method is so extremly slow! The functionality is like this: I have a textbox where the user inputs his filter. On the Change event I update the BindingSource.Filter property, and run my own filtering code. When the user removes his filter, the original values should be shown again. This is when the problem arises. I have to clear the bound collection, and copy the values from the original collection back. This should be extremely fast, since it is an in-memory l ...Show All
Windows Forms Get updated data from axSpreadsheet
Hello, I am using a axSpreadsheet component in my Winforms application. How do I fetch data from cells which the user has entered at runtime For ex - I had programatically inserted data in cell A1 as - axSpreadsheet1.ActiveCell.get_Range("A1", "A1").Value2 = "Some Content"; On a button click I have the following code which gets me the data of cell A1 - axSpreadsheet1.ActiveCell.get_Range("A1", "A1").Text.ToString() However, if the user had entered some content in B1 at runtime, then axSpreadsheet1.ActiveCell.get_Range("B1", "B1").Text.ToString() returns me an empty string. How can I get the new/updated/modified data Thanks. ...Show All
SQL Server HOW to browse KPI's Result Data through ADOMD.NET?
Hi, My question is how to browse KPI's Result through ADOMD.NET I mean to get a KPI's Result Data, not get the metadata of KPI, not get the KPI's Value Property(String) either. I see the MSDN said about AdomdDataReader, but it doesnt tell how to get a KPI's Value. I guess, I need to get KPI's metadata first, and get a KPI's Value Property, that's a MDX, you know. Then I bring the MDX to the AS server, and get the result. Is it right But, if so, when i want to slice on a dimension when I check the KPI's result, how could I do I have got a KPI's Value Property MDX, then I need to modify the MDX to add the dimension slice to it manually Thanks. Via an MDX query, you can retrieve the various values associ ...Show All
Windows Forms Updating DataGridView from Background Worker Thread.
I am simply trying to update a few cells in my DataGridView from my BackgroundWorker Thread. I have two classes the Main class which is my Main Form and all the controls are created in and a Worker Class where all my Background work is done. Here is the code that I am using to update my DataGridView in the Main Class Public Delegate Sub UpdateTransferStatusDelegate(ByVal rowIndex As Integer, ByVal status As DriveStatus, ByVal checked As Boolean, ByVal RefreshNow As Boolean, ByVal Message As String) Public Sub UpdateTransferStatus(ByVal RowIndex As Integer, ByVal status As DriveStatus, Optional ByVal checked As Boolean = False, Optional ByVal RefreshNow As Boolean = True, Optional ByVal Message As String = "") If Me.d ...Show All
Windows Forms Storing NameValueCollections in Application Settings?
Hi, Is it possible to store name value collections in the application settings If so, could someone be so kind as to provide a link or a sample please I have been struggling with this for some time now, so any help would be appreciated! Thanks! My post here may be useful: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1020058&SiteID=1 ...Show All
SQL Server Expression to get the last word of the fields
Hi, How do i get the last word of a field in an expression Thanks Add a script component to your dataflow... Add an Output Column, LastWord, of type string. Make sure that the field you are working on is selected as an input to the script component. Then, here's your script... Note the "your-field-here" location, which represents the input field name that you are trying to get the last word of. Imports System Imports System.Data Imports System.Math Imports System.Text.RegularExpressions Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper Imports Microsoft.SqlServer.Dts.Runtime.Wrapper Public Class ScriptMain Inherits UserComponent Public Overrides Sub ...Show All
Visual Studio Team System verify the type VSTF exists
I was trying to verify the type VSTF exists. but after GetRegistrationEntries, instead of <Type>vstfs</Type> I get <Type>String</Type> why is that thank you, please help me jiajia Actually the parameter is vstfs, my apoloigies, try the following and see if you get anything back. TeamFoundationServer myServer = TeamFoundationServerFactory .GetServer( "YourServerName" ) IRegistration myReg = ( IRegistration )myServer.GetService( typeof ( IRegistration )); RegistrationEntry [] myEntires = myReg.GetRegistrationEntries( "" ); for ( int p = 0; p < myEntires.Length; p++) { Console .WriteLine(myEntires[p].Type.ToString()); } ; ...Show All
Visual Studio Express Editions Help with "Concentration" Game
I am a student studying VB for the first time and I've run into a snag programming as assignment. It's a matching game consisting of 8 pairs of matching words randomly assigned to 16 labels. When a label is clicked, the word currently assigned to it will display. If two labels are clicked and the words match, the labels are disabled and change their color. This is done until all 8 pairs of words are found, after which a message box is displayed indicating the game is over. I am confused as to how I can randomize the list of words and assign them to the labels, as well as how to check for matching. Any help would be appreciated. you could but wouldnt recommend it. If I understand correctly, you want the cli ...Show All
Visual C# listBox - System.NullReferenceException
Hi All, I'm rather new at C# and wondering if you might help me figure out what the problem is with the code below. What I'm trying to do is get this: I have two listboxes one is populated via the smart tag in VS2005 it displays Company Names and the value of each item is the ID. Now when i click on one of them it populates the second listbox with files on a remote server. So far it all works well and no problems. Now when I click on one of the items in the second list box I get the nasty error: System.NullReferenceException: Object reference not set to an instance of an object. Here's the code: private void listBox1_SelectedIndexChanged(object sender, EventArgs e) { if (listBox1.SelectedIndex != -1) label2.Text = listBox1.Select ...Show All
