Eretria-chan's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Issue with far plane distance vs. radius in a camera component
Hello, I'm curious about the behaviour of my camera class. It is a simple class that controls camera view. It behaves like it should, except when the radius happens to be the maximum value that I've set in code (farPlaneDistance). When the mouse wheel is moved, this changes the near and far plane distance: // don't get too far if (radius < nearPlaneDistance) { radius = nearPlaneDistance; } // don't get too close if (radius > farPlaneDistance) { radius = farPlaneDistance; } And I use the radius to update the position vector of the camera: // update position vector position.X = ( float )(radius * Math .Cos(vertical) * Math .Cos(horizontal)); position.Y = ( float )( ...Show All
SQL Server Unable to retrieve the @@Error code in stored procedure
Hi All, In my application on click of Delete button, actually I am not deleting the record. I am just updating the flag. But before updating the record I just want to know the dependency of the record ie. if the record I am deleting(internally updating) exists any where in the dependent tables, it should warn the user with message that it is available in the child table, so it can not be deleted. I want to check the dependency dynamically. For that I have written the following procedure. But it is updating in both cases. CREATE proc SProc_DeleteRecord @TableName varchar(50), @DeleteCondition nVarchar(200) As Begin Begin Transaction Declare @DelString nvarchar(4000) set @DelString = 'Delete from ' + @TableName + ' where ' + @DeleteCon ...Show All
Visual Studio Team System Email notification per folder per user
Hello! Is there anyway we can restrain the email notifications for only certain folders in the Team Project Also, not the every member of the development team checkin but just a particular developer checkin should instigate these email notifications. Thanks! Hi sunny: It seems that we have tried everything we thought of so if possible can you contact tech support and see if they can help you. Mention or reference this thread so they can contact us and we can then work to troubleshoot your setup. thanks, mario ...Show All
Visual Basic VS 2005 - Reading XML config file
My solution consists of a Windows Library (that creates a DLL), an EXE that is the Windows Service and a Setup project for deployment. The Windows Service references the DLL project. Everything is installed and deployed. 1. When I run the service, my code needs the current directory of my installed windows service application and library (c:\Program Files\Perf\PerfService in this case) but when I use the following code: path = My .Computer.FileSystem.CurrentDirectory It returns : C:\WINDOWS\SYSTEM32 How do I get where my DLL and EXE are installed 2. I am using a My.Settings config file (app.config) to store application settings for the DLL. How do I include this in my Setup project so that I can manually change settin ...Show All
Visual Studio 2008 (Pre-release) How does one express a many-to-many 3-table arrangement as an entity model?
Take this schema: Authors (ID, First Name, Last Name, etc) Books (ID, Title, ISBN, etc) BookAuthors (BookID, AuthorID, IsPrimary) So, this is a representation of your standard "mapping" scenario where you map many rows of one table to many rows of another table via an interim "mapping" table that supplies the many-to-many relationship. In my experience, I encounter this table structure all the time and is considered extremely common and still satisfies 3NF. As a rule, using ADO EF, I should not have to modify my schema to de-normalize to produce a better relational model - the model should be object/relational and the schema should be 3NF - that's the whole point of an abstracted entity model in the first place. So, I w ...Show All
Visual C# Underline text
I was wondering if there was any way to underline the text of a string... Application: For right now I am outputing a bunch of strings into a message string to display in a message box. Later I will be outputting to a text file. I have searched the MSDN Lib to no avail; if someone could point me in the right direction, that would be great. Can you use HTML code in VC# Thanks Thom Just one last thing for now: will that operation allow for the fiel to be appended on multilpe runs of the program It sounds like that will just make the stream longer then write to the file, its not appending the file each time it is run it would just overwrite on the next run Is there anything for that Thanks Tom ...Show All
Visual Basic Mac Address of Ethernetcard.
Hi Can some body help me out in finding out which of the macaddress is fixed and doesnot lose the value when the network adapters are diabled. I have used the following code to identify the the mac address on my system. Dim mc1 As System.Management.ManagementClass Dim mo1 As ManagementObject mc1 = New ManagementClass( "Win32_NetworkAdapter" ) Dim moc1 As ManagementObjectCollection = mc1.GetInstances() allValues.AppendText( "Win32_NetworkAdapter" & vbCrLf) For Each mo1 In moc1 Msgbox( "Adapter Type :-> " & mo1.Item( "AdapterType" ) & vbCrLf & "MacAddress :-> " & mo1.Item( "macAddress" ) & vbCrLf) Next The Result i rece ...Show All
Visual Studio Using Crystal Report in ASP
hi friends, Could any one help me handling crystal reports in asp. I need it report my contents from my sqlserver database. ...Show All
Windows Live Developer Forums FF Polyline ReArraging?
I am having very strange behaviour in FF which seems to take the LeftTop edge of the last Poly I add and reArrange all of my other Polys' starting at that LeftTop edge, strangley keeping their proper shape...in certain cases even cropping the regions. Live Example: http://mssa.coba.usf.edu/mapControl/ Use IE to see proper result first, then watch it go nuts in FF. I'd paste the source, but the pages are all ASPX and ASCX - you all can see a good "glued" version of the code being delivered to your browser. Is there something I need to do differently, maybe do it on separete layers or what Yep, this is a known issue and a bug has been filed about it. As always, I can't say anything about when you'll see the ...Show All
Internet Explorer Development Vist or IE7 and Cookies
I have an application that uses the webbrowser component and when launched goes to a website. Previously I’ve navigated to the web site and set the cookie to remember who I am so I no longer have to log in. However, in my application I am still required to log in. This app worked fine under XP, but not doesn’t appear to work under Vista. Is this due to IE 7 Vista Security issue in both Any help would be appreciated, by me and my wife as I keep kicking her off her machine to run this app :) Thanks Wayne This is most likely a security change caused by Vista Protected Mode. Cookies are not shared between Protected Mode IE and medium integrity applications on the machine. To verify, try putting your login si ...Show All
SQL Server index question???
I do have a dump table "table1" Table1: UniqueId varchar(4) scandate datetime courseno varchar(5). This table is not related to any other tables in the database. This is used to track the student attendance for a particular course. There can 60000 distinct uniqueid's in the table and 300 disticnt courses. I query this table most of the time on uniqueid and coursecrn combination. This table can grow up to 5 million records. can anybody tell on what fields do I have to create indexes and also of what type(clustered or non-clustered). This table doesnt have a primary key. Thanks Sandeep: This is not one of the indexes that I suggested. I suggested two indexes. I sugg ...Show All
Windows Forms Dragging and Dropping an Object
Hi guys, I'm trying to determine if it is possible to drag and drop an object between two controls. I have a class called AudioTrack which inherits ListViewItem so that it can go straight into a listview. It has strings for the Artist and Title, and a byte array for the track data itself. I have another control (a player) which can load an AudioTrack class and play it. Is it possible to drag the AudioTrack from a ListView onto the control, and have all the data intact I've already got it starting the dragdrop operation, but can't get the player to accept it - I'm getting stuck in the DragDrop event at e.Data.GetData() and don't know what to put as the format. Hope you can help! Regards, Graham How are you startin ...Show All
.NET Development Help with xml files (noob to xml)
Alright, I'm a total beginner to XML, I just started yesterday, and have been reading some walkthroughs & FAQS. Here is the code, that was in a faq , and i'm not quite sure if it will do what i need it to do. System.Xml. XmlNodeList secondreader = reader.GetElementsByTagName( "weapon" ); for ( int i = 0 ; i < secondreader.Count; i++) { this .listBox1.Items.Add(secondreader .Attributes[ "weapon" ].InnerText); < xml version = " 1.0 " encoding = " utf-8 " > < Weapons > < weapon name = " this one item " > gold = "1" silver= "28" copper="16" </ weapon > < weapon name = " ...Show All
SQL Server Comparing millions of records from file A and B
I'm trying to compare about 28 million records (270 length) from table A and B using the Lookup task as described in this forum. The process works fine with about two million records or so on my desktop ( p.4 3.39GHz, 1.5 GB Ram), but hangs with the amount of data I'm trying to process. I tried using full and partial caching, but to no avail. I'm thinking this is a hardware resource problem. So, does anyone has any recommendation on the hardware needed for this kind of operation and/or suggestion Thanks in advance... What are you interested in The "failures" or the "matches" Try "tossing away" the data that you dont need so you can free the resources. How many Rows a ...Show All
Visual Studio Express Editions Array Data to String
I have an array of data. The number of items in the array can vary. I would like to send the data in that array into a string. dArray(0) = "One" dArray(1) = "Two" dArray(2) = "Three" dArray(3) = "Four" ArrayResults = "One, Two, Three, Four" I would like to create ArrayResults from my data. Any assistance is much appreciated. Thanks, Doug You can use a recursive old form to make it. Function GetStringFromArray(ByVal textArray() As String, ByVal separator As String) AS String Dim result as String = String.Empty FOR i As Integer = 0 TO textArray.Length result &= textArray(i) IF i<textArray.Length THEN res ...Show All
