Philippe B's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. MDX: Assigns a new mesh causes auto Dispose()
I'm going through the Software skinning method as a learning exercise & I'm at the GenerateSkinnedMesh step, when I had to do this: meshContainer.MeshData.Mesh = newMesh What I'm finding out is that MDX calls Dispose() for the Mesh that's there before assigning the newMesh to it. 1) This is a problem because that Mesh is being kept around in the OriginalMesh property for later use & SHOULD NOT be Dispose'd of, and 2) Is there a way to turn off this behavior If not, MDX is being pretty presumptuous here. This was reported to me recently internally as well, and it's something I'm looking at for th ...Show All
Visual C# Differneces between c++ and c#!?
I'm quite new in programing and i started learning c++ but i want to know what are the differences between c++ and c#! (because all examples and learning lessons, from msdn Visual Studio 2005, are written in c#) I know this is a stupid question for all of you but i heard about c# only in Visual Studio. I really need an answer to this question because i don't know what lenguage to learn! Thanks C# is a newer language with a Java-like syntax and feel to it. C++ is more complex and while much of the syntax is similar to C#, some parts are radically different - I'm thinking especially of C++/CLI vs C# and handli ...Show All
.NET Development Custom Applicationexception question
I have just created an exception class with a base class of system.applicationexception. The question I have is what is the best way to use them. For example, say I had a class to read a csv file, the possible exceptions I could see occuring are 'invalid data','error opening file','Error reading from file'. I am sure there are more but this will do for this example. Now would I have one exception class that can return all of these errors, and if so how do I diferentiate between them in my catch, or would i have an exception class for each of the possible exceptions with a description related to that occurence ('error reading ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Multiple render targets
As mentioned in an earlier thread, I'm rendering the results of DrawText operations to textures, and then rendering these textures to the screen. However, I just noticed that this is causing problems when multisampling, making the text corrupted and producing this error message: Direct3D9: (ERROR) :MultiSampleType between DepthStencil Buffer and RenderTarget must match. First-chance exception at 0x7c81eb33 in Client.exe: Microsoft C++ exception: long at memory location 0x0012f38c.. Direct3D9: (ERROR) :Clear failed. This happens at this line: if ( !SUCCEEDED( getDevice()->Clear( 0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER, ...Show All
Windows Forms Zoom event for picturebox
I am trying to display a 3D plot in a picturebox with Zoom capabilities. As oof now, I have 3 Scroll Bars to handle Zoom, horizontal rotation and vertical rotation. I want to make use of mouse for the same function as that of scrollbars. The horizontal mouse movement for hor. rotation, vertical motion for vertical rotation and either Ctrl or Shift + Horizontal mouse movemnt for Zoom. Could someone throw some light on the event handling in this case. I am using VC++ .Net 2003 on win XP thanks SSL Handle the MouseMove event of the PictureBox. If you want the user, for example, to have to hold down the mouse button while moving the mouse ...Show All
SQL Server Calling Stored Procedure
I have a created a report that needs to call a sybase Stored Procedure, my connection string is fine. I am able to call the sp from sql advantage passing in several parameters and it runs just fine. However when I created a dataset and tried to call it through the reporting service I get the following error message. An error occurred while retrieving the parameters in the query. Unknown SQL type - 28265. I cannot seem to find any information about this error. Does anyone have any suggestions on how to call a sp from sybase I can't solve the same problem. Please, share the answer! ...Show All
Visual Studio On Demand Report with Push Mode
Hi I work in Push mode (create a dataset with VS2003 and push this dataset to the Crystal report), with On Demand Subreport, placed in the Detail section of the report. When I click on a Detail Subreport, how is it possible to know the fields identifying the detail corresponding, to be able to seek, in the database, the corresponding data using this identifier (to push them in the on demand subreport) Thanks Hi GGus Maybe what I've done helps you: 1. On the main report, format subreport. Modify the formula to set the text of the subreport on demand, returning a text that contains your key. & ...Show All
Windows Forms imports user32.dll into vb.net
Hi, I'm trying to overload the system menu of my window form. for that purpose i'm using the "user32.dll". my statements are as this: Private Declare Function GetSystemMenu Lib "user32" ( ByVal hwnd As Int32, ByVal bRevert As Boolean ) As Int32 Private Declare Function AppendMenu Lib "user32" Alias "AppendMenuA" ( ByVal hMenu As Int32, ByVal wFlags As Int32, ByVal wIDNewItem As Int32, ByVal lpNewItem As String ) As Boolean Private Declare Function CheckMenuRadioItem Lib "user32" ( ByVal hMenu As Int32, ByVal idFirst As Int32, ByVal idLast As Int32, ...Show All
Visual Studio Team System Why doesn't a 'failed' web test 'fail' a load test?
I setup a simple web test and then added a validation rule on it that said to Fail the test if a certain error message occurred on the page. I ran the web test by itself an it 'failed' due to the error message showing up (I pre-setup the system to always show this error message). I then created a simple load test to run this web test in. I setup the load test to run for 1 minute -- once the load test ran it ran through 20 or so of my transactions -- however, when you view the details for the transactions (or tests) it shows 20 were run and 20 were successful -- no errors were generated at all for this test. I ran the webtest again a ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Mesh draw not respecting depth
Hello! I've created a small sample, drawing a few Box's with the Mesh class, just to get the feeling of DirectX. Unfortunally, the objects that appear on top - being most visible - are the one's that are rendered at the end, and not the one's that are farther away from the camera. Im sure i've missed something, but can't seem to find out what (Guess that's because its such a newbie question... ) Well, thanks for your atention. I can post the code if its of any use. Have you use any of the tutorials as starting point The first 3 tutorials don’t activate the z-buffer. Anyway you should check if you have set EnableAutoDepthStenc ...Show All
Visual Studio Express Editions Receiving WMI configuration error. SQL Server System Configuration cannot be executed due to that
Hello PPl, I am getting this error again and again. The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine mymachine Error:2147749896 (0x80041008). I uninstall all version of Visual Studio 2005 just kept Microsoft .NET Framework 2.0. Still I am getting this error when I am running SQLEXPR.exe to install the SQL Server 2005 Express. PLEASE HELP! Thank you. I found this batch file and ran it and it fixed my WMI problems on SQL Server 2003. Copy this into notepad as save as fixwmi.cmd and then fro ...Show All
Visual Basic System Update Required
Hello All, I published my application using MSBuild which builds and publish the application. However when I tried to connect to the application from a client machine it errors out on the System Update Screen. The error messag was "This application requires your system to be updated to Microsoft.Practices.Enterprise.Logging Version 1.1.0.0" The dll is in the publish directory on the server. Any idea why this is happening Thanks. The 'System Update Required' dialog is ClickOnce telling you that it can not find a prerequisite in the GAC. Version 1.1 usually indicates a .NET ...Show All
SQL Server SQL Server 2005 - Transactional replication involving depricated text and ntext data types
I'm currently trying out transactional replication with updatable subscriptions across two 2005 servers. I'm finding problems replicating information that is of type text and ntext between the subscriber and publisher. Setup: ------------------------ Server 1 - Publisher and distributor replicating all columns of a small test table. Default values have been used pretty much 100% except for the change of distributor profile to 'Distribution Profile OLEDB streaming' as per a section I found in the docs about replicating these depricated data types. Server 2 - Subscriber with the replicated table created from a snapshot generated when the re ...Show All
.NET Development XP Home vs XP x64
I have seen a range of comments here from people with an Athlon 64 processor but only having Windows XP Home installed. First some bad news, Microsoft has EOLed XP Home, they recoment moving to XP Pro or XP Pro x64. x64 was RTM back in Mar 31, 05 so its not quite a year old in the market place, so its not going to be as rich for drivers. I have an Audigy 2 card, drivers for x64 are available, I have a Webcam Live Ultra, drivers are late, Everything else is OK Microsoft's Intelipoint and Intelikey dont work. etc. Games works OK, so moving to x64 is relatively painless for a consumer, but bear in mind, XP x64 is not being promoted ...Show All
Visual Studio Team System What about Database Design?
I keep searching the MSF Agile Process for a "Design Database" work item, activity or task. But I cannot find it. Isn't it considered as part of the process Thanks. That's a specific task that would not be applicable for all projects. The default work items are not intended to be all-encompassing, but representative of the tasks you need to perform. ...Show All
