amendez's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Creating depth textures and getting back buffer in beta 2?
Alright, so the API for this is totally different for beta 2. That's fine. But I can't see how you create depth textures now. I'm using them to render shadows. Also, how do you get and restore the back buffer now Do you do something like: RenderTarget2D backBuffer = (RenderTarget2D)device.GetRenderTarget(0); ... device.SetRenderTarget(0, backBuffer); Matthew Picioccio - MSFT wrote: There is no way to get the contents of the depth buffer with the current API. You could render that information into a regular color buffer, but that's definitely not ideal. This was mostly done for cross-platform compatibility. This does complicate a number of shadowing patterns, which we are aware of. If this is a major problem, then please ...Show All
SQL Server Storing calculated measures into existing measure groups
Apologies if this is a really obvious question, but how do I put calculated measures into existing measure groups I have a calculated member Z that's defined as Measures.X / Measures.Y. I want to put Z in the same measure group as X, but I don't see an option to do so on the "Calculations" tab. Thanks! Not sure what would it mean to "put" calculated measure into measure group. You can specify AssociatedMeasureGroup for calculated measure, but it has no meaning for semantics or functionality, perhaps some effect on UI - i.e. in some client tools such calculated measures will be grouped together with measures from their measure group. ...Show All
Visual Basic MDI parent form and child form
Hi, I m doing migration from VB6 to VB.net Previously, i call a child form within MDI form is using call form1.show() Whereas when upgrade to VB.net, even i change the call method to Dim frm1 as new form1 form1.show() But it still give me AccessViolationException The above coding gives me no problem when calling 1 form from another form but when i add MDI form it causes it Error!!! Does anyone know how to solve this problem HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Try changing the following piece of code (in bold) Get If m_GlobalForm Is Nothing OrElse m_GlobalForm.IsDisposed Then m_GlobalForm = New MDIForm() End If Return m_GlobalForm End Get ...Show All
Visual Studio VS 2005 Pro SQL Version
Which Edition of SQL comes with VS 2005 Pro The VS 2005 Product Comparison shows it coming with SQL Server Developer Edition (which is what I need). But the Trial version I downloaded came with SQL Server Express, which doesn't include any of the BI tools I need. well I have MSDN subscription and from that it has bundled in SQL Server 2005 Express. It maybe different for retail in which case whatever the link states is true I think the trial version has some cuts in it apart from the time constraint but do not quote me. For confirmation, best speak to perhaps PSS (Product Support Services) - even though they are technical support, they maybe able to answer your query: http://support.microsoft.com ...Show All
Windows Forms ClickOnce through Proxy with Authentication
Hello, I have a problem with ClickOnce Deployment: My app runs on Windows Server 2003, IIS 6. In my university we have a proxy which needs authentication, and if I click the .application file, first there is a login window for the proxy, then the window ("verifying application...") comes up, but then there is an error message, saying that the file *.application can not be downloaded. In the log file is an entry: the server is unreachable, so I think the process which downloads the .exe and the other .dlls don't know the proxy authentication information. what can I do, to run the application behind such a proxy thanks, marco I am having the same problem.The target install location uses a proxy server and the Click Once install keeps f ...Show All
Game Technologies: DirectX, XNA, XACT, etc. "Ensure that DirectX SDK is correctly installed"
I just downloaded C# Express, and then installed the DirectX SDK from February 2006, from Microsofts homepage Then I loaded the Simple2D_2005 sample (running it from the sample viewer), and it worked as it should. Then I installed the samples source code, opened it in C# Express, but when I run it, I get the following msg: "Could not find required media. Ensure that DirectX SDK is correctly installed" I have tried to uninstall DirectX SDK, and reinstall it again, but I still get this error Im new to this as well . . . so im not sure the exact files you need;however, the problem is that the DirectX engine is being told to look for certain folders that are in your DirectX/Samples/Media directory. ...Show All
Visual C++ Some DLLs load, others won't
Hello. I've been trying to display dialog boxes from two different DLLs. AfxLoadLibrary() loads the first DLL fine; with the other DLL, I get an error that says the DLL cannot be found. The thing is that I know the paths to both DLLs are correct, because they're both in the same place. Also, a resource-hack program I have loads both DLLs fine. Any ideas Here's my code, sans all the error-checking: p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';} h1 {margin-top:12.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in;page-break-after:avoid;font-size:16.0pt;font-family:Arial;} p.ListingHead, li.ListingHead, div.ListingHead {margin:0in;margin-bo ...Show All
Visual Studio 2008 (Pre-release) How to bind to linq queries?
In DLinq designer walkthrough,the following codes bind the customers table to linq queries: var results = from customers in northwindDataContext1.Customers where customers.City == CityTextBox.Text select customers; customersBindingSource.DataSource = results.ToBindingList(); But I want the associated table "Orders" also can bind to linq queries. var results=from orders in northwindDataContext1.Orders where orders.ShippedDate >=.... select orders ; You can do Orders much the same way as Customers. If you want to know how to do an associated entity (Customer.Orders). It is shown in the same CTP sample. You sh ...Show All
Visual C# How to update DataTable when changes on DataGridView were made?
Hello! I have a question about updating object DataTable after the changes on DataGridView were made. I think it is not good idea to go cell by cell... The problem is I probably can't use DataAdapter because I don't have any database below. I would like to store changed data only in DataTable object. Any idea Thanx, Ziga Thanx! I already made this, but I didn't knew this is made automatically. So update on DataTable is perfromed when the focuse on the updated cell (on DataGridView) is gone Thanx, Ziga ...Show All
Visual C++ N00b wants to manipulate a database with C++ via SQL
Hello, For my study in Econometrics I need to write a program that communicates with a database. The actual SQL-statements that I will use will - as far as I can see at this moment - not be very complicated, but the communication with the database has to be as fast as possible once the program is running (if the start-up time is somewhat higher, this is not a big problem). The SQL statements I need are mostly SELECT statements, but sometimes also other statements are to be used. The emphasis however will be on SELECT-statements. I would also like to work with multiple recordsets, if that is possible (I know it is in Visual Basic). The database itself is quite large, with multiple tables and sometimes over 10,000 of entries within ...Show All
Visual Studio Express Editions How to run samples?
I have installed Visual Basic 2005 Express and I want to try some of Microsoft samples as Visual Basic in Office (Excel) -real estate locator. but I can't get work. Sample is here: http://download.microsoft.com/downl...ice%20excel.msi I also tried microsoft 101 Samples for Visual Basic 2005 and I can't get work. What should I do "I can't get work", you'll need to be more descriptive for us to help you out... ...Show All
SQL Server Security on role-playing dimensions
Hi, Is it possible to define security on specific role-playing dimensions For example: a database dimension called Date is used multiple times in role-playing dimensions called OrderDate and PayementDate. Now I want to define a security role on the OrderDate dimension which allows dates after 01-01-2006 and a security role which allows dates until 31-12-2006. This way I can assign groups to this roles where users can only access data between 01-01-2006 and 31-12-2006. Until now I am only able to define a role on the database dimension date which results in only showing the date 01-01-2006..... help is appreciated! Thanks, Marc Hi Mosha, Thanks for the reply. The problem was that first you have ...Show All
Visual Studio 2008 (Pre-release) I want to specify attached property for Binding.
For instance, I want to know the change in the Grid.Row property in the MyGrid class. It is the following codes that I tried. public class MyGrid : Grid { static MyGrid() { FrameworkPropertyMetadata metaData = new FrameworkPropertyMetadata(0); metaData. PropertyChangedCallback += OnAttachedRowChanged; Grid.RowProperty.OverrideMetadata ( typeof(MyGrid), metaData ); } private static void OnAttachedRowChanged( DependencyObject d, DependencyPropertyChangedEventArgs e) { // It is not called. MessageBox.Show( "Call OnAttachedRowChanged" ); } } try <SolidColorBrush Color="{Binding Path=( ColorComboBox.ItemColor) , RelativeSource={RelativeSource Mode=TemplatedParent}}"/> ...Show All
Windows Search Technologies Context indexing limitations
On 3/11/06, MSN Toolbar Help online contained the following text about the limitations of WDS relative to indexing large files: Desktop Search indexes the first 1 MB of text in each document. This is enough to ensure that all but the very longest documents are completely indexed, but if you have an extremely long document and your search term appears after the first 1 MB of text, it may not be found. A Google search today still shows the same text on a page which is part of Live Search Toolbar Help: http%3A%2F%2Fsearch.sympatico.msn.ca%2Fdocs%2Ftoolbar.aspx%3Ft%3DMSNTbar_TROU_CantFindAFileIKnowExists.htm Please advise about the following points: Is the stated limit, or some other limit, about the amount of text which W ...Show All
Visual C++ Adding a tool bar to a dialog box
Hi, I would like to add a toolbar to my dialog box but i am curently unaware of how to do it... I tried to see if the solution was something in the same lines as the adition of a menu bar to a dialog box (e.g. create the menu bar go to the properties of the dialog box and in the menus section add the menu bar...) but i dont see anything that would add a tool bar. Anyone has any ideas Cheers Anger. This is not a C++ language question, so the post is off-topic for this newsgroup. Please refer to the sticky thread that eineros put up at the top of this forum for the right place to ask Win32 UI questions. Thanks, Brian OTP ...Show All
