shafiqm's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Rotating sprites center
I'm new to directx programming and i'm writing a simple program to help me learn. I'm using sprites and i'm trying to rotate the texture based on its current heading (the sprite is moving around). Now when i try to rotate it using a matrix, it seems the matrix is too big. My texture is only 32x32, and when i do the transformation, leaving the rotation center as NULL should set it to be the top left, according to what i've read. However, after experimenting because it didnt work, I found that if i set the center to be close to the window's center, or some larger center, it seems to fix it a bit. So it seems to me that the matrix is too big for my texture. I don't know if there is any way to set the size of it If you would like code I can ...Show All
SQL Server SQL 2005 Backup maintenance plan
In SQL 2005... How do I specifty in the maintenance plan to only keep 3 days worth of backup. Andre Thank you! I've been looking for that answer in books and online and was about to ask the question myself when I found yours. Linda ...Show All
Visual Studio VSTA and ClickOnce deployment
Hi, Is it possible to deploy a VSTA application supporting macros by using ClickOnce I saw that we need to write keys to the registry to enable the IDE (macro) and this is one of the ClickOnce restrictions. Is there a "how to" deploy VSTA application with ClickOnce Thanks Carlos. I understand how forums work. I have spent most of my times on these forums answering questions/helping other people. It's rare that I ask for help. Please don't patronise me. With regards to the email I sent - if you check the VSTA documentation, Summsoft are the recognised partners with Microsoft on the VSTA project - that is, they are there to provide technical support, hence why I emailed them, from ...Show All
SQL Server Unable to Access SQL Server 2005 Remotedly
Not sure if this is the right forum to post this... After going through lot of old posts in various forums and changing lot of settings, i'm still not able to access my Server remotely. This is Windows 2003 Server machine with Sonicwall Firewall, i have allowed Port 1433 in both Firewall and ISA and call is getting through but i'm getting following error msg :- {"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)"} This machine is also having Sql Server 2000, and ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Well i'am in talking corner today
here is a little preview of the EvoFX Engine http://www.3devolution.net/Portals/0/Gameshot.wmv Nothing mucth but it is a start we are in the middle of planting all the mesh on the terrain like i sad nothing special no bump maps and displacment map just the render i have some trobble converting some shaders and some class but anyway it is render with full control of hdr light like you have never seen before how do you make the hdr not bloom so mucth and the white color the hdr dont like well see it ya that is the problem bu there was no porblem in mdx 2.0 the buttom of the mesh does not trun into complete darkness the mdx 2.0 was running hardware and fixedfuction pipeline why it tru ...Show All
Microsoft ISV Community Center Forums Hide/unhide
I have a button that when the user presses the button the program will search an ordered column for values equal to 0 and hide the rows that has values equal to zero. If the rows already are hidden then they shall be revealed by pressing the button. My code is: Sub showHideButton_Klicka() Dim relativCell As Range Dim i As Integer, j As Integer, k As Integer Dim blnFirstFound As Boolean, blnLastFound As Boolean, blnIsHidden As Boolean Set relativCell = Worksheets("Berakning").Cells.Find("Rel.", LookIn:=xlValues) 'hittar forsta och sista cell med varde 0 Do Until IsEmpty(relativCell.Offset(i, 0)) = True Or blnLastFound = True If blnFirstFound = False Then If relativCell.Offset(i, 0) = 0 Then blnFirstFound = True k = i ...Show All
SQL Server Output Buffer Remove Row?
I am using a script component to create the output buffer dynamically. I use the Outputbuffer.AddRow() call. I then set all the fields I want, and its added to the output and later inserted into the database. If a field value fails it causes an error, but the record is partially inserted upto the point where the set field command caused the error. So if I set 10 fields, and it fails on field 5 it inserts data for the 5 fields that worked and nulls into the others. As a result I have a try catch clause, and if it fails I want to cancell the addition of the new row. Is there a command like RemoveRow(), rollback, etc that can be used to not insert the record in error Sample code.. Try PaymentOutputBuffer.AddRow() PaymentOutp ...Show All
Visual Studio 2008 (Pre-release) WCF and MSMQ Transactional Read-response Applications to support scale-out and clustered queues
Since MSMQ, on WinXP and Win2003, does not support remote transactional reads, does anyone know how best to implement the pattern described in this MSDN link http://msdn.microsoft.com/library/default.asp url=/library/en-us/msmq/html/ff5027bf-1617-4a9d-93dd-805c4164cff5.asp , which provides the same functionality as remote transactional reads Much Thanks, -Paul Thanks for your reply. Unfortunately, the system must launch a very fat client during request processing, using COM to interact with it (and there is simply no other way to achieve what the client requires). This client is brittle and can at times crash for no specific reason. We limit the number of concurrent clients to one per core (its a mem ...Show All
SQL Server Alter Database Emergency
I currently have a SUSPECT database which I need to put into EMERGENCY mode. Apparently, in SQL Server 2005, I need to do this using an Alter Database command. Does anybody have the syntax or an example ...Show All
Visual C++ Runtime library support for TZ with dates of beginning and ending of daylight savings time
In 2007, the dates at which daylight savings time will begin and end in the USA will change. Several Unix compilers support information in the TZ environment variable that indicates the dates at which DST begins and ends. The Microsoft C compiler documentation does not mention support for this information. Although the Microsoft web site includes an announcement that Microsoft will ship updates to Windows to support the new daylight savings time dates, I can find no mention of any change to the Microsoft compilers' runtime libraries to support the new dates. Does anyone know if Microsoft plans to ship updates to the runtime libraries to support the DST date information in the TZ environment variable Or, will the existing runtime li ...Show All
Game Technologies: DirectX, XNA, XACT, etc. using XNA Framework with no shader capability display driver???
I have Intel 82852/82855 GM/GME graphic card with no support for shaders. Is it possible to develop a 3d application with XNA Framework under this condition.When I run a tutorial project I got the message "Both a valid vertex shader and pixel shader (or valid effect) must be set on the device before draw operations may be performed." I am new to XNA concept. Before I was developing with MDX 1.1 and I can develop 3d application with out shader support. So how can do this with XNA... It isn't possible with XNA. The minimum requirements for XNA require a video card with at least shader 1.1 support. You can develop without it, but you won't be able to test your applications and run them on computers that don't meet at ...Show All
Windows Forms How to avoid that a component can be dragged or moved
Hello to all, I have a big trouble in my designer host application. I need that a component (in this case an object that represent a Magnetic Tape object) not allows be moved or dragged into the deseigner host because a magnetic tape allways is present in an specific position. Someone knows how to do to avoid to move a component . Thank you Hello nobugz!, Thank you for the supplied code. it was simpler than I thought. T his working!... the control can be dragged and return to the original position (this was the objective). i'm usign the code now! ... but even I would like to know if there exists a way of not allowing the dragging a control, this main that the user can select t ...Show All
SQL Server strange lookup behavior
I have a data flow two lookups components (call them lookup1 and lookup2). They both query the same relational table but with different values. Each has a single row result set containing one column and the each of the two columns is mapped to a corresponding package-level variable. The original data flow sequence had lookup1 executing after lookup 2. Each component redirects errors to a separate text file. Lookup1 succeeds but lookup2 fails on every row which populates its error text file; however I can construct a sql query from the lookup2 values that returns the expected result. If I reverse the sequence of components (lookup2 followed by lookup1) lookup2 still fails on every row. Whenever both lookups are present in the dataflow ...Show All
Visual Studio error report while trying to add reference in visual studio.net 2005
Hello, I already have VS.NET 2003 in my laptop and i also have installed VS.NET 2005 . when i am trying to add a reference, and when i press the "Add reference" link, the visual studio, hangs for a second and then it exits and asks me whether i should send the error report or not and then exits. I am so unable to add any references. Any help or clue please Thanks, Praveen Please find the error information in the event logs.. It just gives me this information. there is no error number or any thing.. when i clicked on the links available in the message box in the event log also it is taking me nowhere... please find the messsages Faulting application devenv.exe, version 8.0.50727.42, stamp 4333e69 ...Show All
Windows Forms Build error after renaming a form
After renaming a form, I got the following build error: Error 1 The item "obj\Debug\Menu.amendCompanyForm.resources" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter. <<etc.>> How do I fix this without deleting the renamed form and starting again Txs in advance! I had same problem. Seems that after the form is renamed the actual class name is not changed in the FormName.Designer.cs file. There is probably a way to change in the UI like Name property for the form but I just did a global search and replace in the new files for the old formname and this fixed the problem. ...Show All
