Tony Maynard-Smith's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Shadow Volume Example
Hi to all, I'm converting C++ DirectX SDK Shadow Volume sample to MXD 2.0 using C#. everything looks fine, but there's a big method: GenerateShadowMesh that show me results not right. SHADOWVERT *pVBData = NULL; pInputMesh->LockVertexBuffer( 0, (LPVOID*)&pVBData ); - this line returns me different values in C#. I use next code: Microsoft.DirectX.Generic. GraphicsBuffer < SHADOWVERT > pVBData = inMesh.LockVertexBuffer< SHADOWVERT >(0); who can help with it, maybe anyone already did try to convert it, there's also problems with GenerateAdjacency method it seems also returns different result set in C#. thanks to all. freeze wrote: Hi to all, I'm converting C++ DirectX SDK Shadow Volume s ...Show All
SQL Server update statement
Newbie Question: Im trying to update a table column to a new value and I receive an error, here is my statement: USE PD51_Data; GO UPDATE CASENUMBERS SET CaseNumTypeID = 130 WHERE CaseNumTypeID = 101 AND CaseNumber BETWEEN 199999 AND 600001; GO I receive this error Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '9368----' to data type int. What did I forget Hi, is the CaseNumber of type non-integer Then you will have to provide the between conditions with single quotes. WHERE CaseNumTypeID = 101 AND CaseNumber BETWEEN '199999' AND '600001'; HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Accessing the dashboard on-screen keyboard
I'll take a stab that this will be a no for now, but is there currently any way of accessing the on-screen keyboard that's part of the dashboard on the 360 It's used in games such as Oblivion for entering player names and whatnot. I don't need it for any project right now, but I'm toying with the idea of making a UI component at some point soon, and not having to worry about getting alphanumeric input on the 360 would be a great bonus! There's this if you need to have some text input component. ...Show All
Visual C++ how to Show n no of ActiveX Control in a List Control
Hello All, I have a List Control and 15 ActiveX Control now i want to Shpw All of this Active X Control inside my ListControl. So user can easily See all the Active X by Scrolling List Control up and Down.here we also can Choose any other control apart from List Control.but my all 15 Control Show Appear in the parent Window .and i can Scroll up and Down to See them.That's why i would like to go with list control Thanx You should direct this question to the MFC newsgroup (or similar) at http://msdn.microsoft.com/newsgroups . This is a language forum, and as such not meant for gui related issues. OTP. ...Show All
Visual Studio 2008 (Pre-release) Inserting many to many related records
I have entity classes and everything that were generated by blinq from our existing database. With the tables that have many to many relationships, how do I perform inserts, updates, etc. easily None of this was generated, and I'm not familiar enough with LINQ to know how to do it manually. Could someone post an example of how to deal with these relationships Or at least point me in the right direction Thanks in advance! LINQ to SQL requires you to define the middle table as an entity. The kinds of entities described in the document do not correspond to the same kinds of entities available with LINQ to SQL. In the document, the middle table objects still exist and are exposed, the document just chooses no ...Show All
Visual Studio Team System Need help regarding Introspection engine's behaviour towards calling of overriding methods.
I have created a custom rule in FxCop 1.35 where I m checking for the proper documentation of exceptions thrown from a method or methods called from the method being analyzed. I m analyzing the following code using this rule. /// <summary> /// This class is a base class which we will /// use to derive other classes from. /// </summary> public class BaseClass { /// <summary> /// /// </summary> public virtual void TestMethod () { throw new ArgumentNullException(); } } /// <summary> /// This class is a derived class which overrides /// base class method. /// & ...Show All
Visual Studio Team System Advantages of Running Loadtests using MsTest
Hey, Just curious to know if there are any advantages of using MSTest at the command prompt to run the loadtests. Will there be any improvement in the % time spent in webtest code or any increase in the load generated Thanks, Let me also add that % time spent in web test code should be pretty close to identical since mstest is running through exactly the same underlying engine VS uses. The only savings would be the CPU time used to display the graphs and the memory used by VS itself. I doubt either of these savings would be significant compared to the CPU and memory required for a large load test. Josh ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Recommendations for terrainmesh collision and physics
I've been enjoying myself with XNAGSE for a while now, and wanted to start actually developing something real. So I started to play around with shaders a little, looking into terrain collision algorithms, but they all use a heightmap or a bytemap for terrains. What if I modeled something with Maya, loaded it in using the DirectX model content pipeline and wanted to use that as a level I searched around the Net, but haven't found anything that explains at least in understandable detail how to actually apply the algorithms to meshes themselves. Same goes for physics, a lot of info about the algorithms (Newton and Euler's laws etc.), but no real solid code as to how to do it in C#, let alone XNA. I'm sorry if this has ...Show All
SQL Server Is there a simple way to achieve this using MDX?
Hi all, I want to simply take a value that is returned in my fact table for a measure and copy is across all cells for that measure. (Analysis services 2000) Current result Date Measure 1/1/06 0 2/1/06 0 3/1/06 100 -- there will only ever be 1 value for any day. Everything else empty/0 4/1/06 0 Desired result Date Measure 1/1/06 100 2/1/06 100 3/1/06 100 -- just copy this value to all cells and allow it to roll up to 400 when drilled up. 4/1/06 100 Regards Immy Here's one idea - assuming you're using AS 2000 Enterprise Edition, suppose you create both "sum" and "max" measures from the fact table measure, like SumMeas and MaxMeas. Then you could create a calculated ce ...Show All
SQL Server How to suppress a list containing a subreport, when the subreport returns no data
Hi, I have a report which contains a subreport placed inside a list. when the subreport returns no data. it appears as a blank space in the main report. So i want to suppress the list when the subreport returns no data. Can somebody help me with this thanks shri Has the NoRows property been set for the subreport reportitem in the main report This property kicks in if the subreport returns no data. Also, if you'd like to make the list invisible when no data is returned, the visibility of the enclosing list could be set to a boolean expression based on the subreport reportitem. Type an expression that evaluates to a Boolean value of True to hide the item and False to show the ...Show All
Visual Studio Express Editions Float argument in function problem
I write C code andhave the following code extract Addoperand(numvalue); A simple printf confirms that the float numvalue is correct in the calling function but then in the function int Addoperand( float numarg) { printf( "numarg=%f\n" ,numarg); I see that here numarg is incorrect. Why can't a simple functionargument work Similar examples with char argument works. In ansii C this really should work I think. I use %f both before and after the function call. The correct value is 2.0 which is printed just before the function call. Then in the function the value is stated (variables window) to be something like 10E-35 and is printed as 0.0. So clearly the value I use as argument is corrupted inside the calle ...Show All
Visual Studio Team System TFSWarehouse
Hello Guys, I have to do Dual server deployment of Team Foundation Server. I have deployed the Database Tier successfully on one server. The problem is I cannot find TFSWarehouse database installed on it. Neither could I find the TFSScheduler. Will the this database be installed after I setup the Application Tier on another server. Thanks in advance. Hello Sudhir, Thanks for your help. No i dont think the setup failed and Analysis service is installed on the machine. The following databases are installed :- STS_Config_TFS STS_Content_TFS TFSActivityLogging TfsBuild TfsIntegration TfsVersionControl TfsWorkItemTracking TfsWorkItemTrackingAttachments So, I think only TFSWarehouse is not ...Show All
Visual Studio 2008 (Pre-release) mexHttpsBinding anonymous authentication not enabled
I am trying to publish a mex for my service that requires HTTPS and Windows Integrated Authentication. However, when I enable the mex, it complains that anonymous authentication is not enabled in IIS. Is there anyway around this without turning on anonymous access within IIS That seems to fix the problem with HTTPS and having anonymous turned off. I added the header information to the IIS settings (can't add it to HTTPS) and it still renders the WSDL with the local server name ... ...Show All
SQL Server Textbox Properties Format Code = to General Format in Excel?
When I export a report to Excel I need most of the fields to be the general format of Excel which is what in the format properties of Reporting Services Reports I tried Default and that doesnt seem to be it either. According to Excel the General format cells have no specific number format. Any ideas would be wonderful! Thanks so much! Stokh :) That worked for the general now what about text I tried it with leaving it blank and I tried Default that didnt work either, I even used cast(debtorName as text) in the stored procedure when I do that the data doesnt show up at all! Stokh ...Show All
Windows Forms sample database
Hi.. I wanted to create a tree view which gets populated from the database. I had used the code from the website: http://asp.dotnetheaven.com/util/srcview.aspx path=~/aspnet/samples/ctrlref/navigation/TreeView/TreeView11.src&file=App_Themes\Default\Default.skin&lang=C%23+Source As i dont use a stored procedure, i had used the query itself. But i am not getting the tree view in the browser. My changed code is: Code in default.aspx page **************************** using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; ...Show All
