rtaiss's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Drawing problems with RenderTarget2D
Hi, I have problem with drawing Texture2D on RenderTarget2D. If I rendering direct with: Engine.dev.SetRenderTarget(0, Nothing) everything is ok (like on this picture in top: http://www.euroregin.net/heho/problem.jpg ), but while I want to store rendered image on RenderTarget2D and I use: Engine.dev.SetRenderTarget(0, myRenderTarget) and then after rendering: Engine.dev.ResolveRenderTarget(0) Engine.dev.SetRenderTarget(0, Nothing) spriteBatch.Begin(SpriteBlendMode.AlphaBlend) spriteBatch.Draw(myRenderTarget.GetTexture(), New Vector2(0, 0), Graphics.Color.White) spriteBatch.End() Result will look strange like in bottom of picture: http://www.euroregin.net/heho/problem.jpg Why it's happenin ...Show All
Visual Studio Express Editions TextBox not being visibly updated
Hi Guys, I need some help if a kind someone has a spare moment. :) I am fairly new to VB Express 2005 (coming from MS Access) and I've just constructed a small starter program to print a currency rate that is received via an API. Now I receive the rate and assign to the text box via the following Public Overrides Sub handle(ByVal ei As fxEventInfo, ByVal em As fxEventManager) Dim rei As fxRateEventInfo = CType(ei, fxRateEventInfo) If rei.Pair.Pair = "EUR/USD" Then EURRate.EURTextBox.Text = rei.Tick.Bid.ToString &nb ...Show All
Visual C++ Get active window
Hi, Im writing an application which needs to get a handle to the active window and its content. It needs to work like the "Babylon (TM) " translator - get the active window, retrieve the text at mouse location and open its own dialog. It is not as simple as it seems ..., may be someone can give me a clue/link or a snippet. Best regards. Yes, it sounds useful . . ., but how can I get informed when the foreground window has been changed (e.g. destroyed), do I need to test it all the time by calling GetForegroundWindow and compering to the previous wnd Regards. ...Show All
Visual Basic Preventing main form showing before splashscreen closes
Hiya, How do you stop the main form showing whilst the splashscreen is still open I've seen a few posts about this, but none that seem to work, well for me anyway! (Using VB2005) Many thanks John Thanks for that. On reflection it seems I'm really fighting against how the splashscreen and application startup works. I've put the initialisation code into MyApplication_Startup Sub and it seems to display the splash screen just right. Thanks for the code in the attached URL. It will be useful too. Cheers John ...Show All
Visual Studio Express Editions Visual Web Dev 2005 Express hangs during uninstall
I'm trying to uninstall Visual Web Dev 2005 Express Edition via Add/Remove Programs, but it hangs at a given point, been stuck for over an hour. Looking at file d d_vserror80.txt, I see this: [07/05/06,09:19:19] setup.exe: [2] ISetupComponent::Pre/Post/Install() failed in ISetupManager::InstallManagerHelper() with HRESULT -2147023258. [07/05/06,09:19:19] setup.exe: [2] Component error string not specified in ISetupManager::AddToActionResultCollection() [07/05/06,09:19:21] ExpressUI: [2] DepCheck indicates Microsoft Visual Web Developer 2005 Express Edition - ENU is not installed. I have installed on my Win2k3 machine (according to Add/Control Programs): Visual C# 2005 Express Edition - ENU Visual ...Show All
Software Development for Windows Vista MSAgent Character Sizing
On pre-Vista versions of windows I was able to scale an MSAgent Character by changing the Characters Width and Height properties. Under Vista, the character window appears to be changing, but not the character graphics, so the right and bottom get cropped. Any thoughts/solutions Is this with Vista "Glass" turned on Yes it was, However, I reran with "Windows Classic" theme and got the same results. What is the business impact, and how big is your customer base This is an update to a shipping retail product. ...Show All
SQL Server Transact-SQL equivalent of MySQL LIMIT
In mySQL for example i could have: ORDER BY ID DESC LIMIT 5,25 where it would start from 5'th row found and return up to 25 rows. How do i achieve the same in Transact-SQL The LIMIT 5, 25 part. Now i have this but its complaining about line 23 near 'WHERE'. Any ideas SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE getMessages @username varchar ( 10 ), @startFrom int AS BEGIN SELECT ID , Sender , Subject , Date , New , Unread FROM ( SELECT ID , Sender , Subject , Date , New , Unread , ROW_NUMBER () OVER ( ORDER BY ID DESC ) [RowNumber] FROM Messages WHERE Username = @username ) WHERE ...Show All
SQL Server an OpenRowset little doubt
Hi all. Seeing that the old system table syslang is no longer updateable(Not even in DAC) i decided to take a look at the definition of it, just to see where the languages are stored.(out of curiosity) Select Object_Definition ( Object_Id ( 'SysLanguages' )) and it returns Select ....... FROM OpenRowset ( TABLE SYSLANG ) The odd thing is I tried to run that query but it gives me an error telling an incorrect sintax near TABLE. so, the question is if does anybody knows why i can't run the same query that the object_definition returned any comments are most apreciated Thanks a lot! i copy and attached the mssqlsystemresource as an standar database and it worked out. Tha ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Quadtree Terrain Component
I have released 0.1.2 version of the source code for the Quadtree DrawableGameComponent. In this release, I have replaced the JoshGameXNA example with a new project TestQuadtree1. It is more cleaner and more straightforward in the way it shows how to use the Quadtree component. It is included in the QuadtreeComponentLib solution as the startup project. get the source code at http://www.codeplex.com/quadtreeload Thanks for providing such a great resource. Learning more about Quadtrees has been on my list of things to get done for quite a while so I'm glad that I have a resource like this to review. Also, remember when posting announcements like this to make them comments instead of questions so that the forum admins job ...Show All
Visual Studio Team System Using workspaces to get project dependencies
Hi all, We have several team projects on TFS. Some are depending on others, for example one team project creates say for example a framework. This framework will be used as codebase for other projects. Now what I would like to do is using workspaces to copy all required dlls of the framework team project to the build folder (bin/debug, bin/release) of the project that depends on them. I could write for example a batch file that sets up this workspace and automatically gets all source files and the dependencies (the framework I mentioned) on a local machine of a developer. So my idea is that the developer simply executes this batch file and automatically gets the latest version of all files. He can then easily compile his project because al ...Show All
SQL Server Case statement
Hi I am having a few problem with a case statement. I have a table with customer data in and I need to bring back all the rows which have data missing from 2 different columns. customer table CustomerID Name SoftwareVersion 1001 TEST1 V5 1002 TEST2 V5 3 TEST3 V5 004 TEST4 V6 ect.. CustomerID Table ID 1001 1002 1003 1004 ect... I have a need customerid table and I need to list all the customers who are not in this table or whos id does not match the new listings, alos there is a softwareVersion Table list all the newest software so the same will need to be done for this. Thanks Rich Hi I would like to use the case statemen ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA shader parameters from 3d studio
Hi! I'm currently using 3D Studio Max to create scenes, then export them into .x file format and then import with a standard content pipeline. What I miss is that after the content pipeline processes my scenes I can't find the shader's parameter values I've set up in 3D Studio Max. Is there a way to overcome this problem Any help appreciated, Pawel Jarzebski Kyle, Thanks for your answer - what you tell is exactly true but I must have not been clear enough with my question, sorry about this. In environment like 3D Studio Max you can set parameters to some values and then natural would be something like: MyModel.Meshes[0].MeshParts[0].Effect.Parameters["GlowStrenght"].SetValue(0. ...Show All
Visual Basic Single APP Instance VB.NET 2005
Hi I need to make my App a single instance, and pass arguments I have a Main Module : Public Sub Main( ByVal sArgs() As String ) How can I use sARgs with ONLY one App instance i.e., I want to pass Arguments to the running instance I use VS.2005..Visual Basic Thanks in advance You could always enable the Application Framework, which has this feature built-in to allow you to create a single instance application. ...Show All
SQL Server XML task & XSLT
Can I use the XML task in SSIS to create an excel document If so which operation type is best to do it with, XSLT I'm trying create excel files dynamically with nothing more than a SQL statement that I'm passing as a variable which generates XML. I would then like to take that variable and combine it with a template and create an excel document. Any help would be appreciated. I do not want to use the data flow because it requires all transformations ahead of time. Thanks, Phil I'll answer my own question here. The answer is yes. I've created a package that uses XSL & SQL XML to create an excel spreadsheet. It's using the Transform XML task in SSIS. Phil ...Show All
Visual Studio Team System Getting a new work item field to display in the OLAP cube
I've created a new field named stage in our scenario template and updated VSTS. It looks like: < FIELD name = " Stage " refname = " Microsoft.VSTS.Common.Stage " type = " String " reportable = " dimension " > < HELPTEXT > Stage of the scenario in the development process </ HELPTEXT > < REQUIRED /> It's showing up correctly in VSTS and in the TFSWorkItemTracking DB in Team. The issue I'm having is that it's not showing up in the TFSWarheous OLAP cube. How can I get this in to the cube Thanks in advance for any help on this. Greg Would you please process your warehouse manually and see if the field ap ...Show All
