nagual20's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Defining vertices as screen coordinates.
Is there a way to define a vertex to use screen coordinates I know there is a way in DirectX to do this [source] // This one const DWORD D3DFVF_TLVERTEX = D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_TEX1; [/source] But looking through the documentation, I can't seem to see a way to do this in XNA. Basically what I want to do is to be able to draw sprites but use shaders also. Yes, I have seen SpriteCache at http://www.codeplex.com/SpriteCache/ but it doesn't actually emulate SpriteBatch exactly like it should so I was wanting to create my own. Any help appreciated... thanks! Edit: Well the "// This one" is not lining up as I thought, I was refering to the D3DFVF_XYZRHW. I think you should ...Show All
Visual C++ c++ pointers & opengl
Hi there, this is really strange for me, i'm making a snake game using c & openGl, i use function called LengthenSnake to increase it's length, it uses pointers (linked list) when i call this function in the main before glut taking control of the program for (int i=0;i=any number;i++) lengthensnake(); it works and now problem and i can see the snake is longer, but after the glut starts, and i call this function through MyDisplay, the programm hanging, i know working with pointers is not fun, but what's wrong here, it works somewhere, and somewhere not Can any one help Thanks in advance Can any one help With the description you provided so far, definitelly not. It's like saying "I have a car. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Good place for free sprite sheets?
Does anyone have a good site for free 2D sprite sheets (for sprite animation) or does anyone have (or willing to create) any good sprite sheets they are willing to share I have a new project that I'm going to put on CodePlex which I think will be very useful and I need a good sprite sheet that I can include with the sample. Thanks, Bill http://tsgk.captainn.net/ I doubt you could use most of that stuff due to copyright issues, but a good resource nevertheless. ...Show All
Visual C++ New template compilation errors in 8.0
Hi All, This template code compiled fine in the previous version of Visual Studio, but when I tried to port this code to Visual Studio 2005 I get compilation errors. Can someone help Class declaration in header file: // Linked list entry class template<class T> class CProListEntry { public: // Construction/destruction CProListEntry(); CProListEntry( const T& data ); CProListEntry( const CProListEntry<T>& entry ); ~CProListEntry(); &nb ...Show All
Visual Basic How would you add a table of user entries in a Windows form?
Hi, all! I am sorry if you don't understand the subject heading! Here is the problem scenario for which I would like to find a solution or recommended practice. I am currently writing a Windows app. In the Windows app, I would like to have a table consisting of rows and columns of textboxes in which the client is to enter data. There will be a button which will activate a new addition of a row of 3 columns of textboxes. The data entered will be used for calculation purpose. I will be allowing a maximum of 100 rows, the minimum number of row will be 1(with 3 columns of textboxes). Firstly, what can I do to create the table of entries Would using textboxes for user input be a good idea Any alternatives I will not be using any database, ...Show All
Visual C# how can i acces a control from another form
hey i, how can i acces a control (that its in Form1) from Form2... ex. in form1 i have a textbox, and i want to change text from form2. n0n4m3 wrote: Hi, you can provide a property to access the control, e.g.: class Form1 { public TextBox MyTextBox { get { return myTextBox; } } } in the other form: form1.MyTextBox.Text = "New Text"; It is almost what I've been looking for as well. My problem is somewhat more complicated, however. I generate a Tabpage at runtime and want to access (reference) all or some objects on this page. There is a candlePlot and a grid. They are all separate classes. The code I have is like this: TabPage tb1 = new TabPage (); Button btn = new Button ( ...Show All
SQL Server How to send the SQL Reports via email.
Hi Everybody can somebody please help in finding how to mail the sql server reports via email. Thanks alot Nee123 Hi I'm having problems getting the Report Server E-mail delivery option to show up I only have the File share option to chose from in my subscriptions. I edited the RSReportServer.config file and when i look at the Reporting Services Configuration Manager it looks like everything is set up correctly. It's using the desired sender address, delivery method = use SMTP server and the desired smtp server is listed. Any clues to how i can get the e-mail delivery option to show up Thanks ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Games OUT OF THE BOX??
I cant make them work on a PC with just .NET 2.0 DirectX and the XNA Framework, it still needs the GSE and VC# Express, otherwise I get an error that the framework dll should have been installed into the Global Assembly Cache. My apologies for double posting, I had that "alert me" button checked and led me to an annoying subscription page, I didnt realize it had posted once. ...Show All
Windows Forms Steam, Runtime error
--------------------------- Microsoft Visual C++ Runtime Library --------------------------- Runtime Error! Program: C:\Program Files\Steam\steam.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. --------------------------- OK --------------------------- Can anyone explain this to me and maybe give me a solution please Thanks Ken I seriously doubt it. From what I could see of that KB article, it would apply if you were getting the error you are getting with Roxio. You're not, you're getting it with Steam, so it's likely it's just a problem with Steam. The error is surprisingly common in cases where te de ...Show All
Software Development for Windows Vista Problems with regsvr32 in vista
Hi, My OS is Vista 64bit. And I've tried to write a native 32-bit COM DLL and use regsvr32 to install it, and the succeed message showed up. however, I found nothing was added in the registry. How to fix the problem By the way, I know there is both "system32\regsvr32" and "SysWOW64\regsvr32", and I've tried both. help me!! many thanks!! it puts them under HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node. Although when you access or use the keys in your program the operating system transparently finds them there (without having to specify Wow6432Node in your program) ...Show All
.NET Development ....current thread is not in a single-threaded apartment
Hello, Background: Recently I converted a VB.Net 2002 application to VB.Net 2005. The application was simply to big to rewrite. One of my purchased activeX controls failed with a Stack Error. The vendor informed me that the work-around with VS2005 is to call the controls methods in a second thread. Now I am getting the error: "ActiveX control> '6262d3a0-531b-11cf-91f6-c2863c385e30' cannot be instantiated because the current thread is not in a single-threaded apartment." I am new to "threading" and have read a few posts talking about a STATHREAD which I think sets your app to be a single threaded apartment but I do not know where it would go or the syntax for it. Does anyone know how to I set my VB ...Show All
Visual Studio Team System Rolling back a merge operation?
We are having discussions internally on the branching strategy. I am trying to push for a single development mainline, with a QA and Prod branch per version One of the issues raised was what action to take if a user accidentally did a merge to wrong branch. For e.g., a feature set (changeset) should have been pushed from the Dev mainline to QA/v3.0 but it was merged to QA/v2.0 - both being direct children of Dev. I realize that this should be a rare scenario because one should be doing merges in a rush but since this was raised I have to answer it the best I can. What is the best approach to rollback these (potential several files) changes from the QA/v2.0 branch Is this something TFS allows or will I have to manually look at file version ...Show All
Visual Basic Creating Muli Lingual Applications
vb.net 2003 I currently maintain two versions of my application. One is in Spanish and the other is English. I am getting ready to add Portuguese. My application has context menus' and error messages, and button names which need to be in a specific language for a particular build. Can I have one project where my menus', text messages, and button names can be toggled between the three languages. I would like to have one project in which I can easily build applications for my three languages. Thanks, There is a standard "pattern" for doing what you want in .NET - it's called "satellite assemblies." The basic principle is that you load your UI strings from an external assembly based on the current local ...Show All
Visual Studio Team System getting a copy of older version
Using the GUI, getting an older version of files appears to delete copies of the latest versions but does not put a copy of the old version specified in the workspace. My workspace is empty after invoking the "get" command. Is this a bug What version did you specify If you specify a version prior to the existence of the files, get will remove the files from disk, because they didn't exist at that point in time. Buck ...Show All
Visual Basic ToolTip control and DataGridView
I have a tooltip control on my form. The tool tip pops up great for all the other controls on the form except for the DataGridView control. Any idea what could be the problem Well, it works fine for me... So you've added a tooltip control to your form (lets say "ToolTip1"). And then you set the dynamic property on the datagridview: DataGridView1.ToolTip on ToolTip1 = "some text" And then you set DataGridView1.ShowCellToolTips = False And then when you run the program and mouse over the DataGridView and wait, no tooltip displays That sounds odd... Is there anything else going on when the DataGridView has a MouseOver or MouseEnter event Anything changing focus ...Show All
