champa's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. A VERY simple question. I'm obviously missing something -er- obvious
Ok firstly, please forgive what MUST be a simple simple question... I've done the From DOS/BASIC->QBasic->VB3----->VB6 as well as some delphi, C, C++, lost of PHP a bit of ASP, some MySQL and some MSSQL, So I didn't think VS2005 would be a real problem (and after a month I'm starting to get my head around it), however, I devided to make a program to start learning somethign 3D-ish. Now I tend to prefer VB over VC as I'm more familiar with it (Yeah, I know Learn VC well is on my to do list) I started reading an article here: http://msdn.microsoft.com/coding4fun/gamedevelopment/beginning/default.aspx and am stuck on the first page. Having Downloaded the August DirectX redist, the August SDK and the October SDK, I can't work out how ...Show All
SQL Server how to excluded the intersection of 2 dimensions ?
Hi, I have the following simplified problem. I have a fact table and two dimension tables, colors and weekdays. I can make a query to select all except red and all except on monday but I like to make a query to select all except red mondays They query tool doesn't give you really the options. Any suggestions Constantijn Enders You can do it in MDX, but only a few query tools will allow you to construct queries like this. I think vendors tend to refer to this capability as 'asymmetic sets'; I can only think of one tool I've seen recently that did this (Intelligencia - http://www.it-workplace.co.uk/i4wfeatures.aspx ) but I'm sure that if you hunt around there will be others. Does any ...Show All
Visual Basic How do I show a confirmation box instead of a MessageBox?
I am trying to find a relatively simple way of showing a MessageBox with a "Yes" and "No"(Confirmation box). Can anyone help me please Create your own dialog form and place the "Yes" and "No" button there and set the DialogResult property of the button accordingly. and use this form to work as a message box. and show it calling the ShowDialog Method. ...Show All
Visual Studio Team System Get Latest Changeset for a specific Team Project
Hello, I am looking for a way to get the lastest ChangeSet for a specific project. Reason being, we use continuous integration builds, and I would like to send an email to user who checked in the code that kicked off the build when that build fails. Currently, I have a solutions that gets the latest ChangeSetID for the entire server. I thought it got the latest ChangeSet per project but that is not the case. What I have now does work b/c currently we only have a small number of our developments using TFS. Below is my current code to get the name of the person who kicked off the build. This work only if no one esle checks in to any of the Team projects we have during the minute or so in between when the developer checks in and the build ...Show All
Visual Studio 2008 (Pre-release) propagate an exception of a concrete type in Indigo
Hello everyone from Spain, I am trying to propagate an exception, whose type is ExcepcionConcurrencia (it is Spanish). Well, the issue is that it doesn't propagate the exception of the type that I have defined, it propagates ServiceModel.FaultException. I need my type because I propagate a DataSet in it. I have tried using the ServiceKnownType Tag but it doesn't work. How could I achieve it Thanks in regards Hi, You need to annotate your ServiceOperation with a FaultContract. Here are the steps: By the way, OperationContract's have to be two-way for SOAP fault to be returned. //1.Define a DataContract for your error type [ DataContract ] public class MyError { [ DataMember ] public D ...Show All
Visual C# Unable to run application on different machine.
Hi. My application is working fine on my machine when i publish my project and try to install it on different machine.. no error in installation but the application is unable to run. gives the error "SMSChat App has encountered a problem and needs to close. We are sorry for the inconvenience." How should I debug this ... i have used media player dll in my project.. no other references added. frame work 2.0 if you need anyother detail pls tell me ... THanks, Erphan Rajput. Sounds like your app is dying on an unhandled SEH exception, like an Access Violation. .NET code rarely if ever generates such exceptions so the media player is definitely suspect. M ...Show All
Visual Studio Team System How to creat an Unassigned user for the AssignedTo feild?
How can I customize the template so I can have an Unassigned option in the Assigned To dropdown The VALIDUSER key will restrict the values to users in that group, so you can try doing the below instead to use LISTITEM: <STATE value="Created"> <FIELDS> <FIELD refname="System.AssignedTo"> <DEFAULT from="currentuser" /> <ALLOWEDVALUES expanditems="true" filteritems="excludegroups"> < LISTITEM value="[Project]\Business Analysts" /> <LISTITEM value="Unassigned" /> </ALLOWEDVALUES> </FIELD> </FIELDS> </STATE ...Show All
Visual Studio 2008 (Pre-release) ScrollViewer.ScrollChangedEvent issue
I added the following code, the event handler gets called once when the window opens, but when I scroll the listview, it scrolls but my handler is not called, Any Idea why it is not called when I scroll void Window1_Loaded( object sender, RoutedEventArgs e) { list1.AddHandler( ScrollViewer .ScrollChangedEvent, new ScrollChangedEventHandler (sv_ScrollChanged)); ... } Thanks ...Show All
Visual Studio Team System DataGenertionPlans
Hi, I imported the NorthWindSchema into a SQL Server 2005 database project. Then I created a datagenerationplan and kept all the defaults. I setup my Project Properties->Build>Target NorthWindOnline and connection to SQL Serve Express. When I go into the properties window of the DGP and try to change the Build Action from "Not in Build" to "Build" I get the following error: "Unable to find valid scheam object identifier in the file. Check the syntax of the DDL statement or make sure the file is not empty." Any thougths on what I might be doing wrong Thank you. Randy You've hit a bug in the product, which I'll log immediately. The 'build' option should not be available for the .dg ...Show All
SQL Server Date query problem
Why there’s a problem with the folloe select statement: SELECT * FROM table1 WHERE ISNULL(DATE_FIELD) DATE_FIELD is a datetime field of the table table1. There’s an error that this function need 2 arguments, but I find in th help that is only one of them. How can I do that hi, ISNULL(a, b) is a function to replace "a" with "b" in case of "a" being NULL.. it's equivalent to CASE WHEN col_A IS NULL THEN b END operation.. what you are looking for is the .... WHERE DATE_FIELD IS NULL .... comparison... http://msdn2.microsoft.com/en-us/library/ms191270.aspx regards ...Show All
SQL Server Special Characters in a Dropdown List
I have a web form that needs to be bilingual. It contains several dropdown lists. The "text" and "value" for each item in the dropdown list is retrieved from a database. The logic reads the database and then populates the various dropdowns with logic such as: dim newItem as new ListItem(textString, valueString) theDropDown.items.add(newItem) The problem that I am having occurs when the textString needs to contains special characters such as accented vowels or an "n" with a tilde. I have tried populating the database with HTML-formatted strings such as "Avión", hoping that this would display "Avion" with an accute accent over the "o". Unfortunately it displays & ...Show All
Visual Studio 2008 (Pre-release) Dlinq and Gridview
Hello, I was wondering if anyone has any success trying to bind an object datasource that uses the underlying DataContext classes to a GridView. I am particularly having problems with an update. I have a class called MenuItem which was generated using SqlMetal. I have a list of object instances of this class bound to a GridView. The ObjectDataSource requires that the UpdateMethod take a parameter of a specific type if the DataObjectTypeName property is specified or a set of updated parameters. I have used the former implementation and specified the type MenuItem for the DataObjectTypeName property. I have created another class which delegates to the SqlMetal generated DataContext class on an update. This class implements a function w ...Show All
Visual Basic help please on print dialog
how on the push of a button do i bring up a pring dialog for pinting the contents of a text box. try this....on my app worck's: Private Sub menu_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles menu.Click PrintDialog1 = New PrintDialog With PageSetupDialog1 .PageSettings = PrintDocument1.DefaultPageSettings End With Try If PageSetupDialog1.ShowDialog = DialogResult.OK Then PrintDocument1.DefaultPageSettings = PageSetupDialog1.PageSettings End If 'PrintDocument1.DocumentName = PrintDialog1.Document = PrintDocument1 If PrintDialog1.ShowDialog = DialogResult.OK Then PrintDocument1.Print() End If Catch es As ...Show All
.NET Development How to serialize back a ConfigurationElement object?
Hello In the System.Configuration namespace you have several classes (like ConfigurationElement) which help you to deserialize custom configuration sections into objects. Now I have an object from a class which derives from ConfigurationElement and I'd like to serialize it back into its original xml state because I'd like to write it to a trace output (XmlWriterTraceListener). I tried to use the XmlSerializer to serialize the object but this did not work. I got the following error: You must implement a default accessor on "MyProperty" because it inherits from ICollection. Any other ideas how to achieve this The framework already has a builtin mechanism to deserialize the custom config section. Maybe it's somehow possi ...Show All
Visual Studio Express Editions syntax code
to those of you who are familiar with the coding, could you write a simple code example so we can understand,give us simple syntax examples please of; deleete command accept changes command that way those of us who are beginners can read the syntax and get a better view of how it works. indeed but it has been explained on what things are doing at the time and how to fix it. It's hard to just explain where the problem is if you have any errors and not explaining in depth on what code you have, where the errors are coming from etc... What exactly, in this case, do you need help with I understand for this thread you are wanting to know how to use a Delete command correct I have supplied cod ...Show All
