Sandeep A's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Custom Processors and Asset Duplication
This will probably be quite obvious once the answer is explained to me, but i am using a custom model processor, whenever i use it on .x models that are are added to the project (not just linked to but actually copied into projects directory) i get an error that more than one asset with that name is produced when i try to build, while if i use the custom processor on a model that is only linked from another project, it doesn't complain at all. How can i stop duplicates from occurring when i am using non-linked content (Thanks) Hmm, the exact wording is "More than one output asset is named '<asset_name>'. You must explicitly specify asset names to resolve the conflict". An ...Show All
Visual Studio 2008 (Pre-release) Database support for DLINQ
Will DLINQ be available to any database that has an ADO.NET compliant provider The public plan at this point is that it will ship with support for SQL Server/Express. The will have a provider model against which other vendors can create implementations for their systems. A number of database vendors and OR mappers have already started work on targeting that provider model to support LINQ against their systems. Jim Wooley http://devauthority.com/blogs/jwooley ...Show All
Visual Studio Express Editions Find the smallest of a group of numbers
I would like to find the smallest number in the group of numbers - to keep it simple. I would like to know the best way to do this. The numbers would be in an array, set as variables or in a database - whatever makes the most sense. Thanks You'll need a bubblesort (there are other ways, which may be quicker) if you need an algorithm. Alternatively, take advantageof built in sort functions, for example the array.sort command: here's a recent link to a thread which involves sorting an array of structures, but it'll work the same way: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1176363&SiteID=1 Be aware that this is just one way of doing it, there may be a better way: I think the link above demonstrates the mos ...Show All
Windows Forms Update/Refresh data in DataGridView from database
Hi There, I have created a simple form containing a DataGridView. DataGridView displays the detail of an account from database. Details updates every 4-6 seconds in the database. My question is that how can I refresh the data displayed in DataGriedView every 5-6 seconds. And how can I retrieve the data into Dataset every 5-6 seconds from the database, which is DataSource for DataGridView control. Here is my code. ------------------------------------------------------------------------------------------------------------------------------ namespace DataGridViewSample { public partial class AccountForm : Form { public AccountForm() { InitializeComponent(); DataTable dataTable = GetAccountDetails().Tab ...Show All
Visual Studio Express Editions Problem with LPCSTR after Platform SDK is installed.
I installed Visual C++ 2005 Express Edition. Also, I installed Platform SDK for Windows Server 2003 R2. It is for Windows XP professional with SP2 package. I made sure to check and modify directory and template project by the following instruction from Platform SDK. Everything is working fine when I clicked Win32 Application Template Project. It is generated automatically by the wizard. I am able to compile and build into execute file without any problem. The problem is with LPCSTR and LPCWSTR. For example, I use MessageBox function. I want to use LPCSTR so MessageBox function is correct. Unfortunately, MessageBox function is linked to MessageBoxW function using LPCWSTR instead of LPCSTR. I tried to compile, but the error ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Framework for Tool programming.
I would like to use XNA Framework for tool programming but as far as I know XNA Studio does not contain System.Windows.Forms namespace. Is it possible to use XNA framework with Visual Studio 2005 If not then how can I use XNA for tool programming without WinForm Are you forgetting tool programmers Thanks but you did not answer my question. Is it possible to strip out XNA framework and use it inside VS 2005 professional Means I don’t want to use XNA studio just the XNA libraries. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using Float16's
Hi. I am trying to pack my vertex data using data types other than 32 bit floats. Using Normalized Shorts and bytes has worked great, However i cant find a way to convert from float32 to float16 (called half in HLSL) when using C#. Can anyone help XNA has a very useful set of types for dealing with packed data in the Microsoft.Xna.Framework.PackedVector namespace. For your particular case you might find HalfSingle, HalfVector2 and HalfVector4 useful. Cheers, Leaf. ...Show All
Windows Live Developer Forums map.Find() without adding pushpins
Is it possible to do a map.Find() and not have the pushpins automatically added I would like to have a callback on the Find() but I would like to add my own pushpins. Do I have to manually go through and remove all the pushpins it automatically entered then re-add them Or is there a parameter or property I am missing Thanks, Jason this code works because everytime a pushpin is added it uses teh VEPushpin.prototype.GetContent you define here. if you have your check variable set to false then the function returns an empty string and there for nothing gets put on the map. when you call your own onFindResults function you set the check variable to true just before you put your pin on the map and to false r ...Show All
Windows Forms Error icons on my data sources
I have been working with a .NET 2005 Windows Forms project for well over a year. Today, after I made some changes, my data sources window lists every data source with an error icon in front of it (icon with an exclamation point) and no contents (like of bindable fields). These are all object data sources that are bound to Windows Forms. I really don't want to delete them all, recreate them all, and rebind them all. And, interestingly, the forms that are bound to these data sources still work just fine... Anyone know how to get my Data Sources window back to listing the valid contents of my Data Sources so I can use them again Thanks! Go in your project / Properties / DataSources and open the * ...Show All
Windows Forms DataGridViewComboBoxColumn selection
Hi, I am developing a C# application in VS2005 and I've added a DataGridViewComboBoxColumn to a DataGridView in a form and set its DataSource, DisplayMembers and ValueMembers properties. When the form is loaded, the grid shows all bind and unbound columns data and it also fills the combo box with correct data, but the problem is that no item is selected in combobox. I have to click on the combo box to select an item. I'd be thankful if anybody guide me to solve this problem: How can I select an item in the combo box in the dataGridview programmatically Thanks in advance, Saeideh Thanks for your reply. Sorry if I could not explain my problem.Let me add some more comments about ...Show All
Windows Search Technologies Windows Desktop search is inbuilt in Vista?
Is windows Desktop search inbuilt on vista I think so for files, but not sure about emails and other resources. To be exact there is no WDS UI on Vista, as Vista has its own UI for search (i.e. in every explorer windows, in Start menu). Additionally, when one uses Outlook 2007 there is no need to download WDS as the engine is already there. ...Show All
SQL Server EXECUTE SQL string with parameter and return value
Hi all, I would like execute an SQL string who calls a stored procedure with param and return a value: declare @query nvarchar ( 50 ) set @query = 'sp_test 1' declare @resultat int exec @resultat = @query select @resultat Its returns a error message: "Could not find stored procedure 'sp_test 1'" The command exec ( @query ) works fine, but I can't retreive the return value and I can't do exec @resultat = ( @query ) How can I do Thanks, Aurelien Thanks very much, With sp_executesql, the stored procedure is correctly executed, but it don't return the return value... exec @resultat = sp_ex ...Show All
Visual Basic A Windows Explorer-like browser that shows image thumbnails
Hello all, Don't want to reinvent the wheel so maybe somebody out there has come across some source code that would allow me to reproduce something like Windows Explorer that would show image files as thumbnails when looking in a directory containing image files. Visual Basic's Power Pack has a FileViewer controller that works ok but without showing thumbnails. Any suggestions greatly appreciated. Cheers. NRF Nice !Thanks very much. Another complexity is to get this code to run with all standard image types... gif, jpg, bmp I've been looking but haven't found code to add that functionality to System.IO.Directory.GetFiles(path, "*.jpg" , IO.SearchOption.AllDirectories) Obviously the a ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Driving Game Download???
Does anyone know where the XNA Racer Game can be downloaded (see this video) Ethan Pack wrote: " XNA only has support for the 360 gamepad, so unfortunately, no. To use other devices, you would have to import DirectInput into your project, but then you would loose xbox compatibility." ...Show All
.NET Development BitConverter.ToSingle with a two dimensional byte array
i am having trouble converting 4bytes to a single in a two dimensional array. how do i specify the position i want in this array i tried treating it as a long one dimensional array. Short of making it one, does anyone have any ideas Any help is greatly appreciated. int traceLength = 9200; byte [,] cobbleData = new byte [traceLength,6]; . . y1[ i ] = BitConverter.ToSingle(cobbleData, traceLength + 4*i)); Not yet i tried a few more things. i might be able to expand on the actual goal i am trying to achieve. i receive around 100 arrays, each 19kb long. I want to put them into a two dimensional array. Each array has bytes that represent character strings, floats, and in ...Show All
