Software Development Network Logo
  • VS Team System
  • Visual Basic
  • Windows Vista
  • Microsoft ISV
  • Visual Studio
  • .NET Development
  • Visual C++
  • Windows Forms
  • Visual C#
  • Audio and Video
  • SharePoint Products
  • Visual FoxPro
  • Game Technologies
  • SQL Server
  • IE Development

Software Development Network >> David S. Anderson's Q&A profile

David S. Anderson

Member List

barkingdog
Wouter Veugelen
Ofir Epstein
三晋一枝花
boston_sql92
Itzik Katzav
Lynette2
George2
Robert Kozak
Neo the 1
GertB
95se5m
daniel mark
raedbenz
Evan Mulawski
SNAFU
Lawrence 007
stswordman
Rattlerr
bishoycom
Only Title

David S. Anderson's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Texture Tweening Using Only Textue2D(Sprites)

    This all refers to 2D objects. I have 2 rigid bodies connected by a hinge joint in my physics engine. These two bodies represent a leg. The leg, physically, can bend as you would expect. I'm trying to figure out how to texture this bending leg so that the leg sprite(s) looks like one continuous image as it bends. (Texturing the leg parts individually is not an issue) I belive this is called "tweening". Is this possible using only Texture2D objects Or am I going to have to build a custom sprite/quad to handle this -Jeff One way to do this would be to have one section of the leg overlap the other slightly. For example, one texture is a thigh and the other is knee to foot - the hinge is placed at the centre of t ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. ModelProcessor transforming verticies?

    Okay, let me start off by describing what I'm trying to do: For my collision detection, I want to be able to access the verticies of my meshes to store them in octrees. Later on I will use these verticies to make simplified collision geometry (like planes, bounding spheres, bounding boxes, etc). I've created a custom ContentProcessor for my model that sticks the ModelMeshContent.VertexData and indexBuffer into the ModelMeshContent.Tag; then at runtime (loadTime) I step through the VertexData stream and pull out the Verticies and work with them to create my octree. When I use the verticies that I pull from the VertexData to draw simple bounding cubes in the same world space as my original Model is in, the don't line up. The bounding geo ...Show All

  • SQL Server Restoring a SQL2005 backup to a SQL 8.0?

    I have a SQL backup that I created on SQL 2005 but need to restore it on a SQL 8.0 SP4 installation. I receive an error when I try to restore it. The error is : Error 3169: The backed up database has on-disk structure version 611. The server supports version 539 and cannot restore or upgrade this database. RESTORE FILELIST is terminating abnormally. Any ideas This is not possible, you probably will have to a an export of the database. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All

  • .NET Development Is it possible to enumerate a USB device ......

    hello.., I am doing a USB project in windows XP, in which i need to eject the any USB mass storage device which is plugged-in , for this i am using CM_Request_Device_Eject(). And it is working well. But when more than one device is plugged-in to the system, sometimes, there are cases that more than one device is getting the same deviceInstance, basing on which i am ejecting the device. Due to this the CM_Request_Device_Eject() is either ejecting the recently plugged-in device or ejecting the already ejected device by returning S_OK. To avoid this mismatch of the DeviceInstances, i want to enumerate the plugged-in devices for every minute. But when i do this, GetLastError() is returning NO_MORE_ITEMS. So, my doubt is.. Is this possible to ...Show All

  • Smart Device Development Flickering while moving...

    Hi, I need your help. I've created sample application for moving image control. For that app, I've created a usercontrol class and that control was created on the Button click event. that control was moved thru timer. Flickering is caused while moving that control. How to move graphics control without flickering Please send your suggestion or links. User Control class:- ***************************************** Public Class TransparentImage Inherits Control Private bmp As Bitmap Private imgattr As Imaging.ImageAttributes Public Sub New(ByVal strFile As String) bmp = New Bitmap(strFile) imgattr = New Imaging.ImageAttributes imgattr.SetColorKey(Color.White, Color.White) Me.Size = bmp.Size End ...Show All

  • Visual Studio Can't get access to debugger

    I have just uninstalled Visual Studio 2005 and replaced it it with Visual Web Developer 2005 Express Edition as its trimmer feature set much better fits my current usage. With Visual Studio 2005, I was able to easily call up the debugger from within my website app using the "debugger" statement. (I did have a problem of a remaining broken option to access VS7 which I have long since uninstalled). Now with Web Developer Express installed, I don't get an option to access the debugger anymore when the "Choose a debugger" dialog comes up. (I still get the broken VS7 option though) What has happened to that option and can I get it back Hi, I belive what you are asking for is th ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Tile Engine Tutorial Part 4!!! - Map Editor!

    We have just posted part 4 of our Tile Engine Tutorial by our own Kurt Jaegers! This installment replaces the current map array declarations with a simple map editor that will allow us to visually design and save a map using our tile sets. Part 4 also introduces to mouse input and control along with some basic text rendering... by the time you finish this tutorial you should be able to create your very own tile based map and save it... and reload it the next time you are in the application! http://www.xnaresources.com Haha, always blame it on the gfx developer ;). Nice to see part 5 is on its way, although it's all quite self explanatory the tutorials have been nice to read. They're well written and actually produce something, ...Show All

  • Visual C++ How to use LoadLibrary (win32 api) in C++/CLI without P/Invoke??

    Hello All, I'm trying to call an unmanaged win32 api "LoadLibrary" from my C++/CLI based project. I'm using Visual Studio 2005. +++++++++++++++++++++ Project Settings: In C++ compiler command line, I've a "/clr" switch Also in the Linker command line, I've a reference to "user32.lib" +++++++++++++++++++++ In "Stdafx.h" I've added "#include <Windows.h>" The error I get is: error C2039: 'LoadLibrary' : is not a member of '`global namespace'' and (followed by) error C3861: 'LoadLibrary': identifier not found ++++++++++++++++++++ I'm not interested in using P/Invoke facility (DllImport attribute) to invoke this api. What am I missing in the pr ...Show All

  • Visual C# Infragistics problem

    i am getting following run time error in asp.net applicaion  i am using infragestic.web.ultrawebgird i have included dll Infragistics.WebUI.Shared still i am getting a error   Compiler Error Message: CS0234: The type or namespace name 'Shared' does not exist in the class or namespace 'Infragistics.WebUI.(are you missing an assembly reference ) ...Show All

  • Visual Studio Error During Installation

    Hi, Whilst attempting to install V3 of the SDK, I get this error: --------------------------- Error --------------------------- Error 1402.Could not open key: HKEY_CLASSES_ROOT\.htm. Verify that you have sufficient access to that key, or contact your support personnel. --------------------------- OK --------------------------- I am running as admin and have verified that the administrator has access to that registry key. Also, I have run regmon to check any registry access failures - none are reported. Anyone know what else might be causing this Thanks, Kent Hi Kent, I haven't seen this error before. Can you manually add a new key under that HKCR\.htm key I'm not sure what the Visual ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. InvalidCallException on my work computer with DrawUserPrimitives

    When calling this code at home: Device.DrawUserPrimitives<VertexPositionTexture> (PrimitiveType.TriangleList, 2, vertices); It works perfectly, but when running it at my work computer I get a InvalidCallException (External component has thrown an exception). It's the same exact code. Before this I used the SpriteBatch class and it worked with both machines, now I have written my own Sprite class and I get this exception. Anyone of you know why Thanks in advance! The dbmon utility (you can find many variants of this through a websearch) is useful for capturing debug Direct3D output while developing a game in C# Express. I have it running pretty much permenantly in a background window... ...Show All

  • SQL Server How Does Linear Regression Handle Missing Values for Prediction and for Training?

    Q1. Model Prediction -- Suppose we already have a trained Microsoft Linear Regression Mining Model, say, target y regressed on two variables: x1 and x2, where y, x1, x2 are of datatype Float. We try to perform Model Prediction with an Input Table in which some records consist of NULL x2 values. How are the resulting predicted y values calculated My guess: The resulting linear regression formula is in the form: y = constant + coeff1 * (x1 - avg_x1) + coeff2 * (x2 - avg_x2) where avg_x1 is the average of x1 in the training set, and avg_x2 is the average of x2 in the training set (Correct ). I guess that for some variable being NULL in the Input Table, Microsoft Linear Regression just treat it as the average of that varia ...Show All

  • Visual Studio 2008 (Pre-release) Extensible DLINQ mapping for application types.

    In my current data access layer code I often map a pair of FromDate and ToDate database table columns to a DateRange object in a business entity. Are there plans to implement an extensible sql column mapping mechanism in Dlinq to support automatic mapping of application types Jon, Currently we do not plan to add additional support for computed values in mapping. As alternatives, you could use a DateRange property that simply returns the difference between the mapped fields. You could also map to a view with the computed column. Since the abilities in views and C#/VB language are a lot richer and safer than what we can put in mapping, we have not included this feature. Thanks. Dinesh ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. New version of Octtree Game Component

    I just uploaded version 0.1.2 on filefront http://hosted.filefront.com/ClydeCoulter in the XNA folder. I'm still working with CodePlex for a project there. (I think they thought it was for the same project since Quad and Oct were the only part of the name difference). I have made several fixes to and add more support for the OcttreeGameComponent class and added a simple example of the same in the TestOcttree1 project. I really would like some feedback on this project and the Quadtree project since there have been lots of downloads. How are you using it Are you using it or just curios Problems Enhancement that you have made....etc.... Post to answer this post or use the Forum at the quadtree project on CodePlex for both proje ...Show All

  • Windows Forms Sending a file path as a command line parameter

    I'm trying to associate a ClickOnce application with a file extension. The command key in the registry allows me to format a command to open my application and send the full path to the file to open as a parameter. Since this is a ClickOnce app, command line arguments are sent via a URL. Unfortunately, sending a file path as part of a URL seems to cause some problems because of unescaped characters (colon, backslash and space): *Activation of " http://www.mywebsite.com/appDir/ClickOnceApp.application open="C:\Transfer\Test File.tst "" resulted in exception. Following failure messages were detected: + Invalid URI: The URI scheme is not valid. Does anyone know of a workaround for this issue ...Show All

©2008 Software Development Network