Giridhar Damodaram's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Heightmap Terrain Component
I thought the whole component concept was pretty cool. So I threw together a quick heightmap terrain component. http://i9.photobucket.com/albums/a59/craigory666/heightMapTerrain.jpg http://i9.photobucket.com/albums/a59/craigory666/heightMapTerrain2.jpg http://i9.photobucket.com/albums/a59/craigory666/heightmapprop.jpg It should work with square .raw files, and for the effectPath I'm just using the default texture shader found in the help file. The view and projection matrices of the terrain are exposed, so you should be able to hook up whatever camera you have going and just update the terrains view, and projection matrices during your games update. using System; using System.Collections.Generic; using System.IO; using Microsoft.Xna.Fr ...Show All
SQL Server Help needed?
Hi I'm a newbie to SQL server..... l'm building a website where companies can save important data. I have a SQL server available but I'm not sure how to store the data. Should I create a new database for every user or should I store everything in the same database and then use a UserId to recognize the data and the user The data stored for each user are stored in tables which are exactly the same so all tables could be gathered into one table and then a UserId could tell which records belong to whom. Hope my english isn't too bad..otherwise just ask me questions and I'll get back A.S.A.P. Regards Joachim hi joachim, thats not a bad english at all. regarding your question i ...Show All
SQL Server Black server reports after installing SP2
After installing SQL Server 2005 SP2 all of our server reports are being rendered with a black background and white text, which needless to say is reversed of how they were being drawn before installing SP2. This only happens when the report viewer is displaying the report in “Print Layout” mode. Normal mode shows the report as expected. Has anyone else had this problem or suggest a solution Thanks in advance. It turned out that this is an issue introduced with SP2 that affects certain video cards. I am also experiencing the same problem but t never occurred to me that this could be actually a bug during the SP2 testing so I never reported it back . The RS team is reviewing currently this issue. Please ...Show All
Windows Forms View Designer Error message!
When I load a WinForm Application, it runs successfully. But When I switch the sorce code page to Designer Page, it throws the error message like below: One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. Value cannot be null. Parameter name: serviceInstance Hide at System.ComponentModel.Design.ServiceContainer.AddService(Type serviceType, Object serviceInstance, Boolean promote) at System.ComponentModel.Design.ServiceContainer.AddService(Type serviceType, Object serviceInstance) at Microsoft.VSDesigner.VSDesignerPackage.VSDesignerPackage.ReplaceServices(IDesignerHost ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can Visual Studio 2005 create a Windows Game project(XNA) like Visual C# 2005 express
Can Visual Studio 2005 create a "Windows Game" project(XNA) like Visual C# 2005 express How do I implement or modify some setting And See XNA MSDN in Visual Stduio 2005's MSDN. Well, if you mean if you can use the File-->New Project --> Windows Game template. No you can’t. That kind of extensions are only available in Visual C# Express. What you can do is reference the XNA dlls inside a Visual Studio 2005 project, and do it at your own. If you take a look at the Windows Game empty project, it only has a couple of files in it. Just copy the code generated to your VS2005 project. One thing you must be aware of: If you use VS2005 to develop XNA projects, you will not have access to the Vis ...Show All
Smart Device Development Resource DLL still active
Hi all, We made a .Net DLL that is the managed end of an unmanaged - managed bridge. There is nothing in the DLL besides the wrappers to the unmanaged function calls and the P/Invokes. When I terminate the program the managed DLL stays active. Any ideas on why it would stay in memory Do you have to terminate a managed DLL in some way Alex, Nope. Everything is a command-response call, no threads. I did notice that it's only when I am debugging and the debugger terminates in an abnormal fashion, like an uncaught exception. It does not seem to occur when I run the program outside of the debugger or the debugger terminates the app normally. ...Show All
Windows Forms Access MDI Child Controls
I have an MDI Parent form that spawns several child forms. In the child form it is possible select a button and open a new non-child form. On the new form opened I would like to be able to populate data in several controls from controls on the active child form. For example, I would like to get: NewForm.LastName.text = MDIChild.TextBoxLastName.text I would appreciate any assistance. Any Suggestions You may use the this .ActiveMdiChild to retrieve the active child form. Here's an article on this topic: http://msdn2.microsoft.com/en-us/library/4s6dtf7z.aspx Hope this helps. ...Show All
.NET Development long arrays blues
Someone please correct me if I'm wrong, but after reading a few porting documents it seems to me that the .Net framework is trying to support a 64bit computing model essentially by doing the following: Making pointers 64 bit Allowing a long to be used as an array index as well as a length specifier during array creation I've seen several documents mention how it would be space inefficient to change the size of int along with the pointer size and I can understand this issue, however is this space optimization worth breaking *all* functions that take arrays as input My concern is that any function that accesses an array will not be able to utilize the 64 bit address space without rewriting it to use long indices. Worse: A met ...Show All
Visual Studio Express Editions How to fix this exception: "Access to COM4 is denied"
Hi, I was wondering if someone could help with this. I'm trying to do the activity on this page: http://www.devx.com/dotnet/Article/32278/0/page/1 I have all of the equipment set up properly and I followed all of the steps *very* closely. So at the end to test it, I ran the program in the Basic Stamp2 first, then I ran the Visual basic express program but I get this exception error: http://i34.photobucket.com/albums/d136/idrivefreely/exceptionerror.jpg Next, I tried running the visual studio program first then the Basic stamp, but when I tried to run the Basic stamp program, it said "No Basic stamp found." The Basic stamp program works fine if I just run it alone, it shows the debug window with the sensors ...Show All
Visual C++ VCToolkit
I just realized that VCtoolkit was removed from the downloads page. I was wondering if it was legal to include the setup file for the toolkit with my IDE for a game I'm working on since Microsoft no longer lists it. Any ideas I would really doubt but you can confirm by contacting support in your area. http://msdn.microsoft.com/library/default.asp url=/library/en-us/vsintro7/html/pssPsoverview.asp should contain more info. I would also not recommend depending on VC versions that don't have current official support. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual J# Vj# control not working in IE 6.0.2900.2180.xpsp_sp2_gdr.050301-1519
we are hosting vj# control in IE which is not working in particular version of IE 6.0.2900.2180.xpsp_sp2_gdr.050301-1519 which seems to be the latest and greatest version of IE which we upgraded by isntalling it through the windows updates (both high priority and optional updates ). please advise how to make it work in the latest version of IE. pleas advise, Here is the sample code. homepage.htm <HTML> <BODY> <IFRAME name="leftframe" src=" http://www.google.com " APPLICATION="yes"></IFRAME> <IFRAME name="webwindowsframe" src="Page1.htm" APPLICATION="yes"></IFRAME> </BODY> </HTML> page1.htm <HTML> <BODY&g ...Show All
Visual Studio Tools for Office Saving email to a file to a specified directory and filename
Hi, I am new to developing any addins to outlook. I want to create a button in outlook (similar to the print button which can print the email to any printer), once clicked the selected email new or existing is then saved to a specified directory and filename depending on the client number. The client number will be prompted. Thanks Open the VBA editor in any Office application where you've added the Outlook library (I usually keep Word open when I'm writing an Outlook VSTO add-in), press F2 to bring up the object browser, and browse the Outlook library. Press F1 to see any object, method, property, or event's Help topic. They're also online at MSDN. ...Show All
.NET Development backing up DB in C#
Anyone have a simple method using C# to backup and restore a database Since each table is already mapped via dataset, I'm trying to save all the contents to a flat-file and then reload later if necessary. JS I am new to SQL. If the database is in the hosting company, what is the easiest way to run a C# program to backup the database in my own machine Thanks! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XACT files(xgs,xsb,xwb) don't deploy during Publish; getting FileNotFound
My problem: My game project in XNA uses 2 sounds. I went thru the XACT tutorial(for my uses I found it quite easy to add my .wav files used via XACT), and I now have all code in place, and functioning. When I Start Debugging in XNA, my game runs correctly, and I get the correct audio plays when the proper events cue them up. HOWEVER, once I publish the same project, and install it from the Setup.exe, the installed game crashes. I get the error: system.io.filenotfoundexception. What I have checked already: 1.All 3 XACT files are in my main game directory. 2. All 3 are set to 'always copy' to output directory. 3. All references in the Sound.cs class I created point to the correct XACT files(the build would not run if it did ...Show All
SQL Server INSERTING Data From Server to Server
hi there! Well i have two Servers on this two Servers i have the Database with the same Tables. But the Database in the Server_2 consists no data, I want to fill the Tables in Server_2 from the Data in Server_1. What i want to do is to is liked this. -- I performing this on the second Server. SET IDENTITY_INSERT [Server_2].[Database].[user].[Table] ON INSERT INTO [Database].[user].[Table]({COLUMN_NAMES}) SELECT * FROM [Server_1].[Database].[user].[Table] WHERE id=25 SET IDENTITY_INSERT [Server_2].[Database].[user].[Table] OFF This did not work and i have the following Error Message its in German but the ERRORCODE is 7391. I already check out the help section in MSDN but it doesnt really helps... Any Ideas Thanks Die Oper ...Show All
