hye_heena's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. SpriteBatch Vs Sprite : 0 - 1
I have created my own TiledLayer class, converting my old code. I have noticed that the new SpriteBatch class is more slow than old Sprite class. Someone Knows why I use 16 x 16 tile in a 640x480 screen. With new class the render is very slow, while with the old one I have also to reduce the animations' speed. You should put all your tiles in the same texture, and draw the entire tile layer in one Draw call, using the Rectangle parameter to select each tile. This will be many times faster than either doing SpriteBatch.Draw for each sprite, or the old MDX sprite thingy. ...Show All
Visual Studio Express Editions How do i create a new Type?
i need to create a type Color3(byte r, byte g, byte b). so that i can do "Color3 visgroupColor;". yet i'm finding it a struggle to get any info on how to go about doing this. i also need to do Vec2, Vec3, Vec4. so if i can do Color3. the others will no doubt be done the same way. Try: visgroupColor = Color.FromArgb(binReader.ReadInt32()); You'd have to write the color with Color.ToArgb()... ...Show All
Visual Studio Express Editions Opening other forms
I have two forms [Form 1 and Form 2], I was wondering how can I have form 1 open form2. I tried looking it up in the How Do I section but couldn't find anything. I sure do like pizza! Form2 theSecondForm = new Form2(); theSecondForm.Show(); //or theSecondForm.ShowDialog(); - advantage being with this is that the user wont be able to access the first/caller form until they close this form ...Show All
Visual Studio Loading symbols very slow while debugging
Good day, I have an ASP.NET application that isn't too big, 10 pages and a moderate amount of code behind. When I run the app in debug mode it takes over a minute to load the symbols, about 75 seconds consistently, which seems excessive to me. This of course leads to the issue of the browser doesn't open until the symbols are done. Here are some particulars concerning my environment. The machine is a P4 2.8 with plenty of resources. I haven't had any issues with it recently. I recently installed SP1 for VS2005. I also have VS 2003 on the same machine and it runs fine and takes about one second to load all of the symbols. The debugging is only local on the one machine. When I start the app without debugging (CTRL-F5) it starts up in abou ...Show All
.NET Development One-Way IM
Hey I was wondering how I would go about making a program that would send text or numbers to my computer from another computer. This is basically like an IM program, but one way. Any help Um, I just want to recieve a text file with the information entered into textboxes. Sorry if I am confusing anyone... Can it just be sent through email Directly connect to my computer I really don't know, anything that would work is fine. ...Show All
Visual Studio 2008 (Pre-release) How to desing data manipulation services?
My question is not a new one. This problem appeared long ago about web services. Assume, that I have a WCF service to manipulate some data. I have the data layer as well, and a business logic layer with huge number of business objects in separated assembly. The business objects know some logic, so they have lot of methods impelmented about validation, manipulation and so on. I want to share these business objects with the clients allowing them to validate user input. I use the WCF service as a facade layer therefore the interface methods has the shared business objects as parameters or return values. I can use the business objects both at server and client side by adding a reference. When I want the client proxy to be generated the svcuti ...Show All
SQL Server Date field in exported excel file
Date field in exported excel file. I export a table to excel file by using DTS. It seems the date field show as ###### when I open the excel file. If I expend the column I see the date. Is there any way I export in away that this date field will not show up as #####. Very Good Q just like if there is Nvarchar Data type with length 4000, why not it auto expend when i see it with select query in SQL Continue.... ...Show All
SQL Server How to improve the query performance for my reports?
Hi, all here, Thank you very much for your kind attention. I am having a problem with the performance of my reports. The data for my reports is retrieved from two large transaction joined tables thus resulting in the poor qeury performance for my reports. How can I effectively improve the query performance It is that I'd better to create a data view for the report data to retrive the data for the reports based on the data view Or what is the best pratice for it Thanks a lot in advance for any guidance and help. With best regards, Yours sincerely, This is the same as tuning any SQL. Drop the SQL from your dataset into SQL Server Management Studio in a New Query and check the Include Actual Execution Plan. Run the query ...Show All
Software Development for Windows Vista HandleExternalEvent activity in Parallel
I have a few activities in parallel that listen for the same event. With the event arguments I will see which one of the parallel activities to execute. It seems though that the event is only fired in the first activity and not in all the activities waiting for this event to fire. Yes, but in the problem statement, he indicated that he was going to choose which branch of the parallel to execute based on the event arguments; leading me to believe he does not want to run both branches. " With the event arguments I will see which one of the parallel activities to execute." Matt ...Show All
Visual Studio Team System Open From Source Control doesn't get Solution Items?
Almost every project we have has a post-build event that calls out to a batch (.bat) file. Because the batch files are obviously needed to build the solution without errors (post-build event failed), we have added them as Solution Items. In VS2003, this meant if I did a GLV (Get Latest Version) on the solution, I would get the batch files. This, however, doesn't seem to be true for VS2005. Neither a GLV on the solution or "Open From Source Control" gets the solution items. This is causing our Team Builds to fail. Any ideas I am unable to reproduce this behavior with TFS SP1. In my case I had two batch files that were located in the same directory as the .sln. I add them as solution items, added ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Scaling down a sprite seems to crop?
Here's what I've got: One sprite sheet texture (512x512) with an assortment of sprites on it. My sprites are generally 64x64 pixels wide and padded between to prevent filtering artifacts. So, the first sprite starts at (4, 4) and is 64x64 in size. ...Show All
Visual Studio 2008 (Pre-release) Explaination of different timeout types
When I configure a binding I can overwrite several default timeout settings. For example there are: OpenTimeout CloseTimeout SendTimeout ReceiveTimeout InactivityTimeout ... What exactly does each timeout stand for The WCF documentation says "...timeout for an open operation to complete..." for the OpenTimeout for example - but what does this mean exactly Maybe some of you can bring some light in this Especially I want to know, which timeout to configure to achieve the following: A client tries to connect to a server service, but the server is not running at the moment - the caller should recognize this immediately. Which timeout do I have to minimize Regards Bastian The timeout indicated by ...Show All
Windows Forms Problems modifying context menu on the fly
I have been trying to modify a context menu depending upon the view a user choose in a window. I have added a context menu in the design view and added 3 menu items. On load I set one of these items to be either invisible or unenabled (I have tried both) however in the 1st view I still get all 3 appearing. I can set this to unenabled/invisible in the design view and it works fine. As I cycle through the views (choosing the view based on the choice made on the context menu) I try to set various other items to unenabled/invisible. This does work however it does not set the correct one to unenabled/invisible, and seems to choose the one that it sets invisible based upon the 1st choice you make in the context menu. For example I have my contex ...Show All
Windows Forms Return a value from windows Form
Can anyone help me to return values from form at any time or when disposing. Why don't you just set the value directly like - Form1.Label1.Text = Me.TextBox1.Text Regards Kapalic ...Show All
Visual Basic How do I attach an event handler ?
Hi, I'd like to know how to attach an event handler in VB, There is a C# sample code in this URL that I want to convert to VB (Figure 8) http://msdn.microsoft.com/msdnmag/issues/06/01/speechinWindowsVista/default.aspx loc=&fig=true#fig8 I have succesfully converted every lines to VB except those : //Attach an event handler pizzaGrammar.SpeechRecognized += new EventHandler<RecognitionEventArgs>( PizzaGrammar_SpeechRecognized); Every attempt I try to fix it, I'm told that I need to use AddressOf, but when I use it, It must have two arguments, and I'm unable to set the last. pizzaGrammar.SpeechRecognized = New EventHandler( AddressOf RecognitionEventArgs , pizzaGrammar_SpeechRecognized) ...Show All
