TMedhurst's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Problem migrating to Managed DX 2.0...
Well here is the deal. My app modifies an offscreen surface each frame and then updates a texture with that surface's data. Then that texture gets rendered on a quad that uses the whole screen with TransformedTextured Vertices. This all worked right with the previous version of MDX but it doesn't show anything now. My render method looks like this: dev.UpdateSurface( this .frameBufferSurface, null , this ._frameBufferTexture.GetSurfaceL ...Show All
.NET Development DataSet merge method
Problem with DatSet merge method in .NET Framework 2.0 Beta2 I have an problem with the DataSet merge method: Our application middle tier returns an untyped DataSet which I merge into an typed DataSet. Something that works like: Dim ds As New DataSet SqlDataAdapter1.Fill(ds) DataSet11.Merge(ds) In .NET framework 1.1 the data is merged into the typed data table with correspondent tablename. In .NET framework 2.0 Beta2 the merge method adds n ...Show All
Windows Forms Really need better component layout control.
I have just spent the last year working with Java Swing, and while it isn't perfect it sure is nice! Especially the different layout engines for components. MS really needs to STOP shipping non-resizable dialogs, and this would force them to think&n ...Show All
Visual C# It's possible to implement Enum.Parse<T>( string )?
The API for the RTM is the same as it was in 1.1, but generics can be leveraged to improve this. Thanks, In fact, somebody has already made this suggestion: http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=4dc5a86e-6645-44fd-8cc6-154c8ffa2dad ...Show All
Windows Forms Guest user
Hey all, I am getting exceptions when using a Guest user about temporary profile. Is it possible to use Guest user with ClickOnce Thanks. Hey, I have written a form application and I am writing to write to a registry key under HKLM\Software. The question is that if I am running in full trust does it give me the privilege to write to HKLM, even if I am running as Guest or Normal user Thanks. ...Show All
Visual Studio Express Editions Application goes blanc
Hi when I'm using the graphics system to draw out points on my form in a loop ( finite) , the application sometimes goes blanc. It also doesn't update some labels even when these are in a different function. Anyone had the same problem I use this sub as a delay Sub Delay() Lvoltooid.Text = CStr ((i / 100000) * 100) & "% is voltooid" PgbVoltooid.Value = PgbVoltooid.Value + 1 System.Threading.Thread.Sleep(TBTijd.Value) ...Show All
Windows Forms Thread communication
I am trying to solve a minor curiousity and despite reading several threading sources i simply do not -understand- how to do it. I have a class A. Class A is created when the MainForm is created. Fine. Class A also contains a public event OnData delegate to pass data from class A to the mainform. This also works fine. I get thread synchronization problems when introducing a thread to do my data reading. I introduced into class A a void ReadMyDat ...Show All
Visual Studio Recursive Delete - A real Clean build
I'm having trouble recursively deleting through MSBuild. All the examples I've seen of the RemoveDir Task assume a single folder as the input. This is useless to me because the project I'm building a web project so the root deployment folder is always locked by IIS. Here's my folder structure: Build Root Version Source Compiled Deploy Archive Build Root: where the msbuild file sits Version: Container folder for Sou ...Show All
Visual C++ App hogs CPU when mouse pointer moved over it
My MFC app hogs CPU when the mouse pointer is moved around over it. I'm using task manager to monitor the CPU usage. No othe app seems to do this. If my app has a modal dialog box up then it doesn't happen. The app is built with Visual Studio 2005. My main window is only handling WM_CLOSE, WM_ERASEBKGND, WM_SIZE and WM_SYSCOMMAND (none of which get fired when you just move the mouse pointer around over it). If you get furious with the mouse p ...Show All
SQL Server using UniqueIdentifier list in Select * from table where UniqueIdentifierCol in UniqueIdentifierList
I'm looking for a way to extract rows from a table where the row's primary key is an UniqueIdentifier using the "where . . . in" clause of the "select" statement. I have a program (VB.net) that assembles a list of desired UniqueIdentifiers and casts them as a single string of comma separated GUID.tostring values. This list string would be passed to a stored procedure such as: Procedure FindPartsInUIDlist ( @Select ...Show All
Smart Device Development Invalidate() - NotSupportedException
using Visual Studio 2005 beta 2 / Compact Framework 2.0 I simply call Invalidate from a method within my Form and i get this -> "An unhandled exception of type 'System.NotSupportedException' occurred in System.Drawing.dll Additional information: An error message cannot be displayed because an optional resource assembly containing it cannot be found" Any idea Hi Adiraz, Note that SerialPort events are han ...Show All
.NET Development This must be a dumb question
I'm very new to XML and am completely confused by namespaces. I've created a schema and xml data file but I'm having problems validating the data, I get the error "Visual Studio could not locate a schema for this document". Here's a cut down copy of the schema and data file. I hope someone can show me the error of my ways! < xml version="1.0" encoding="UTF-8" > <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> ...Show All
.NET Development How to measure the memory pressure?
I am designing a .Net component that relies some on a quite elaborate cache system. The cache can be regenerated at any time but at great CPU/IO expense. The WeakReference is not enough my own needs because (for example) it cannot take into account the regeneration costs that may vary from a WeakReference to an other. I would like to know how the memory pressure that applies on the current process can be measured in .Net I have seen the method ...Show All
Windows Forms ClickOnce Deployment URL error
Hi, I am having problems depoying a ClickOnce application to a different server than it was packaged. What I am doing is the following * create the client install (including signing) then include that in a larger MSI install hosted for download on Machine A. * Have a customer server, Machine B, download and install the MSI. This server is then set up to serve the ClickOnce applicaiton to its clients via URL. * A client, ...Show All
Visual C++ Tips for speeding up debugging (stepping through code)?
I've got one particular large C++ project that, in VC 2005, when stepping through code in the debugger, it takes approximately 2 seconds for each hit of the F10 key (i.e. each line of code) to be executed. I've tried many things to attempt to speed it up: disable intellisense, renaming feacp.dll, removing all additional output windows, watch, breakpoints, etc, removing navigation bar from text editor window, disabling anti-virus on the machine ...Show All
