hfann's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Working with buffers in 2D
Hello all, I've been trying to figure out how the system with backbuffers work. In all examples I have found people are clearing the buffer before they draw something new. graphics.GraphicsDevice.Clear(Color.Black); ...draw some sprites... graphics.GraphicsDevice.Present(); I guess that when you enter the Draw method you are working with the backbuffer, so the clear() and the sprite draw() will affect the backbuffer. After that you call the Present() to draw the recently made backbuffer on the screen. My problem is that this is not how I would like to do it in my case. Everytime I enter the Draw() method I would only like to add some new things, and not clear anything. The easiest way to do this is to not have any backbuffer at all, but I ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Cannot create Xbox 360 game with Beta 2
Hello, everytime I try to create a new 360 Game, and windows game for that matter, I get this: Could not load type "Microsoft.Xna.Framework.COntent.ContentSerializerCollectionItemNameAttribute" from assembly "Microsoft.XNA.Framework, Version 1.0.0.0, Culture=neutral, PublicKeyToken=f48fa5f25d27e8ff". Any idea on what could have caused this error I reinstalled GSE, and I look for a similar error in the readme and came up with nothing. This issue occurs when you install the XNA Framework Redistributable along with XNA Game Studio Express. You must uninstall the XNA Frame Redistributable and possible reinstall XNA Game Studio Express in order for the projects to work. Your best bet i ...Show All
Smart Device Development Taget the different Device
Hi, I developed an application for Pocket Pc2003. I want to target to Treo700WX. But Generally I get only 5 devices in the list (in "Deploy" window) when I use F5 to deploy and debug. Treo700WX is already added to All platforms menu(Tools-->Options-->devices--> All platforms). Can anyone tell me how to target the Treo700WX or any other device. Is there any way to find whether my Pocket PC is phone edition or not. because I want to add Vibration, LED, and SMS notification which works on only phone edition. Thanks in Advance, Malleswar, Can you please explain what you mean by " Treo700WX is ...Show All
Visual Studio Express Editions TableAdapter.Update only works when I move from record to record
Hello everyone, I am still new to VB.NET and I am having a little trouble using TableAdapters. Now, I figured out the "Copy Always" thing, which seems to be a problem for beginners everywhere (are you listening MS ). My TableAdapter.Update() method works, but only if I move from the current record. I am using data bound controls. If I just make a change in a data field press Update button, nothing happens. For it to work, I have to make the change, move from the current record, and THEN press Update. Does anyone have any idea why this happens Thanks. master20 yes I agree master20. Just to add, now for example if you pulled up an MS Access table in MS Access and you were editing the ...Show All
SQL Server ATL & MFC vs SSIS
Hi All, I'm trying to call ATL COM component with MFC support from SSIS Custom Component, but I can't show netiher the GUI (MFC Property Sheet) neither to call methods from my ATL component. There is no error or at least Inteligense Studio doesn't report errors. What I'm doing wrong Thanks in advance! Regards, Svilen Varbanov Wow, there's really not enough information here to know what's wrong. What errors are you getting How are you attempting to call the ATL code Why The question is really unclear, so the answer will likely be muddled. You should generate a primary interop assembly that you then reference and call in your script. Kirk Haselden Author "SQL Server Integration Services" ...Show All
Windows Forms How to disable the ContextMenuStrip in the TextBox associated with a ComboBox?
I need to disable the ContextMenuStrip in the TextBox associated with a ComboBox for a smoother functionality. Right clicking on the CombBox button will open a ContextMenuStrip that I can disable, rightclicking on the TextBox associated with the will always bring up the standard TextBox ContextMenuStrip. I can't find access to the ContextMenuStrip in the TextBox to disable that. Anyone know a way to retrieve either a handle to the TextBox or the ContextMenuStrip inside a ComboBox Holy Beans Batman! While this doesn't answer the question I originally asked, it does actually do what I intended. Changing the drop down style to DropDownList will prevent the ContextMenuStrip in the textbox portion of th ...Show All
Visual C# Rename app.exe.config
Hello and good day. I want to know if there is any way that I could change the filename of the configuration file to something else other than myApplication .exe.config. I want something like global.config because my primary aim is to have several of my executables using a single configuration file. Any help would be greatly appreciated. Thanks. -Ver ...Show All
Visual Basic Howto with textbox and variable
I am loading a large textfile into a variable and into a invisible textbox. I have values loaded from this text box into other textboxes. I wait it so if someone edits something in one of the boxes to change it in the invisible textbox and/or the variable. I want to know I can search line by line for certain text in either the textbox or variable. it is possible, try what spotty suggested but I would also consider using Xml/datatables perhaps for easy managability and the added performance :-) I would also suggest looking at xml serialization/deserialization in this situation, perhaps alot easier to manage and simple! ...Show All
Visual Basic VB computing wrong value during execution
I am receiving the wrong result when I perform the following computation using VB.NET 2005. MM = CDbl (LoCursr - 1) / CDbl (HiCursr) LoCursr and HiCursr are both dimensioned as Integers and have values of 85 and 87 and are passed into this subroutine as ByRef values. MM is a local variable declared as a double. If I execute this statement in the immediate window, I get the correct result of 0.96551724137931039 However, when this statement executes normally, I receive a result of 0.96551722288131714 which I also get if I execute Cdbl(Csng(84/87)) in the immediate Window. I've tried storing the LowCursr and HiCursor values in Doubles prior to doing the computation, but that did not correct the problem. Is there a se ...Show All
SQL Server Feeding an "IN" Clause
I know I can supply an explicit set to an IN clause, or I can feed it with a select statement. What other ways in TSQL 2005 can I feed it One thing I'd like to do is feed an IN clause by calling a stored procedure. I'm new to TSQL, so I don't know if I can do that. I'd also like to know if there is a way to pass a variadic list of values as a parameter to a stored procedure, so that they can be used in an "IN" clause found in that stored procedure. I think the way to do that last item is by having a recordset parameter. Is that correct Any other way to do it Based on another question you asked, you could try passing a comma delimited list of values to your stored procedure, and then use the LIKE functionality within a C ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Dealing With .X Files To Effects / Shaders
I've been struggling with shaders and effects for a while, but I'm starting to understand the basics. The content pipeline in XNA Game Studio Express makes dealing with all of it so nice! I love how I can keep my art assets separated from my engine code The problem I have now is when dealing with models I've loaded from .x files I've built using something like GameSpace. Is there a place I can go to understand what is and what isn't included in an .x file I read that an .x file can include effects right in the file. Is that true Where this all causes a problem is in knowing how to write my shaders and in setting parameters within the XNA framework. What vertex format will be passed in Is this something that I can get from the meshes in ...Show All
SQL Server Error loading package
Hi there all... We've just started using SSIS packages, and everything seems to be going ok. I've recently set up a couple of jobs which just run an SSIS package every 5 minutes to collect data. These run fine 90% of the time, but intermittantly produce an error. When using a SSIS task in the job it simply reported "Could not load Package." I have changed these to use DTExec as I heard it gave more verbose execution results, and now I get an error like "Executed as user: NZ\SQLAdmin. Microsoft (R) SQL Server Execute Package Utility Version 9.00.1399.06 for 32-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 8:25:00 a.m. Could not load package "\MSDB\RadiusBilling\Get_RADIUS_AuthLo ...Show All
SQL Server Variable content in header/footer
I am having a problem with putting variable data into the header and footer of a report. I understand that RS does not allow field data in header/footer, and you have to use the workaround of referencing the ReportItems collection, and putting the variable data into a textbox that is then hidden. However, I cannot get this to work on reports with multiple pages. The variable info does not seem to "persist" from page to page, and on the second page and beyond, the header fields are blank. This is a report with tabular data. I have the header information in hidden text fields and it appears properly on the first page only. I tried putting the hidden fields into the table footer (making the footer row invisible), and it ...Show All
.NET Development OracleClient DataAdapter
Hi everyone, I have the same error. At the moment, I find a way to use joint table, just define your dataadapter in the code and set the commandtext in the code and do everything in the code... this is only way but i need to generate a dataset becuase i am developing crystal report project so i need to design crystal reports, which requires templates.... anyone can help me plzzz As Paul indicated there isn't much information here. If you could identify the error and post a code sample it might help us answer your question. ...Show All
SQL Server Win2K Users Cannot Connect to SQL2005 Database
Hi, I recently migrated our database from Access to SQL Server 2005. All the WinXP users can connect to the new SQL2005 database. But all the Win2K machines fail to log on. To diagnose the problem, I tried to connect from a Wind2K machine using an .udl file. The connection failed because "a provider failed to initialize". The SQL2005 server is residing on a WinXP machine. Users log on via SQL Server authentication layer using a dedicated login that only has read/write privileges to one specific database. Does anyone know a solution Thanks in adance. Regards, Vladislav Thanks a lot! Your suggestion worked. I installed the most recent MDAC version. Now all the Win2K machines can lo ...Show All
