bozo14's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Texture Filtering Problem
I have just recently converted my MDX project over to XNA, now I have slowly ironed out most of my problems but one that remains is the texture quality. My game looks the same as the old MDX one does when mip filtering is not enabled. Is there anything special in XNA that would stop the mip filtering from working or any kind of problem that would cause a similar look on the textures. It's like something is overriding the setting, but I cant figure out what it is. I'm going to take an educated guess since I don't know what your texturing looks like. When you create your texture (I'm guessing you're using Texture2D.FromFile() in most cases), are you passing in TextureCreationParameters If so, make sure you u ...Show All
SQL Server Customising Date Picker
O Great Beings of MSDN, After much fruitless search I am requesting help on whether there's any way to disable some of the dates in SSRS date picker control. I have a date parameter in which I want users only be able to select the Fridays. I could show a drop down list of Fridays but that doesn't look too flash, especially when the list has about 2K Fridays. Any help would be appreciated. Thanks Teo, I think I will have to give up on this one as we already have a custom report protal on which all the RS reports and other reports are displayed. Having another application fire up to collect parameters is not an option for me so that's a bit of bugger. Hope microsoft can utilise the dataset section in order to provide thi ...Show All
SQL Server Indexing Question
I am somewhat new to SQL and have an indexing question I have a table that consists of 60 columns of mostly numeric data. Included in the table are fields called Customerid, CustDate and CustTime. Every hour data is posted to the table with the current time and date as well as customerID. The table is about 6 million rows. I have a query that reads: SELECT CustomerID, custdate + custtime as date FROM Mytable WHERE CustID = 905 and (date between ‘1/1/7’ and ‘1/17/7). The query works but it takes longer than I would like so I am wondering if it’s an indexing issue. Currently my table is indexed as CustomerID + CustDate + CustTime. None of the fields are unique, but the combination of the 3 i ...Show All
SQL Server Detaching and moving databases
Not sure if this is the exact forum I need but here goes. Having a bit of an issue 'moving' a database. I've only just installed SQL Server 2005 on a Development/Test box so I can learn and mess around with it without doing any serious damage to anything important. One of the first things I've done is install the AdventureWorks database and, having installed it, decided I would move the files to their optimum locations. However having detached the database I can't seem to move or copy the .mdf or .ldf files - something still seems to have its tentacles around them - 'Access denied' error. Even rebooting the server doesn't work. So I've had to delete then re-attach the database. The question then is does Detach serve any useful purpose Or a ...Show All
Windows Forms Working with TreeView and ListView
Hi @ all ;) i have a tool, where is (like the Windows Explorer) on the left side a TreeView and on the right side a Listview. Now, when i click on a node the ListView shows correctly the right path of the Node. Eg.: C:\windows. Thats ok ;) But now my Problem: How do i open the right path in the TreeView, when i click an Item in the Listview I think it goes with ListView1.SelectedIndexChanged, but i don't how. I searched for it mor than 3 month *smile*, and no body can help me ! cu Alex Sorry, but it don't works I Show my actualy code: private void explorer_SelectedIndexChanged( object sender, EventArgs e) { string path = this .explorer.FocusedItem.Tag.ToString(); SelectNodeWithTag(e ...Show All
Smart Device Development How do I get the soft key text from a different process?
Does someone know how to get the soft key text across a different process For example, my application is running and I want to get the soft key text on the Today screen. The Today screen is in the foreground. Or another example is I want to get the soft key text when Calendar is running and in the foreground. I've tried sending the message TB_GETBUTTONINFO but this crashes on the SendMessage call. I've been told that TB_GETBUTTONINFO doesn't work cross process. waishan ...Show All
Visual Studio Express Editions Form Load
Hi, How is the code for Form Loading For example: If you click in my app.exe and this open and if you click again in my app and show message "the app is already runnig Project: Application Settings The checkbox that says something like "Make a single instance application" (like the above poster put) which disallows more than one opening of your app. ...Show All
SQL Server If or Case Statements
Does anyone know if there is a way to look at a value in a variable and based on that value run different Data Flow Tasks For example, let's say I have an SSIS package that contains a variable named Client and 3 separate Data Flow Tasks. I would like to do this: if Client = 1 then run Data Flow 1 else if Client = 2 then run Data Flow 2 else run Data Flow 3. Is this possible Thanks. Danielle Yeah, it's okay to provide just a link, but it is rude to hijack a thread for your own gain.... Typically if no one answers, they are either busy or don't have anything to contribute. Fair enough... apologies but desperation can drive you to do things you woulnd't do otherwise. Still, I'm not ...Show All
SQL Server Reporting services hangs
Hi, someone doing some reports for me using Reporting Services is getting some problems. This is what he stated the problem as: "There is a ASP.NET service which eats up all of the memory until the report system crashes" By removing as many of the views as possible and using tables directly, the report successfully ran (in a bit over two minutes, processing 300,000 records), however, when doubling the amount of data to be included, the report wouldn't run again. Has anybody come across a similar problem and have any advice Thanks, Frank Hi Donovan, the developer has redesigned the reports as you suggested and instead of sending 600,000 records to Reporting Services he is now sending 6,300 and the report works! Thanks ...Show All
SQL Server Multiple records returned.
The following statement gives the error that multiple records are returned. I am attempting to pick one weight out of a group of three, the three have the same ResidentID and different dates in the table variable @WeightReportRaw. If I hard code the ResidentID, ResidentID = 6, it works fine. The variable @intMonth3 passes in a month number ans dosen't seem to be a problem. What am I missing, Thanks in advance for any help. update tblResidentWeightsTemp set FirstWeight = ( select RWeight from @WeightReportRaw as W where ResidentID = W.ResidentID and month (W.RWeightDate) = @intMonth3) I am not quite sure about the background of the calculation but in common you should use the setbased approach (and in addition tr ...Show All
.NET Development Object List in C#
Hello, coming from C++ and using a lot of MFC stuff, I wonder what object exists in C# which does the job of a CObList in C++ I mean being serializable and being able to stock different types of runtime class objects. Thanks for any further information ... Best regards MMM You can retrieve the object as type Object and use GetType() on the returned object to get information of type the object is. Serializing and deserializing should still be automatic, as every objects serialize/deserialize code will be called upon serializing/deserializing the arraylist. -- SvenC ...Show All
Internet Explorer Development H
No matter how much I search the internet, I still can't find a solution to this problem (and it seems many other people are having the same problem). If you create a DIV nested within a TR, and set the DIV's HEIGHT to 100%, it sizes to 100% of its contents, not 100% of the available space. This also happens with an IMG in the same context. Has anyone come up with any solutions ...Show All
Windows Forms combobox help
i use a combobox to in my programme to dispay text Me .comboBox1.Items.AddRange( New Object () { "Capacitor" , "Polycapacitor" , "EHT" , "Remote" , "Resistance" , "IC/Transistor" , "Other" }) now i want that user can only selct from above chice & can't type his choice in combobox combobox to work like a list box from which user can chose only from choces but can't write ...Show All
Visual Studio Crystal Reports Walkthrough has an error
I'm running Visual Studio 2005 and need to create a simple report using the built in Crystal Report. In the document Crystal Reports for Visual Studio 2005 there is a tutorial to Bind an embedded report to the crystalreportviewer control. The following line generates an error. Private hierarchicalGroupingReport as Hierarchical_Grouping it states that Hierarchical_Grouping is not defined. I'm puzzled. I find it really upsetting when documents like this have errors in them. Here is my code: Option Strict On Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Partial Class _Default Inherits System.Web.UI.Page Private HierarchicalGroupingReport As Hierarchical_Grouping Private Sub ConfigureCr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Bad Implementation of Texture.FromFile
Apparently connect.microsoft is blown to hell and back, and I haven't got the patience to wait for whenever that's fixed, so I'm just posting this here. The function Texture.FromFile(GraphicsDevice graphicsDevice, Stream textureStream, int numberBytes, TextureCreationParameters creationParameters) does its job in an unnecessarily roundabout fashion. The implementation reads the stream into a byte[], asks the system for a temporary file, writes the byte[] out to disk, and then loads the file from that location using D3DXCreateTextureFromFileExW. It then deletes the file. Ideally, this function should instead pin the byte[] that is read, and call out to D3DXCreateTextureFromFileInMemoryEx. Now, there's actually a considerable bit of ...Show All
