search and deploy's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. How to gray out screen for pause menu
Hello, I am trying to create a grayed out copy of the screen of my game so that I can render a "pause options" menu on top of it. I think the solution might have something to do with using GraphicsDevice.CreateRenderTarget to render the game to a new texture, and then drawing that texture grayed out. How do I accomplish the actual graying out How (if it is even possible) do I render my game so that the result ends up in a new texture instead of on the screen Thanks! For an even easier option, dump the render target to a texture and use it to texture a base quad with a base color of Color.Gray and use that as your background. There are examples in the Getting Started With XNA bit of the help which seem to indicate that this ...Show All
.NET Development vjslib - not part of the default 2.0 Framework distribution?
We're integrating code from a 3rd party library into our project. That 3rd party library makes use of components in vjslib. When we tried to test our program on a machine that did not have Visual Studio 2005 installed the program failed - missing dll type message. We traced the failure back to a missing vjslib. Each of our developer machines has that dll, so apparently it is installed with Visual Studio 2005. But the library apparently is not included in the .Net 2.0 Framework installation that would be used by non-developers. Can the library be redistributed Is any special configuration required on machines to which we distribute this dll Or is it enough to place the dll in the same directory with all the other .Net 2.0 components ...Show All
Connected Services Framework Reference materials
hi all, I am trying to explore CSF in detail. Have installed the Dev Lite Edition on my Windows 2003 Server machine ( with .Net Framework 2.0 ) and am trying my hand at the HelloWorld sample application. However, it seems there is very little technical reference available online. Can someone please suggest any appropriate resource(s) where one can get an excellent understanding on how to proceed with CSF based developments from the scratch Any help would be appreciated. Thanks - hiren Hi Tilak, I have the following URI's in my App.Config file ( of my WinForm project ). Now, I've Ctrl+clicked on the the SessionManagerUri and the ParticipantUri and both seem to be working. Also, I ...Show All
SQL Server Derived Column or script
Dear All, I am pretty new to SQL2005 technologies. I have a table like this: Name Code Peter 10 Eric 20 I am interested in translation of the “code” to “job role”: Name Code Job role Peter 10 Director Eric 20 Consultant I have tried to use Derived Column and also script – but I am unable to get it to work. Any hints/solution would greatly appreciate. Best Regards, T Michael gave you the solution - you just need to extend it to cover all eventualities: [Code] == 9999 "Something else!" : ...Show All
Visual Studio How to show the help topic for custom Tools Options page?
I have created several custom pages for VS Tools Options dialog but I don't know how I can show my help topic when a user clicks the Help button or presses F1 key. My window procedure never recieves the PSN_HELP notification so I don't know the moment when I should show my help topic. The "Topic not found" window is shown instead. May be, should my topic be assigned to my page somewhere statically Could you help me (My package is unmanaged, for VS2003. I create the windows of the pages manually and put handles to the VSPROPSHEETPAGE structure) Hallo, In order to have VS show your help documentation when the user hits F1 or the ( ) button in one of your custom options pages, you ...Show All
SQL Server Cube Partition
How do you slice a Cube Partition, if you want it to slice by "less than" instead of "equal to" Analysis Services does not give you a choice. Example: Time.FiscalYear AllTime.FY2005 Thanks for all the interesting information furmangg !!!. So when using a tuple or set that defines an arbitrary shape in the slice partition property, SSAS cannot collect consistent data inside a unique partition and it will throw errors during processing. So when designing partition criteria, we also must be aware that slice tuple or set defines non-arbitrary shapes. It should be advised in BOL !!!. Nevertheless, it still does not answer the fact that when using a large set of membe ...Show All
Visual Studio 2008 (Pre-release) Element Binding: Line X1 Y1 bind with UIElement's location
I have a line object on the canvas and along with button. line's X1, Y1 exactly start from the right border of the button and end after some distance. Now what I want is to bind the X1, Y1 properties of the line object with the location of the button. Now e.g. if the button object moves, the line's X1, Y1 should move with button (just because of element binding). (make sure that X2, Y2 should be static, no movement should occur) Can we do that in xaml.... Any question please ask Thanks alot to read this thread :) and too thanks in advance to feed it actually I am binding the X1 property to the button(left edge) similarly you can bind the Y1 property try to wire up an event handler for buttons click an ...Show All
SharePoint Products and Technologies SP Gugu: How to Programmatically change a list item's ContentType by WSS WebService?
Please, help! I can't find any information on MSDN under WSS3 webservices List.UpdateListItems topics how to programmatically change a list item ContentTypeId Calling SharePoint list service like: (adding a list item) XmlElement elBatch = doc.CreateElement("Batch"); elBatch.SetAttribute("OnError", "Continue"); elBatch.SetAttribute("ListVersion", "2"); XmlElement el1 = doc.CreateElement("Method"); el1.SetAttribute("ID", "1"); el1.SetAttribute("Cmd", "New"); XmlElement field1 = doc.CreateElement("Field"); field1.SetAttribute("Name", "ID"); field1.InnerText = "New"; XmlElement field2 = doc.CreateElement("Field"); field2.SetAttribute("Name", "emp_no"); ...Show All
SQL Server Accessing a package's variables from within a custom log provider...or not...
Hi, Given that Task.Validate() exposes the package's VariableDispenser, but LogProviderBase.Validate() doesn't... http://msdn2.microsoft.com/fr-fr/library/microsoft.sqlserver.dts.runtime.task.validate.aspx http://msdn2.microsoft.com/fr-fr/library/microsoft.sqlserver.dts.runtime.logproviderbase.validate.aspx ...I guess that simply means that I can't access a package's variables within a custom log provider Can anyone comment/confirm Any other options/routes to achieving the same.. We live in hope, Tamim. Thanks Darren - I was pretty sure there was no alternative, so it's good to have that ratified by yourself. There is however one cheeky/not-so-neat way round: the 'source' for some events, e.g. PackageStart, give ...Show All
Visual Studio Tools for Office Workbook.save() not behaving as expected.
I have a VSTO 2005 SE add-in for excel in which I need to programatically save the document on an event. When I tried workbook.save() to accomplish this the workbook gets saved with its temporary name eg "Book1.xlsx" in My Documents and doesnt pop-up a save as dialogue even with a document which is previously unsaved. I tried this with a word document and there the behaviour was as expected ie. it shows a save-as dialogue for a fresh document and doesn't when the document has been previously saved. Is there a workaround to avoid this behaviour As a crude workaround I wrote the following code. string path = workbook .Path; if ( String .IsNullOrEmpty(path)) { SaveFileDialog dialog = new SaveFileDialog (); ...Show All
Smart Device Development Using a cdb database with evc++ 4.0
Hi there, I'm quiet new at this stuff (former VB6.0 programmer) and now i'm trying to build an apllication wich should access a database with 5 table's. This application should be running under windows CE 5.0 and therefor i chose the *.cdb database. This is how far i'm right now, i don't have enough background in evc++ or c++ to fully understand the info from the MSDN. Has anybody got an example for me to get me on the way Why you've chosen database which is long deprecated and no longer available And why C++ you don't know instead of VB.Net ...Show All
Windows Forms Method that returns a control
Hey guys, I created a form that contains a single TreeView control. In a background worker I create a TreeView control, populate it, and then return it. Then I tried the following: private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { treeView1 = e.Result as TreeView; } I wanted the control I created on the form to be set to the one created by the method. However, eventhough treeView1 is shown to contain the correct number of nodes, nothing is displayed, the treeView on the form remains empty. If on the other hand I create a new TreeView control in backgroundWorker1_RunWorkerCompleted and then set it equal to e.Result, and then add it to my forms Controls propery, it all works as expecte ...Show All
Software Development for Windows Vista How to suppress "ActiveMovie Window"
Dear DirectShow forum, I am using VMR9 and I have tried setting rendering modes "None" and "Renderless" but my app always pops up a video window title "ActiveMovie Window". Is this normal behaviour, or am I not setting the rendering mode correctly If this is normal behaviour, how can I suppress the "ActiveMovie Window". Best regards, wtrn Update: If I add a VMR7 to the graph (set windowless mode and do not set the window) then RenderFile() works correctly! (it uses the VMR7 I added to the graph, and no window is displayed). I still can't explain why this doesn't work with VMR9, but since I don't need any features of VMR9 I will use VMR7 instead. Best regards wtrn ...Show All
.NET Development Webservice lifecycle
Hi Whats the life cycle of the Webservice What happens when a webservice's webmethod is invoked Does that always read the config file for every call to the webmethod Thanks Gauls Hi Rodrigo, Many thanks for replying to my query i will be glad if you could also answer to my following doubt. According to you above response if the config file is not read for every webmethod(when is the config file read ) call then, i should be able to do the following , I have webservice application that uses some assemblies whoes version number keeps changing and are stored in some folder on the same machine as my webservice. Every Time the assembly version changes i need to change the binding redirect and code base in the we ...Show All
SQL Server Multi-Level Aggregate Functions
I would like to compute the average per county, of the highest aged resident per politicalParty. But I only know how to retrieve the highest aged resident per politicalParty. As such: SELECT state, county, politicalParty, max(age) FROM Residents GROUP BY state, county, politicalParty How do I add the extra level of function indirection, to get the average of that max per county You can do below: SELECT state, county, avg(m_age) as avg_age FROM ( SELECT state, county, politicalParty, max(age) as m_age FROM Residents GROUP BY state, county, politicalParty ) as r1 GROUP BY state, county ...Show All
