Daveo__'s Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Animating Sprites
Maybe not the best place to ask but I found some good sprites that I wan to play around with but they come in like 100 bitmaps for walking animation. What's the best way to handle this, import each bitmap as a texture and do some code to figure out when to show what texture Found this http://www.c-unit.com/tutorials/mdirectx/ t=46 but that's in one texture, how can I do it if I have a lot of bitmaps Rick Hoskinson wrote: Typically it will always be better practice to load "sheets" of sprites as single textures rather than loading dozens of individual textures for single frames of animation. A much more effective way to deal with sprites is to be smart about using the source rectangle ...Show All
SQL Server CLR .Net Framework 3.0
Hi Is there any way to get the Sql 2005 to load the .Net 3.0 Framework instead of 2.0, when running a Stored Proc Thanks Actually the portion of the .NET Framework used by sqlclr is essentially exactly the same in .NET Framework 3.0 as .NET Framework 2.0. The BCL and CLR layers of the .NET Framework were (except for servicing fixes) unchanged and still return the same version in .NET Framework 3.0 as they did before. See the MSDN documentation for more information on what exactly .NET Framework 3.0 entails: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlong/html/netfx30.asp So except for bug fixes, it doesn't matter to sqlclr whether your machine has .NET Framework 3.0 or ...Show All
Visual C++ CreateFile to device in VB.NET 2005
I have an application that communicates with a USB or Serial device using CreateFile(). It was originally created in VB6 and I ported the project to Visual Studio 2005, and it works fine. But, I wanted to move the old C code to a dll or class and then use the new GUI features in VS2005, along with CLR, managed code, etc. With the class version (done in a mixture of managed C++ and the old C code compiled as not managed), it compiles fine and I can step through the code from my managed VB GUI to the unmanaged C code in the class, but now CreateFile fails, with a return code of 2 ("The system cannot find the file specified"). Can anyone explain why CreateFile works fine in the old unmanaged code, but now doesn't work in my new 2005 pro ...Show All
.NET Development Error installing dotnetfx3.0
[10/02/06,09:38:05] WIC Installer: [2] Error code 1603 for this component means "Fatal error during installation. " [10/02/06,09:38:05] WIC Installer: [2] Setup Failed on component WIC Installer [10/02/06,09:38:14] WapUI: [2] DepCheck indicates WIC Installer is not installed. [10/02/06,09:38:14] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0 was not attempted to be installed. [10/02/06,09:57:29] WIC Installer: [2] Error code 1603 for this component means "Fatal error during installation. " [10/02/06,09:57:29] WIC Installer: [2] Setup Failed on component WIC Installer [10/02/06,09:57:35] WapUI: [2] DepCheck indicates WIC Installer is not installed. [10/02/06,09:57:35] WapUI: [2] DepCheck indicates Microsoft . ...Show All
Visual Studio Team System Error TF20015 - The field {0} contains a value that is not in the list of supported values.
I have a new field to replace the System.Reason field because once you save a Work Item that field becomes Read only and can only be changed on a transition. So I created a new field with 2 conditional rules based on System.State. But when I try to save the Work Item I get an error that says the value in DashReason is not in the list of supported values. When I create a new WorkItem the State is Active and the DashReason is New (based on the default in the WHEN tag). New is in the list of ALLOWEDVALUES. The Field definition is included below. This is driving me nuts. What am I doing wrong <FIELD name="DashReason" refname="Nowcom.Dash.Reason" type="String"> <ALLOWEDVALUES> ...Show All
SQL Server Can't store chinese in SQL Database
update Food set FoodName = ' 杏仁' where ID = 100 in database as thanks, the field needs to store chinese which must define as NVarchar, NChar, or NText The Insert SQL as insert into Food (FoodName) values (N'杏仁' ) The Update SQL as update Food set FoodName = N' 杏仁' where ID = 100 ...Show All
SQL Server Problem setting Package Variables in SSIS Package
Hi, I am making use of the DtUtil tool to deploy my package to SQL Server. Following is my configuration: 32-bit machine and 32-bit named instance of Yukon. I have some package variables which need to be set in the code. Previously I did it as follows: Set the package variables in the code. For example: pkgFile.Variables["User::DestinationServerName"].Value = <myvalue> Deploy the package as follows: applnObj.SaveToSqlServer(pkgFile, null, destinationServer, null, null); Here the package was successfully deployed and when i open those packages using BIDS, I am able to see that the variables are set to the values as doen in teh code. Because of oen problem I am not using SaveToSQLServer method. So ...Show All
Windows Forms Web Browser Control cookies
Hey, I am using a combobox to show the URL you are at on the webbrowser control, and I made it so that when you press the Go button it will add the Url to the Combobox list... WebBrowser thiswebpage = GetCurrentWebBrowser(); // Get the currently displayed WebBrowser URLtextbox.Items.Add(thiswebpage.Document.Url); But wehn I look at the combobox it has the webpage URL you were jsut at about 10 or more times in a row...So it is saving the cookies more then once, how do I fix this Thanks :) Hmmm, What event did you put it in the Form1.cs code becuase I could not find it... Well what you told me gave me an idea of what it should be like...so would this work if (URLtextbox.Items. ...Show All
Visual Basic Could not find any resources appropriate for the specified culture or the neutral culture Error
I have this error: System.Resources.MissingManifestResourceException was unhandled Message="Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "_Cryptography.ViewMessage.resources" was correctly embedded or linked into assembly "Cryptography - Advanced" at compile time, or that all the satellite assemblies required are loadable and fully signed." Source="mscorlib" StackTrace: at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean c ...Show All
.NET Development How to access parameters values by reflection?
Hi! Imagine the following scenario: public void foo( int i ) { ... } public void foo2( ) { ... } Assuming that foo calls other methods and somewhere in the call stack, foo2 is called. Analysing the stack frame, I can figure out that foo has been called... and i can inclusive get its signature... but, can I extract the value of "i" If so, how I'm using the framework 1.1 Thanks in advance jmn try this out .... Profiling API ... its says under the "Describing and Decoding Function Arguments" heading Quote: "Now that you have callbacks for the function at the point it is being entered and exited, you can examine arguments and return values." i had a similar problem ... i havnt ...Show All
Windows Live Developer Forums Get Coordinates onclick
I'm fairly new to javascript, and, as such, I have what I feel like should be a simple question. I want to get the coordinates (either pixel x, y or latitude, longitude will do) of where the user clicks on the map. I want to place push pins where they click, and, ultimately, I want to allow a connect the dots type drawing where the user simply clicks and a line is connected from where he previously clicked. I was hoping this could be raised as an event, but it doesn't look like it. Thanks in advance. I tried attaching both of these functions (separately) to the onclick event. I'm pretty sure there's a typo in the first one, so I changed the function to alert(window.event.x + ',' + window.event.y). Every time I clicked it felt like it ...Show All
Smart Device Development How to integrate cradle scenario with ActiveSync on PPC and on Destop pc
Hi i Ilya Tumanov I wanted to use OCS for syncing data between ppc DB and desktop pc DB. OCS is built to work, if both the database on the desktop pc. I wanted to use client database on pocket pc (right now testing on emulator), so user can connect pda to desktop pc and sync data to the server db. Although I connect to emulator thorugh ActiveSync, database path on emulator not recognised by OCS, because no support from OCS. so, I should use some connectivity tech. (like RAPI). Please suggest me the best way to get it done. I would appreciate your help. Thanks, Your question seams to be answerd here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1187971&SiteID=1 ...Show All
.NET Development Comvisible object, config files, and classic ASP (How to set local .NET config file for COM Interop).
We are developing a comvisible object that will be called from an asp page. This object in turn will load other .net assemblies, E.G. Entlib, other in house items, WSE3.0 imp, etc… Most if not all of the assemblies require settings in a configuration file. The issue is I am unsure of how to get my comvisible assembly and the others that it loads to read a config file. 1) Where does the configuration need to be placed 2) Does it need to be named web.config or assembly.dll.config 3) Curiosity question here a. Can it be placed in such a place that each site/vdir calling the com object can have a different configuration file Thanks Wayne Yes, but this ...Show All
SQL Server SQL Express - Access Denied Error Code 5
Hi, The install of SQL Express with advanced services on my WinXP Pro PC seemed to go fine but now I look at it and see that the actual SQL server hasn't installed. The log files says: Product: Microsoft SQL Server 2005 Log File: ...SQLSetup0003_HKM1_SQL.log Last Action: Install Finalise Error String: Failed to set registry settings for server network libraries. The action is SetShilohRoot. The error is 5 (Acces is denied) Also getting the same error for product: SQL Server Database Services. Any help would be greatly appreciated. It seems that the installer either didn't have permissions to your registry or that the registry was blocked in some way. If you're an admin when you run the program (unless yo ...Show All
.NET Development Compiling JScript .NET DLLS for testing in NUnit
How do you compile and test JScript .NET for testing in NUnit using VS .NET Well, I guess you don't (since there are no answers... hmm...) I am just using my own unit testing framework for JScript .NET (JSNunit) for those of you who want to test server-side JavaScript. You have to bring it up in a browser but it does work fine (and you don't have to build!) ...Show All
