rw-ral's Q&A profile
Software Development for Windows Vista MIDI and high resolution timers on Vista
Hi, Can anyone point me to the best suited technology to use, when I want to build a MIDI recording and playback application. Are such services built into Vista, should I use DirectX, or should I go for WINMM.DLL (and I don't know if that DLL is available on Vista) Any guidelines would be greatlty appreciated. Cheers, Mikael ...Show All
Visual Studio 2008 (Pre-release) How to compile XAML with code-behind into assembly on the fly with MSBuild?
I have xaml file and some event handlers in file.cs. (like in simple WinFX application) So, I want to get assembly in run-time and after that to load object from assembly: Application.LoadComponent(new Uri(@"GeneratedAssembly;component\file.xaml", System.UriKind.RelativeOrAbsolute)) How can I compile file.xaml and file.cs into assembly using MSBuild on the fly I found solution, if it is inseresting for someone: class Program { public static string GetPath( Assembly assembly) { string result = new Uri (assembly.CodeBase).LocalPath; return result; } static void Main( string [] args) { Engine engine = new Engine ( Path .GetDirectory ...Show All
Visual Studio Express Editions Counting An Array for Numbers
Hi I was trying to make a program to calculate a poker hand in the form of card values ranging from 1-13. I was trying to see how many 5's or 8's etc were typed in by the user but I cant seem to get a counter up and working, I have notes so ill show my notes and hopefully someone can tell me how to declare or use what im attempting to use. hand = the array with which the users cards are stored. count = the array which counts and stores the amount of each number in the hand array. Code Notes: declaration. int[] count int[] hand hand = new int[5] count = new int[14] Loop for counting numbers. for (i = 0; i < 5; i++) count(hand[ i ]) = count(hand[ i ]) + 1; for some reason i get a error sayting that c ...Show All
Visual Studio Express Editions Problems compiling project in Visual C++ studio
I recently downloaded Visual C++ Studio and when I try to compile my project, I get error messages such as these below. I made sure to follow the instructions on setting the VC++ Directories option but I still keep getting errors such as this one c:\Pam 2\Headers\afxwin.h(19) : fatal error C1083: Cannot open include file: 'AFX.h': No such file or directory and the problem is that most of these include files happen to be in the Windows Platform SDK / Include/MFC folder. How do I get my the compiler to look in there for these files please. MFC is not supported in the Express edition. Same for ATL. The platform SDK will give you Win32 programming but not with the help of MFC and ATL -- SvenC ...Show All
Windows Forms Validating the treeview label change treeMnu_AfterLabelEdit
I am having trouble getting this event to take place after the label of the treeview has been edited please Help I have no error showing when I build private void treeMnu_AfterLabelEdit( object sender, System.Windows.Forms.NodeLabelEditEventArgs e) { if (e.Label.Trim() == "") { MessageBox.Show("The tree node label cannot be empty", "Label Edit Error", MessageBoxButtons.OK, MessageBoxIcon.Error); e.CancelEdit = true ; return ; } if (e.Label.IndexOfAny( new char []{'\\', '/', ':', '*', ' ', '"', '<', '>', '|'})!=-1) { MessageBox.Show("Invalid tree node label.\n" + "The tree node label must not contain " + "fol ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Gamestate tutorial?
Hi all! I am looking for a GameState tutorial for XNA. I searched this forum and found a nice tutorial on the subject. ( http://www.kalme.de/index.php option=com_content&task=category§ionid=4&id=14&Itemid=26 ) Except that it's not using the XNA framework so there is alot of stuff in the tutorial that is already taken care of in XNA. If there is a tutorial about how to handle gamestates in XNA it would save me alot of time figureing it out by myself from the tutorial above. I am glad for all the advice I can get. Happy coding This article might be helpful. ...Show All
SharePoint Products and Technologies Removing web parts
We have duplicate web parts on our WSS, they only have different names and the duplicates do not have a description. How does one remove web parts from the WSS so that they are not avaiable Thank you I believe the steps that you need to take are outlined here: http://wss.collutions.com/Lists/FAQ/DispForm.aspx ID=111 ...Show All
Visual Studio Team System Custom Test Install issues
Good Day, I am trying to build custom tests. I am a newbie to this so please bare with me. I have RTM VS TFS Test edition with the VSIP SDK loaded. When I attempt to build the MyTest Sample, I get the following Build error for the MyTestUI: Creating temporary file "c:\TestTemp\MyTestUI\Debug\BAT00000135402424.bat" with contents [ @echo off "C:\Program Files\Visual Studio 2005 SDK\2005.10\VisualStudioIntegration\tools\bin\ctc" -nologo .\PackageCmd.ctc pkgcmd.cto -Ccl "-IC:\Program Files\Visual Studio 2005 SDK\2005.10\VisualStudioIntegration\common\inc" "-IC:\Program Files\Visual Studio 2005 SDK\2005.10\VisualStudioIntegration\common\inc\office10" if errorlevel 1 got ...Show All
.NET Development How to tell if query comes up with nothing
Hey all, If I do a query to a SQL DB and it does not find a match, say for ID, then how do I know that so I can give the user a No File found message. Sorry, I know this is fundamental stuff but I used to program ASP and now learning .NET. I think it has something to do with EOD and BOF. Thanks Depending on what are you doing with result of the query. If you have a query that just check existance of a row in a table then as was explained by Mark, you should use ExecuteScalar method to see what will be return value of procedure. Procedure will be developed to return a value that will tell you what is the result. But if your procedure return row or rows of data, but before reading you want to c ...Show All
Visual Studio Team System Adding an exisiting project to source control
How can i add an existing project to source control I have a team project that i can see in team explorer in my VS2005, but i don't see where i can add a new or existing solution to TFS. Is there something else i need to install I don't see that option. Is there something i need to install to make this option available I have the team explore installed and can connect to TFS but still no add to SCC ...Show All
SQL Server error for sending(saving) data to database
Hi, I’m using VS2005 and I’m trying to link the C# windows form to MSSQL. I used BindingNavigator Control to read the data. After that I add sqlcommand and sqldataadapter to send the data to the database. My code is this sqlDataAdapter1.InsertCommand.CommandText = "INSERT INTO SUDENT (" + "S_ID, S_NAME, S_ADDRESS, S_PHONE" + ") VALUES ('" + S_IDComboBox.Text + "', '" + S_NAMETextBox.Text + "', '" + S_ADDRESSTextBox.Text + "', '" + S_PHONETextBox.Text + "')" ; sqlDataAdapter1.InsertCommand.ExecuteNonQuery(); It gave me this error “ NulleferenceException was Unhandled ”and “ O ...Show All
SQL Server Open DataReader Error
I am recieving the following error from one of my reports: An error has occurred during report processing. There is already an open DataReader associated with this Command which must be closed first. The report does not contain any expressions nor does it reference any external .NET code. ...Show All
Visual Studio Express Editions Database
Hi I need to connect to an SQL database that is on a remote server. How can i do this in vb 2005 express As shakalama stated VB Express ID Support for databases other than Access and SQL Express are not supported. As SQL Express is designed to be a local database only and remote connections are not supported out the box for this then Add New Datasource is only going to present you with Microsoft Access File or Microsoft SQL Server Database File (SQL Express). That said - you can write your code to access any database that is supported - so you could write code to access as SQL Server, Oracle Database, MySQL etc. But you are not going to get the IDE support from the designers and wizards. &n ...Show All
.NET Development GetHashCode and Equals once again
I do not see how GetHashCode() and Equals() can ever successfully be implemented given the guidelines. I am assuming that one of the guidelines, apart from the well-known one of two objects being equal ( Equals() ) returning the same hash code ( GetHashCode() ), is that GetHashCode can not change during the lifetime of an object. Given this assumption it appears to me that GetHashCode must either be implemented on a totally immutable class, or that it must only use immutable data members of a class. Since this is the case, the Equals() function must also depend on either a totally immutable class or only use immutable data members of a class. To me this need to rely only on immutable data in a class defeats the entire purpose of object eq ...Show All
Visual Studio Team System Suggestion: Selectively deploy objects
Hi, This is a feature request. I think it would be nice to be able to "switch off" an object from being included in the DBPro build. This way, you could include things in your project but that don't need to be deployed until a later date. I recognise tht this isn't as simple as just checking a boolean flag - there's the whole issue of checking dependancies and thus disabling those as well. Thoughts Comments -Jamie Hello Gert, I'm sorry, but I (and I think Jamie would agree) do not agree with your answer. That removing from build is possible was known before, the current state of VSTS4DBP (and as you are saying also the RTM) preclude the use of this method. Image a project of several hundred ...Show All
