The Loiner's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Screen shots on the Xbox 360
I'm simply wondering if there is a way to somehow capture the backbuffer contents to a file on the xbox 360 and then transfer that file back to the PC I've checked the framework docs and this forum and it doesn't seem to be possible, but I'm hoping that I am wrong. :-) A screenshot looks slightly less amateurish on a website than if I photograph my TV, even though it still looks like programmer art. The one solution I have come up with is to run the same code on the PC and capture the screen that way. The problem is that my PC GPU isn't on par with the Xbox 360 and I would prefer not to have to write separate shaders just to enable me to capture the screen. Plus, the screen shots would be uglier. I will ...Show All
Visual C++ how to display tab page!!!
hi.. what i want to do is to show a tab page of a tab control , in a event handling procedure.. i didn't get any articles on this subject, also i read all the functions of a tab page class i thought would do the work.. all i got was this .. tabctrl1->get_item(2)->show(); but it didn't work.. i m using vs.net 2003 ,any articles or code would be good.. thanks in advance.. Can you provide more information: are you using MFC or are you using .NET Framework, or something else (e.g. an ActiveX control). Can you post some code of your app where you are trying to show a tab page ...Show All
.NET Development ItemDataBound
Hello, everyone, I am working with the VSTS 2005 and I am trying to hide some fields (cust_id) from displaying in the grid view. The VS 2003 had a ItemDataBound in the namespace UI.WebControl. Is it been replaced in 2005 Can someone point me to the right direction Thanks, Antonio So first of all, are you adding, manually, the columns in design or you let .NET autogenerate columns based on the results of the SQL Query . This can define the solution: If you add manually the columns in design, as I told, just use the "visible" tick in the screen when you edit the column and uncheck it. If you don't add manually, and use autogenerated columns, just go to the events list of the gr ...Show All
.NET Development New customer acquisition count
Hi there I have a field, customer acquisition date which is part of the customer dimension table and is a date field. I want to have a count of customers who were acquired on a specific date and I want this date to be related to my other measures, so I can show number of customer acquired and Revenue for a particular date period. Do I need to remove from customer table and create a separate fact table with customer_id and date and a value (say 1) and then join this table to all other tables Or is there a way to join the field as it is to the date table Thanks in advance Derek Moved thread to Data Access from VB IDE... Personally I would create a query to pull the neccessary info into a ...Show All
Visual Studio 2008 (Pre-release) Buttonquestion
hi, is it possible to create a button that doesn't have a square shape, but for example the shape of an "L" This would help me a lot. tnx in advcance, Kimme sure you can. You simply need to create a ControlTemplate for your button and define your wanted geometry. So either you create your own button and define its template or just add a button and apply the style which define the attended template. ...Show All
Visual Studio Team System GetLocalWorkspace Exception
Hi, I'm having a big problem with TFS regarding builds ;) Until recently I had everything set-up, and everything was running happily. The problem that is now occuring is that builds are failing for a strange reason... Here is the event log: Event Type: Error Event Source: TFS Build Event Category: None Event ID: 3000 Date: 5/3/2006 Time: 10:26:36 AM User: N/A Computer: BUILDMACHINE Description: TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 5/3/2006 8:26:36 AM Machine: BUILDMACHINE Application Domain: msbuild.exe Assembly: Microsoft.TeamFou ...Show All
Visual C# Cast Problem with ArrayList.ToArray()
I am using an ArrayList (stuck in 1.1 land) to build an array dynamical, but because it needs to be serialized (and therefore typed) I am converting the completed ArrayList to a typed Array[]. Here is code that works: enrollment[] manifest_final = (enrollment[])manifest.ToArray(); And here is code that give an Invalike Cast error: ( enrollment)manifest[ i ]).lectures = (eLecture[])((enrollment)manifest[ i ]).tempLecs.ToArray(); The second line deals with an arraylist 'tempLecs' inside each enrollment object. I don't know if that scope is part of the problem. Does anyone have any ideas Thanks in advanced! Andrew Update: //create typed arrays out of ArrayLists for(int i = 0;i < ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Poser Model
I exported a model (V3) from Poser as both a DXF and 3DS file, ran these files through the Autodesk converter to make FBX files and loaded both of these my XNA Game Studio Express program. The FBX model from the DXF file yielded a big red square. The FBX model from the 3DS file yielded just the tummy of V3. Any suggestions as to the proper settings for the conversion of DXF and 3DS file to yield useable FBX models Thanks for any insight. Cheers, Scott P.S. Yes, V3 was clothed. Maybe that's the problem Thanks, Gonzo! I tried the Poser Second Life figure and the 3DS seemed to move from Poser to XNA OK except that it came with its ground plane. The DXF came into XNA via .fbx as a big red squar ...Show All
Gadgets can't "build" a valid gadget file!!! UGH!
I have created a zip file. I have all the proper files in it. I rename it to x.gadget and the icon changed to a sidebar gadget icon. I double-click it and it prompts to install the gadget. I hit "Install" It pops up an error message saying this is not a valid gadget file. In the directory it puts a folder with my gadgets name with ".~0019" appended to the end of the foldername. The number increments with each attempt. MyfolderName.gadget.~0019 What is going on by the way, I've used the native Vista ZIP ('compressed folder') support all the time to create gadgets, without problem. Unless your OS configuration is somehow different than mine, I would not expect that to be ...Show All
Visual Studio Tools for Office Why no RefEdit control in VSTO?
I have searched high and low, and other than establishing that it does not exist, I have not been able to discover why no one at Microsoft saw fit to include a refedit type control in VSTO, it is incredible. The inputbox alternative that is suggested is clunky and interupts the visual flow of a good GUI. The actions pane control (a wonderful addition) would be the perfect place to be able to add a refedit type control, but alas, it's not possible. It seems that as a range-selecting tool is used in a great many Excel built-in dialogs, (defining named ranges dialog, chart wizard, etc) there is clearly a control available somewhere within the guts of Excel. Why was this not included in VSTO This oversite is inexcusable and ought to be re ...Show All
Gadgets Can I determine if the screen saver is active?
i have been playing around with a weather gadget and I would like it to stop refreshing if the screen saver is active. Can this be done Can I determine that the screen saver is active from my Javascript code Chris No problem - we use these on the inbox gadgets; for example, we turn off the clock when its not visible, to save cycles spent calculating graphic rotations. ...Show All
.NET Development SchemaImporterExtension - machine.config
Hi! I created the derived class like shown in the sample. Now I can't get the debugger to step into my class. My machine.config looks like this (in contrast to what the sample is assuming I guess): < configuration > < configSections > < sectionGroup name = " system.xml.serialization " type = " System.Xml.Serialization.Configuration.SerializationSectionGroup, System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 " > < section name = " schemaImporterExtensions " type = " System.Xml.Serialization.Configuration.SchemaImporterExtensionsSection, System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 " /> & ...Show All
SQL Server Only one CPU is used by the server
How can I utilize all four CPU’s by the SQL server Configuration: HPDL385 2 x Intel Xenon 5160 3 GHz Dual Core, 4 GB Ram Windows Server 2005 SQL Server 2005 Standard Edition When running heavy SQL SP’s, the CPU load is only 25% nicely distributed over the four CPU’s as if only 1 CPU was present. Is it the operating system that creates this problem or the SQL server How does the SQL server react if the license somehow is configured wrong - is this the problem Regards You could set the processor affinity so sql server uses only one cpu and watch what happens, then allow it to use more and see the difference. http://msdn2.microsoft.com/en-us/library/ms187104.aspx (i think m ...Show All
Visual Studio 2008 (Pre-release) How can I make a mouseOver also cause a focus event?
For example, say I have a button. How do I make it so everytime I mouse over the button, it gives focus to it as well I got this to work in C# code behind but I'm wondering how to do this in XAML using a trigger Thanks. I actually tried the same code last night but whenever I tried to run my program then, it completely crashes it. I run it inside of the debugger too and it doesn't even throw an exception -- it just dies completely :( I thought I was doing something wrong then. I actually have a style that has a control template. Then I set a trigger for the IsFocused event to create a different look and feel when a button is focused. I then tried adding another ...Show All
Visual C++ va_list and string table
Hi, I have a string table in my resource file and in my application I want to load these strings with function below 'load_string'. Strings within table contain %s,%d,%c, etc placeholders therefore I am using 'vwprintf' to resolve them. However the debugger on vwprintf fails and I can't figure out why Can you please help void load_string(UINT nResource, ...) { va_list args; TCHAR * lpszString = new TCHAR[1024]; LoadString(GetModuleHandle(NULL),nResource, lpszString, 1024); va_start(args, lpszString); vwprintf(lpszString, args); va_end(args); } int _tmain( int argc, _TCHAR* argv[]) { load_string( IDS_TEST, _T( "blah" ),101); return 0; } IDS_TEST => "Hello, %s you are %d years old!" I thi ...Show All
