Mitty1527's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. GameComponents controlling GameComponents
Most XNA game examples I have seen so far load all the game components right away at the beginning of the game no matter what. I looking to setup a GameComponent (GameWorld) which the user will control to load which will subsequently load several other game entities which are inherited from the DrawableGameComponent as well, but they all controlled by the GameWorld as far as enabled/visible. This appears to work fine so far, I'm just curious though if there is anything wrong with this finite number of game entities all having there own SpriteBatch property because of this. Performance issue when GraphicsDevice is recreated Or even if this is a workable practice In other examples, I've seen certain drawable game entities custom created wh ...Show All
Visual Studio Express Editions Visual C# Express fails to install
I downloaded the Visual C# Express edition CD images , burnt them and tried to install, but the installation fails with the following error: Suite Integration Toolkit Executable has encountered a problem and needs to close. It hapens for both the iso and img files. sauparna wrote: Can somebody help me with my Visual C# express installation I made the changes listed above but still get the error. You get the same error Suite integration toolkit Do you have the final release of SP2 http://download.microsoft.com/download/1/6/5/165b076b-aaa9-443d-84f0-73cf11fdcdf8/WindowsXP-KB835935-SP2-ENU.exe Ensure you have windows installer installed properly. http://www.microsoft.com/downloads/d ...Show All
Visual FoxPro rounding bug in vfp8?
I have found what seems to be a rounding bug in VFP8. Any ideas how I can get around this please I was doing some testing when I found that I was a penny out on digging deeper it seems that when lnValue = 0.57500000000000, Round(lnValue,2) gives 0.57!!!!! when it should give 0.58. This is causing my validation to fail. Is this a bug The strange thing is that Round(.575000000000,2) gives 0.58 but the extra 0's in the scenario above are causing the difference. giuln wrote: same problem also in vfp6 and vfp9... Thank you for the confirmation giuln. ...Show All
Visual Studio Express Editions Re forum comparisation..
Hello, I'm sure I'm in the wrong forum with this thread, but that's only because I want some attention of you 'VB' people at the moment. I've been 'studying' the VC++ forum here, and I noticed that the average 'top poster' in that forum posts about 50 posts a month.. In this forum, I see 'top posters' with about 120 posts a month Now I'm not sure about this one, but aren't here some coders who also know some VC++ that could sometimes have a look at the VC++ forum to see if they can't help I'm asking this because I posted a question a couple of days before, and whereas I would have had about 10 reply's in this forum, I don't even have 1 in the VC++ forum.. This could be because it might be a difficult question, but it might ...Show All
Visual C++ How can i make my editing auto completed?
I use vs2005 to write cpp code A class is defined in a .h file, and I refer to this class in a cpp file including the .h. when I type "->" following a pointer of that class, no hint is showed about the members How can I make it work, thanks Make sure that the .h file included correctly and it's error free. Sometimes the intelisense database not updating properly. Do the following 1. Close the solution 2. Delete ncb file of the project 3. Reload the project. Hope it work. ...Show All
Smart Device Development CE 6 and iostream
Apologies if i'm directing this at the wrong forum. I want to use <iostream> in WINCE 6. I create a new OSDesign (targetting the emulator), build it, and add a sub-application. The new app doesn't see the standard iostream include file. It works fine when i use Windows Mobile 5 in VS2005. Thanks for any help Simon The OSDesign Subprojects and the generated SDK do do only support for the features included in the base Windows Embedded CE OS. The additional features you get when using the SDK ship with Visual Studio. These features are independant of the SDK used. You will not find the <iostream> header in the SDKs include file directory; you'll find it in here: <VS2005 Root>\VC\ce\incl ...Show All
Windows Live Developer Forums Adding a GeoRSS layer from a local file
Hello All, I would limke to add a GeoRSS layer from a local file as oppsed to a web server. function OnPageLoad() { map = new VEMap( 'myMap' ); map.LoadMap( new VELatLong(43.85828, -79.3821), 10 , 'r' , false ); AddMyLayer(VELayerType.GeoRSS, "file:///C:/geolayer.xml" , "test" ); } function AddMyLayer(type, source, layerid) { var veLayerSpec = new VELayerSpecification(); veLayerSpec.Type = type; veLayerSpec.ID = layerid; veLayerSpec.LayerSource = source; veLayerSpec.Method = 'get' ; map.AddLayer(veLayerSpec); } However, I get an error when I do that. If I specify http://loaclhost/geolayer.xml or something like that for the LayerSource property then i ...Show All
Windows Forms UAB Custom Downloader Question
Hi - Has anybody tried running the code posted on the MSDN web site - http://msdn2.microsoft.com/en-us/library/ms978557.aspx. It is a custom downloader class that is used to copy files from a UNC network share. I am getting the following error. I use UAB version 2 and Microsoft Enterprise Library January 2006. System.Configuration.ConfigurationErrorsException was unhandled by user code Message="The type UNCDownloader does not contain the ConfigurationElementTypeAttribute." Source="Microsoft.Practices.EnterpriseLibrary.Common" BareMessage="The type UNCDownloader does not contain the ConfigurationElementTypeAttribute." Any help would be appreciated, Thanks, Olgu. ...Show All
SQL Server how to add/replace a guid column?
I've searched through this forum, and am extremely disappointed that something as simple as this can't be done without resorting to a script component (which I refuse to do): I have a Lookup transformation that returns a GUID value -- or not, so I've configured its error output to ignore failure. That should leave a NULL in the output column, and I should be able to chain a Derived Column transformation that replaces the Lookup output column (e.g. foo) with an expression like: isnull(foo) newid() : foo But there's no newid() function! Who was the genius that decided SSIS should implement different expressions than Transact SQL Is there a workaround, like (DT_GUID)GETDATE() Or do I have to craft a SQL statement in the Lookup t ...Show All
SQL Server select date range
Hi i am facing a big problem in sql server 2005, i have a table call CD_OUTPATIENT_SCHEDULES and i got a field call START_DTTM and the datatype is datetime bellow is my sql,but it gives me the "2005" year data as wel,Y is that but i need to get data between '01/01/2006' and '30/01/2006' Please help me to solve this input date time format should be dd/mm/yyyy select CONVERT ( varchar ( 10 ), apt . TART_DTTM , 103 ), apt . SCHDL_REFNO from CD_OUTPATIENT_SCHEDULES apt where ( CONVERT ( varchar ( 10 ), apt . START_DTTM , 103 ) between '01/01/2006' and '30/01/2006' ) order by apt . START_DTTM regards sujithf Sujithf: In this case since you are conv ...Show All
Visual C# #define INT_SIZE int32 support?
I have a counter that I need to easilly change between int16, int32, int64, float, double, etc when needed. In C I would use a define, but here I can not. I've looked into generics but that won't do because I need to be able to increment the int value and with a struct-generic input for the class that won't work. So how can I do then I tried using int btw but that made it so darn slow! "I need to easilly change between int16, int32, int64, float, double, " When does the type change should take place Ar compile time or at runtime ...Show All
Visual Studio Team System Unexplained warnings from a sproc containing a CTE
I have just imported the following sproc into datadude CTP6 (sorry about the formatting, I can't be bothered to go thru and change it). Note that the sproc contains a CTE: CREATE PROCEDURE csp_GetDependantStreams ( @pStreamDetailID INT ) AS BEGIN ; WITH StrDepCTE AS ( SELECT sd.StreamDetailID, sd.DependantStreamDetailID FROM StreamDependancy sd WHERE StreamDetailID = @pStreamDetailID UNION ALL SELECT sd.StreamDetailID, sd.DependantStreamDetailID FROM StreamDependancy sd INNER JOIN StrDepCTE sdc ON sd.StreamDetailID = s dc.DependantStreamDetailID ) SELECT dep.DependantStreamDetailID, str .StreamDetailDesc, str .EnabledFlag FROM StrDepCTE dep INNE ...Show All
SQL Server past and future date
How should I find the dates for 3 days past and 5 days future. Such as TodayDate-3 and TodayDate+5 base in the date only, discarding the time JIM.H. wrote: How should I find the dates for 3 days past and 5 days future. Such as TodayDate-3 and TodayDate+5 base in the date only, discarding the time SELECT convert ( varchar ( 15 ), DATEADD ( day , - 3 , GETDATE ()), 101 ) AS [3 Days Ago] , convert ( varchar ( 15 ), DATEADD ( day , 5 , GETDATE ()), 101 ) AS [5 days from now] Adamus ...Show All
SQL Server parameter boxes are empty
Hi, I am have a reporting server which connects to a analysis server which connects to a sql server and a db2 server. I am using windows integrated security all the time except for the DB2 connection. That is a fixed username/password. Reporting server (RS), analysis server (AS) and sql server are all on the same machine. I created a local group and added the correct users to it. I gave that group browse rights on the reports so that works correctly. I created a role in AS and added that group to that role. Gave all read rights to that role. I created a login for that group on the SQL server and gave that group db_datareader role. When I connect as an administrator every reports runs fine. When the test user connects t ...Show All
Visual Basic FileSystemWatcher want see if file is changed?
Hello, I have a problem with an application I am building that should copy a bgi file (from the program BgInfo ) each time the file changes (when a user has edited the bgi file). But my application doesn't want to copy the file, when it changes. This is the source code: Imports System Imports System.IO Public Class FileCopyAgentMain ''Declare the public variables that can be used in all subs and functions Public errortext As String = Nothing Public PathToFileToWatch As String = "\\5.121.178.206\test\BgInfo\" Public FileToWatch As String = "test.txt" Public PathToCopyTo As String = "C:\BgInfo\" ''When the program starts, it copies th ...Show All
