rottengeek's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Finding frames per second?
I've modified the starting program you create in the XNA help file to create 2500 sprites in random areas and bounce them all around... What I'd like to find out is how many frames per second my PC is getting just to see how many sprites I can have on the screen at what framerate. How would I go about finding my framerate and displaying it onscreen Help is much appreciated. partial class Game1 :Microsoft.Xna.Framework.Game { private int totalTime = 0; private int frameCount = 0; private int fps = 0; public Game1() { InitializeComponent(); } protected override void Update() { // Let the GameComponents update UpdateComponents(); } protected override void Draw() { ...Show All
Connected Services Framework How to Create a CSF Service from Scratch?
Who can give me an example about how to create a CSF Service from Scratch including the creation of configuration file and then guide me to run the sample Thanks very much. Yonglun, Please refer to the Developer's Guide documentation which can be downloaded from MSDN site at http://msdn.microsoft.com/csf . The samples and documenation for Developer Guide can be found at the following link: http://www.microsoft.com/downloads/details.aspx FamilyId=A72AC7CF-1E0E-4EA5-A248-BFC5106C1231&displaylang=en The title is CSF SERVER 3.0\DOCUMENTATION\DEVELOPER'S GUIDE\Microsoft Connected Services Framework 3.0 Development SDK.exe thanks, Raymond ...Show All
Visual Studio Team System Process Template Editor - System.Exception Error
A co-worker used this tool to modify a few of our work item templates for a particular project in Team Foundation. I am now attempting to "Open from Server" any one of the work item templates for the project and I am getting a "There was a problem opening up the work item type definition" System.Exception error. The co-worker does not have the project or templates open in any way. Does anyone have details on this error Yogita, Yes, I can create new work items and I will try to create a new project based on that template. If I am successful I will contact Imaginet to report the issue and give you folks any feedback as I receive it. Thanks for your assistance on this. Jenni ...Show All
SQL Server Service Pack
How would one determine the SP for Reporting Services. Is it different from the SP of SQL Server itselves. This is for 2005 Does this mean the we can have instances where the SP levels are different for SQL Server and Reporting services I thought when a SP is applied on a server it is applied to all the services ...Show All
Visual Basic Receiving strings from Serial Port
Dear reader, I want to read a string from a serial port. I found the sample code in Help, to do this, with the following code: Using com1 as IO.Ports.SerialPort = My.Computer.Ports.OpenSerialPort("COM1") do Dim Incoming as String = com1.Readline() If Incoming is NOthing then exit do Else returnStr &+ Incoming & vbCrLf end if loop end using The problem is that if the return string does not end with LineFeed, the com1.ReadLine command does not return to the application, and as a result doesn not return any value to Incoming, to check it contents. The application give the impression that it is just hanging, untill I stop the application. Also how does the Read ...Show All
Software Development for Windows Vista Transactions - ensuring consistency between WF and MSMQ
Apologies in advance this might be quite a complex one! I should say at the outset that I don't want someone to write my solution for me, just am trying to understand a bit more about how to achieve transactionality in WF. I'm currently trying to pilot an STP engine using Workflow Foundation to prove its suitability. Everything in the engine is driven using transactional MSMQ queues. It's essential that no information is lost, and that the workflows remain in a consistent state with the contents of the queue. These are the scenarios I'm trying to tackle at the moment: 1. A message arrives on a queue and triggers the creation of a new workflow. 2. A message arrives on a queue and is passed into a waiting workflow. 3. A workflow ...Show All
SQL Server Incremental updates into a new partition
My requirement is to enable full reporting on the current days data and allow ad hoc analysis on all historical data, with the most recent being in smaller partitions because this is the data most likely to be queried. I get a daily feed of the data which I want to import. To do this I am thinking of various partitioning strategies. I am thinking along the lines of the following 1 partition for the current day 1 partition for the current year to date. 1 partition for archived data for 10 years All these partitions would be rolling partitions so that at the beginning of the day, the previous days partition would be merged into the current year partition and at the end of the year, the current year partition would be merged ...Show All
SQL Server ForEach Loop - Getting MD5 Hash of File
Hi Guys, I'm importing logs from multiple servers from CSV format into a table. Inside the loop the 1st thing I do is insert the FileName into a table to ensure that I never process the same file twice. The problem is that multiple servers produce the same filename, so if server A produces Log20061110.csv - when I import the log from server B ( also called Log20061110.csv ) into the table, it of course runs into a problem. If there was some way for me to get an MD5 Hash of the file as a variable that would be solve my problem. Does anyone know how I could accomplish that Thanks Warrick Warrick You could try adding a script task that makes use of MD5CryptoServiceProvider(), or maybe just store the ServerName along with the fil ...Show All
SQL Server cannot create jobs on x64
Hi all, Just installed sql 2005 x64 (DB Server + Client Tools incl. management tools) and encountered the following problems: 1) Could not create jobs Getting Error: Unable to cast object of type 'Microsoft.SqlServer.Management.Smo.SimpleObjectKey' to type 'Microsoft.SqlServer.Management.Smo.Agent. JobObjectKey '. (Microsoft.SqlServer.Smo) Tried several different job types always same result Installing SP1 does not help Any help is highly appreciated TIA Dan Please post this to the " SQL Server Tools General " forum. Thanks, Peter Saddow ...Show All
Visual Basic Upgrade Issue
Hello I am updating a VB 6.0 program to .Net using Visual Basic 2005 Express Edition. I have the program running on one computer but when I try to move it to another computer (by copying the /bin directory, I have the same problem using publish) the program crashes. The program seems to crash when it tries to load the second form which uses a grid (used to be Grid32 and is now MSGrid). Below is the error dialog I get (long). What is JIT debugging Help! Thanks See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for detail ...Show All
Software Development for Windows Vista Security problem accesing an exe from web
Hi all, I want to invoke an exe from web.For this I had tried various ways, by creating strong names,adding it to the assembly cache,and changing the security levels in the intranet zone etc.,It runs only on few machines namely 2-3 but it is not working properly.Can any one give suggestion for me Thanx in Advance. ...Show All
Visual C++ Warning if variablename in function differs from implementation
Hi I have searched in the compiler warning list, msdn and a lot of other forums, but i couldn't find any warning for this. Is there such warning, or can i get it in another way It would be nice if the compiler raises a warning for this, just to keep my code clean. example: headerfile: class myClass { int myFunction(int a, int b); } cpp file: int myClass::myFunction(int c, int d) { return c+d; } I'm on the fence there, but I lean toward the latter as well -- I guess I omit them out of habit more than for any specific reason. Naturally, all of us always comment our interface code so thoroughly that no further information needs to be communicated to the user/maintainer through our variable ...Show All
Visual Studio Express Editions Debbuger Failing to initiate
I have recently downloaded the C# Express since I heard it was free and I've always wanted to learn this language, but I can't seem to run my projects because the debbuger always fails to start with an error. Since I am Brazilian, the error is in Portuguese, but in English it should sound on the lines of "Invalid Linker Identifier". I have been searching all over the net and msdn help on how to solve this and I've been totally unsuccessful on it. I am pretty sure it is some simple misconfiguration o' mine, but I haven't the least idea of where to start looking for it. Any help would be appreciated. Thanks in advance. Hi Leahn, Does this problem happen with all the project types Say you have tried ...Show All
Windows Forms How to add 'X' to Tabs?
Hi, I have a tab-page control and I will be adding many tabs.So when I select a new tab, I want to see 'X' mark(button) similar to Internet Explorer 7.0 and Mozilla. Thanks, nhd OwnerDraw the Tabs to paint a Close button on them. The TabControls Padding property may help to make sure there is enough room for the button. Modify the "Associate a ContextMenu with the TabItem headers of a Tabcontrol" method on my site to close the tab if the cursor is within the tabs "Close button" instead of showing a ContextMenu. http://www.dotnetrix.co.uk/tabcontrols.html ...Show All
Visual Studio Express Editions Using grips to move
Ok I've been trying to do this for like 3 weeks now. I see that there are a bunch of things such as the toolstrip and statusbars that have grips on them. The only problem is that they don't do anything. I can't seem to figure out how to access the grips so that a user could actually USE them to move the object around. I've developed the code for using them.. Now I just have to figure out how to use the grips.. Isn't there like a ToolStripGrip.Click or something It's cool. I think it turned out to be a lot easier to just draw my own grips and use them along with a code similar to the one you posted ...Show All
