Salvatore Di Fazio's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. XNA games on 360
From what I have read of the FAQ and reading some of the posts on the forum, it currently sounds like NO ONE can use XNA to make games for money on Xbox 360. Will this change with the Professional I understand Microsoft has mentioned picking up some games that will be created, but what if someone puts a lot of time into a good game and wants to sell it There's nothing stopping you from selling a good game that you put a lot of time into for the PC. And if your game does well for PC sales and is really a good game, then you definitely have a chance at being picked up by Microsoft to be released for the 360. Currently XNA is in beta. There is still much being discussed and the business model for the future ...Show All
Audio and Video Development Client display of Stream from Windows Media Encoder
Is there a means in Media Foundation to render from a stream over ip We are needing to display the stream created from windows media encoder without a large buffering delay. The delay needs to be at most 2-3 seconds. Using the media player control has a delay of up 15 seconds. Play with the setting inside the publishing point on the server. Limits, limit fast start bandwidth per player networking, enable buffering I think tweaking those 2 settings may help. Brian ...Show All
SQL Server Querying table2 with results from table1 and displaying data from both tables
I need help in writing a query. The query should get top 10 items and their values from current year and the values for the same items from previous year table. I was able to write the code for 1st part that gets values from 1st table but I don't know how to get the values from 2nd table. The 2 tables does not have any primary/foreign key relations. Both tables have same structure and same columns. I am attaching some images below to give more information. Image of results from my query. Image of how the final output should look like. The Store Procedure code is: ALTER Procedure [dbo].[free_customsHS4]( @TblName1 varchar(20), @TblType varchar(20), @District varchar(6), @Month varchar(3) ) AS Begin SET NOCO ...Show All
Visual Studio Registering new Project Type with VS2005
Hey all: I have created a new project type based on the IronPython project example in the Sept SDK, but I am unsure how to register the new project type with Visual Studio. I found this article in the MSDN docs http://msdn2.microsoft.com/en-us/library/3xa20z3f.aspx , but I am not clear if this is what I need to do, and if it is how to do it. I looked at all of the .rgs files for the Figures project and none of them looked like what the article showed. Is there a walk-through anywhere that I can follow Devin That topic describes registering a native-code project type. IronPython Deployment Sample shows how to create an installer that registers a managed-code project type like IronPython. ...Show All
SQL Server Query Windows - Multi-Line Results come back differently
Forgive me if this has already been asked -- to query this question is difficult. We have a varchar(3000) field that has the body of a message including non-printable characters. Sometimes we need to get a copy of this data in Management Studio. The problem is that we can only get the data with the CR-LF characters if we open the entire table (currently 2 million rows). If we run a query on the same column with a where clause the field can be copy/pasted out into a text editor but lacks the CR-LF characters. Is there a setting somewhere in the GUI to change this behavior My productivity will skyrocket if someone can help me with this. Many other developers have expressed the same frustration. TIA. Doug Odegaard (Missoula, MT ...Show All
Windows Forms working with MySQL data bases from windows ODBC connection
Here's the problem: I've installed the mysql odbc connect (v3.51.12) and I've created a data source connection ...added a DataSource to my project binded the data with a dataGridView and all worked well. My dataGridView fills up with the data from my db. All fine until this point. Now I want to be able to save the changes I make to the data in my dataGridView and update(insert) the data in my data base. How can I commit those changes Hi, You have to call the Update method of the table adapter object that was automatically added to your form with the generated dataset table to save as parameter: fooTableAdapter.Update(barDataset.BazTable) Charles ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creating projectiles, need help with list.
I am trying to make projectiles that my object can shoot, but am having trouble adding new projectiles to my List<projectile> object. My projectile code (so far) looks like this: public class projectile { float rotation; float rotationAlpha; Vector3 position; Vector3 velocity; float life = 0f; public void Update() { position += velocity * 1000f; life += .1f; } public projectile(Vector3 position, Vector3 velocity, float rotation, float rotationAlpha) { this.position = position; this.velocity = velocity; this.rotation = rotation; this.rotationAlpha = rotationAlpha; this.life = 0f; } public void Create(Vector3 position, Vector3 velocity, float ...Show All
.NET Development Error when trying to BIND to a USERCONTROL inside of a FORMVIEW
I have a usercontrol that consists of a dropdownlist that is databound to a sqldatasource. It gets populated with a staff list. I've setup properties that can be set for the usercontrol when it's accessed from an aspx page. I then have an aspx page that has a formview on it that is databound to a sqldatasource. On the edititemtemplate I bind to the dropdownlist usercontrol's SelectedValue property that I setup. The bind works, but it seems only works for writing to the control. When I bring up the edit item template, it shows the properly selected value from the dropdownlist, but when I change that value and then hit save, the item I changed to on the usercontrol dropdownlist isn't grabbed and sent back to my server it seems. ...Show All
SQL Server Hierachy drill down stops at point
I have the following scenario I have a Staff Parent child hierarchy and that links down to a division. A staf member is in charge of a division but we want the managers to drill down into the children and see which divisions they are in charge of etc. So here is what the data looks like Staff Lev1 | Staff Lev2 | Staff Lev3 | Staff Lev4 | Division | Value ------------|------- -------|--------------|-- ------------|----------- |--------- A | B | C | D | DivA | 1000 A | E | | DivB | 2000 the problem is, with drilling down though the staff hierarchy I can never see DivB, I can see the value associated to the Staff member E but when I try drill down it j ...Show All
Windows Search Technologies How to index .xaml files for content
Hi, How can I enable the xml filter or even the plain text filter for .xaml files I have WDS beta installed. I want to set "file contents and properties" index setting for .xaml files. I tried to change the setting for .xaml files in the advanced settings area but my change does not persist. When I close the advanced settings dialog box the setting is not changed. Ahmed, We haven't had any success reproducing this problem at Microsoft. Would you be willing to work with us to schedule a live meeting where we can look directly at your PC If so, please contact me at a-paulny@microsoft.com . Hopefully we'll be able to find a solution to your problem. Thanks for your continued feedback. ...Show All
Visual C++ Mixed mode C++/CLI idiom
In my C++/CLI components, for each component I create a ref CLR class and a C++ class, the latter which does most of the internal processing and interfaces to the C++ standard library and 3rd party libraries such as Boost. I do this so I can use C++ libraries in my CLR component, especially when the .Net framework does not offer all the facilities which 3rd party C++ libraries have. In order to allow the C++ class to access the properties, methods, and events of the corresponding CLR class I have a pointer to the C++ class as a private member of my CLR class and dynamically create an object of the C++ class, passing a pointer ( ^ ) to the CLR object to the constructor of the C++ class, and assign the resulting C++ object to the pointer in ...Show All
SQL Server Why the node_distribution.PROBABILITY greater than 1 in Clustering algorithm?
Hi, all experts here, Thank you very much for your kind attention. I am having a question about the node_distribution.PRABABILITY . Some of the attribute values though have a small number of support for the specific node, but why it has a big node_distribution.probability even greater than 1 How can the node_distribution.PROBABILITY be greater than 1 How dose SQL Server 2005 data mining engine calculate the node_distribution.PRPBABILITY for its Clustering algorithm Really confused and need guidance for that. Thank you very much for your help. With best regards, Yours sincerely, Support can be non-integral because cases have a probabilistic membership to a cluster. I believe the other issues are related to the dim ...Show All
SQL Server Function that returns table
Hello, Is there any way to write a function where I can write some code and at the end of the code return a entire table as parameter Yes, but a table with one column. I want to return a table that has 0 or more columns (depends on the application). In your example the function returns a table with only one column (iNewSortOrder). Now I have: CREATE PROCEDURE dbo.GetConfiguration ( @type varchar(MAX) ) AS IF @type = 'Tank' SELECT * FROM Tank(); That stored procedure returns a table. Now I want to use this table in a Function... eg: CREATE FUNCTION dbo.Configuration ( @type varchar(max) ) RETURNS TABLE AS RETURN SELECT * FROM G ...Show All
Visual Studio Team System Solution File, file format changed
It looks like the solution file format has changed from VS 2005 to VS 2005 Team Edition. This is despite that the format version is 9.00 in both versions. This is a rather big problem in our company because we're several developers working on the same solution. The solution file is under source control and changes ought to be merged between branches. This is, however, not feasible with this format change and a solution with 45 projects. Of course the best solution would be to use the same VS version. But what can we do until all have upgraded I contacted someone on our Web Project team and discovered that this is a known issue and should be resolved in the Orcas release of Visual Studio. My contact ...Show All
Windows Forms Raising events in inheritance forms
I have two forms that inherit one from another. In both of them I have implemented the Form_load event (with the same method name) and on the ancestor form I declared the method as virtual and in the child form as override. The thing is the event raise twice in the child form (in the examle i will see ( "form3" twice) . Why's that See code for example – public partial class Form3 : Form2 { public Form3 () { InitializeComponent(); } public override void Form_Load ( ...Show All
