Alessandro Moacyr Duarte's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Counting Pollys in Game
I would like to display the total number of poly's currently in the viewport and I would like to display the total number of poly's in the scene. I've been looking through the docs and cannot find any obvious way to do this. Can anyone point me in the right direction Thanks. If you install the full DirectX SDK, you can also use the PIX for Windows tool to capture this kind of information. Point it at your compiled executable, select the "Statistics for each frame" option, click the "HUD" checkbox, then run your game. This will overlay draw call statistics on the game screen. You can press F12 to toggle which data is displayed. This mode doesn't actually seem to show the ...Show All
.NET Development Please help - XML check and validation
Hi, I had generated the xml file and it looks like this < xml version="1.0" standalone="no" > <!DOCTYPE Book SYSTEM "Book.dtd"> <!--This file contains the book information--> <Book> <Science> <Code>1234</Code> <Title>Discovery in Science</Title> <UserCreated>John</UserCreated> <DateCreated>1/26/2007 2:11:11 PM</DateCreated> </Science> <Science> <Code>5678</Code> <Title>Discovery in Science 2</Title> <UserCreated>John</UserCreated> <DateCreated>1/26/2007 2:11:11 PM</DateCreated> </Science> </Book> I ...Show All
Visual Studio 2008 (Pre-release) WCF client receives System.ServiceModel.Channels.ServiceChannel faulted error after some IDLE time
Hi WCF Gurus, Please throw some light for me to debug this issue. I have one WCF client which is calling the methods on the service, the method returns correctly and every thing works, but after some inactivity (idle time on the channel) and if tried to call the same method again i am getting the following error. The communication object , System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the faulted state. If i restart the client application "with out restarting the service" the same method call works and again after some inactivity time (idle time on the channel) i again hit the same error. I am thinking it's some thing to do with the time out values on the client channel, but i ...Show All
Visual Studio 2008 (Pre-release) maxClockSkew on wsHttpBinding
I have a service using a wsHttpBinding, looks like this: < bindings > < wsHttpBinding > < binding name = " MyBinding " > < security mode = " TransportWithMessageCredential " > < message clientCredentialType = " UserName " /> </ security > </ binding > </ wsHttpBinding > </ bindings > Then I have a couple of services using this binding. Works perfect! BUT! I need to accept that client clocks differ with more then 5 minutes. I have seen how this can be changed on custom bindings, but it doesn't seem to work with my wsHttpBinding. So, is there any way for me to change this parameter I would prefer if it was possible to only set it on ...Show All
Visual Studio 2008 (Pre-release) Markup Extension for Booleans
Hi, Is there a markup extension that allows me to insert boolean values into a property value Something like: <Class Property="{x:Static true}"/> Thanks, Kent I don't understand why you need Boolean markup extension, because the xaml deserializer can directly understand it whithout using markup extension, actually the TypeConverter can directly convert the string representing the boolean value to its corresponding boolean value, so the following syntax is the right way to specify boolean value in xaml: <cc:MyCustomControl BooleanProperty="True"/> Sheva ...Show All
Microsoft ISV Community Center Forums error creating Excel application object
Hello World, I am using VBA from an application call MicroStation to open a document in Excel and am having problems creating the Excel Application object. The line: Set xlApp = GetObject(, "Excel.Application") results in the message Run-time Error '429': ActiveX component can't create object. The documentation indicates a number of possible problems, but none of them seem likely causes. Excel is installed on this machine with a valid license and I'm able to run it. It's registered, and isn't already opened. Any ideas what I'm missing Thanks, Stephanie Hi, The code example you posted is correct and works for me. But I can generate the error if I mis-spell the class descriptio ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What's up with deleting posts mech commander downloads?
I just don't get it. My posts have been removed, I mean any <fill in the blank> could just google for the keywords and get a bunch of legit game sites that host the shared source code (since it was released for free) and yet on these forums it's all hush hush untill MS fixes the link What gives MC2 is not intended to showcase or be related to XNA Game Studio Express functionality (it was previously released as a sample for XNA Build, a different XNA technology represented on a different forum), so it isn't relevant to this particular XNA Game Studio Express forum. Amy ...Show All
Visual C++ how do that?
how I can arrive to memmory adress and how I rechange It by c langaue I know that not the true place to write that but I didn't find else that , please help!!! mshmhm wrote: about the language I leave you said fact I speak francis and arabic just and english little and because francis not like english realy so I little in it If french is your mother tongue, you should repost (and elaborate on your troubles) at this forum's french counterpart; http://forums.microsoft.com/MSDN-FR/ShowForum.aspx ForumID=886&SiteID=12 . ...Show All
Smart Device Development Doing XML parsing in Windows Mobile .NET platform
Hi there I am new to the Windows Mobile 5.0 .NET platform(and .NET in general), and I am trying to do XML parsing. I found that some of the existing examples of using the "using namespace System.Xml" directive which doesn't compile for the CE .NET platform(there was an article on this forum about that) I found another web page on using XML possibly in CE .NET at http://www.codeproject.com/soap/ce_xml.asp df=100&forumid=15723&exp=0&select=565785 but am wondering if there is some way to use the XmlTextReader somehow intead , since it looks the easiest to use. Please help, thanks IS Hi there Well, here are screenshots of the problems I have encountered. So I am in the Refer ...Show All
.NET Development dATSET XML
HOW DO you save a datra set to a existing xml file . I do not want to over write the file Hi, From your question, there might be 2 possibilities: 1. You may have a XML file that has the same structure as the dataset, and you would like to append the data on your dataset to that XML file. In this case, the immediate thing to do would be read the xml file to a temporary dataset and append the data to that and than save. 2. The XML file you have is not a part of the dataset you would like to save, in that case, I would use XmlReader/XmlWriter couple to seek to the correct position and write the dataset to the correct position. This will also work for case 1. The reason why you just can't append to ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Making Properties editable in the Properties Window
Hello everyone, I created a new GameComponent which has a XNA.Framework.Rectangle as a property. I added one of these objects to my Game instance, but can't edit the Rectangle property (it is grayed out). How can I write a property (or class) in a way that would make it editable in the Property Window One solution I found was to make a number of Int properties that redirect to be member variables of the Rectangle. This is a bit clunky, though. I would like to be able to expand and edit the Rectangle property instead. It is not specifically Rectangle that I am interested in, as I would also like to make classes that I have created be able to be edited as properties as well. Does anyone know how I can do this Are there any tutorials out the ...Show All
Windows Forms how to give color to background for MesseagBox
Visual Studio 2008 (Pre-release) What is it in VB
I am struggling to figure out which dependency properties that can be used in .BeginAnimation in VB There seems to be a real difference between C# and VB in this respect. See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1152919&SiteID=1 Not sure why VB is different and there does not seem to be any list of .BeginAnimation dependacy properties I can use. The documentation is extremely C# biased and of near no help. :-( Like why does C# use Image.LeftProperty (most logical I would say) and VB uses Canvas.LeftProperty. What does the canvas have to do with it and why does the documentation not mention anything about the C# Image.LeftProperty. According to the documentation Image does NOT have a LeftProperty property. ...Show All
Windows Forms Trouble handling keypresses.
Hi. I'm having a great deal of trouble handling keypresses. On my Form I have a mixture of standard, overridden and custom controls. I need to direct keypresses and look for hotkeys and stuff, and I also need to explicitly handle down and up events separately. I'm really stuck with this! I want to capture all keys including arrows and tab, and this is proving to be a major sticking point. By implementing event handlers on the form I can capture most events, but not the arrow keys since these are 'control' keys. When I try to do things like override IsInputKey or ProcessDialogKey I get no result. This seems to have something to do with either the use of custom controls, or my Tabcontrol control which seems to hog the arrow key events no ...Show All
Visual Studio Express Editions Totaling a table
I want to be able to have the program calculate the total of a column of values in a table. How would I go about doing this I played around with this for a while, and cannot see a way to do this... Any help would be greatly appreciated. Thanks, -Matt Thank you. O.K. Just to make sure I got this right. I can put in the TotalTextBox and then double click on this control and enter in: SELECT SUM(Amount) AS Total FROM Database I'm sorry if it's taking me a while to understand this, but I can't seem to figure this out. Thanks, -Matt ...Show All
