smurfgbr's Q&A profile
Visual Studio Express Editions Playing sound from a IO.Stream object
I was wondering if there is any library available which will allow me to play common formats by passing them as an IO.Stream object. I have been looking into this for a while and all I have found is the DirectX.DirectSound.Play() method. Unfortunately, all that plays is .WAVs. I need to be able to play MIDI, MP3, and OGG also. There are also some exotic formats which I want to play including SPC, MUS, Doom sfx. Any help You can reference t ...Show All
Visual Basic Moving things in a listbox
ok, i have a menu and a listbox, in the form1_load i have: For Each toolStripmenuItem As ToolStripMenuItem In ToolStripSplitButton1.DropDownItems Me .ListBox1.Items.Add(toolStripmenuItem.Text) Next In my menu i have: box1 box2 box3 The listbox displays all of these, i then want to be able to select box1 in the listbox and move it around, say under box3, i also want the changes to appear in the menu, how would i go ...Show All
.NET Development web service locks up when using an inherited class
Hi, has anyone seen this I'm using a basic class such as. public class a <XMLElement(type:=gettype(clsTestClass)), _ XMLElement(type:=getType(clsDerivedClass))>_ public a1 as clsTestClass end class DerivedClass inherits TestClass Everything compiles correctly, but when I try to put a clsTestClass object in a1 and then use it to pass to a web service, the soap call freezes up apparently at the accessorcollection.findacces ...Show All
Windows Forms Filter the items of a listbox depending on the selected item in a combobox
Hi, I have a combobox bound to a Section table and a listbox bound to a Department table. The listbox has to display the departments agreing with the Section selected. I tried this: Private Sub SectionComboBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SectionComboBox.SelectedIndexChanged DepartmentBindingSource.Filter = "SectionID=" & SectionComboBox.SelectedValue End Sub ...Show All
Visual C# C++ #define equivalent
Is there a C# equivalent to using #define in c++ I know I can use enumerations for integer constants that I need, and I assume the actual enumeration wont be compiled and stored in my app, but what about floating point constants what about const float First = 1.0f; const float Second = 2.0f; ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Thread safety and graphics device
I am experiencing errors in the form of a locked application when I have a device (with two backbuffers) in one thread which i use for rendering while another thread attempts to lock and read the other backbuffer. I get no error. The application just freezes on the call to getBackBuffer. I attempt to lock buffer 1 while rendering into buffer 0. How is the graphics device working in relation to threads Can you work on a buffer while renderi ...Show All
Visual Studio Team System TF30170: The plugin Microsoft.ProjectCreationWizard.WorkItemTracking failed
Im trying to create a project and i got this error any ideas. Error TF30170: The plugin Microsoft.ProjectCreationWizard.WorkItemTracking failed during task WITs from group WorkItemTracking. Explanation Plugin error text: “Value cannot be null. ---> Value cannot be null.” User Action Contact your Team Foundation Server administrator. Warning TF30144: The New Team Project Wizard attempt ...Show All
Visual Studio Express Editions Intellisense ())
Im am going thru Bob Tabor's videos Absolute Beginner Series for C#. With syntax like this: int result = 2 MessageBox.Show(result.ToString()); It seems the ())...is added, after ToString,...instantly, using Intellisense When I do it the ()) is'nt added. Just .ToString. I swear he could'nt be typing that fast....its instant. Am I missing a shortcut It would really help. Thanks cablehead - My guess is that Bob was just typing fast through ...Show All
Visual Basic Login in VB app
Can you help me! I have a SQL Server 2005 with a database on it. I would like to create a login form on a VS 2005 VB app that validates a user's credentials. Thanks guys, Zack Owens If you create a project, you can right click the project name from the solution explorer, and choose add->Windows Form. A list of pre-build forms will appear. Choose the Login form. If you open the code section of the form, there's a link to http:/ ...Show All
.NET Development Web Services .net framework 2
I have just ported an ASP.NET 1.1 application to framework version 2 and i have a problem. My solution has a Web project and a class library project. The class library project has a web reference to a web service. The Web project makes a call to the web service. I used to hold the url for the web service in the web.config and because the web reference was set to dynamic, this all used to work fine. Now it looks a though the ...Show All
Visual Studio Team System Missing something fundamental?
Hello! Im new to using the test features in Visual Studio. I tried some simple webtests and loadtests and it works good. But over to my problem: Two computers involved: 1. My computer with VS 2005 RC 2. Webserver running web application hooked to a Oracle DB. I record a new web test: 1. I enter username / password and press login. 2. I am being transfered to a page where I can perform different tasks involving a Oracle database. I do some c ...Show All
SQL Server Saving Auto Recovery Information
Hi I am using the Microsoft SQL Server Management Studio to manage our database objects over a VPN connection. At scheduled intervals the system saves recovery information. The problem is that the location of the recovery files appears to be located on a remote server. This causes the UI to completely freeze while the operation is in progress. How can I change the location of the recovery files or turn off the Auto Recovery functionalit ...Show All
Windows Forms Intranet development
I have been asked to develop a software for an office with several networked computers. I need some pointers for developing an application to be run on an Intranet where the database (SQL Server 2000) is on one system. I will be developing  ...Show All
SQL Server Will lost update occur if transaction isolation level set to SNAPSHOT?
Let's say if there're two transactions updating a column of the same row concurrently, will one of the update be overwritten by the latest one No an, error will occur: Msg 3960 , Level 16 , State 4 , Line 1 Snapshot isolation transaction aborted due to update conflict . You cannot use snapshot isolation to access table 'dbo.Test' directly or indirectly in database 'Adventure ...Show All
Visual C# conditional casting to generic type for value types
Hey, I have the following code for reference types that works perfectly and does what I would like to: public T GetAttribute<T>(string attributeName) where T : class { if (attributeName == null) throw new ArgumentNullException("attributeName"); if (typeof(T) == typeof(string)) return this[attributeName] as T; // this[string attributeName] returns string return null; } Of course, the as operator I can ...Show All
