beefeater's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Simple Bezier Curves
After a recent post about doing Bezier curves with XNA, I decided to give it a shot. With the help of some people getting the view set up and http://freespace.virgin.net/hugo.elias/graphics/x_bezier.htm for the equation, I managed to get a simple start to a hopefully powerful Bezier curve system for XNA. The full thing is available at http://cis.gvsu.edu/~gravelyn/BezierCurves.zip. You can see a couple screenshots at http://cis.gvsu.edu/~gravelyn/bezier_screen_1.png and http://cis.gvsu.edu/~gravelyn/bezier_screen_2.png (sorry, I don't know how to make clickable links in these forums). Right now the demo is just two points with one control point each. You can move the start and end as well as the control points. The system approxi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What is the meaning of loadAllContent?
I'm not sure I understand the meaning of the parameter loadAllContent to the function Game.LoadGraphicsContent. According to the documentation it is: "true if all graphics resources need to be loaded; false if only manual resources need to be loaded." But what are manual resources Thanks in advance, Per Rasmussen. As I understand it, resources uses memory on the graphics device. A wide variety of events can cause this memory to be lost. When you have a resource that is in Manual mode, you have to reinitialize the memory on the graphics card yourself. When it is in Automatic mode, the framework keeps a copy in system memory and automatically reinitializes the graphics card memory when it ...Show All
.NET Development remoting sample
Figure out why this tcp remoting sample isn't correct! http://msdn2.microsoft.com/en-us/library/ms173030(VS.80).aspx ...Show All
Visual Basic Just in: Interop Forms Toolkit 1.0 for gradual VB6 to VB.NET upgrades!
Hi VB Community Members, We wanted you to know about the release of the new Interop Forms Toolit 1.0. In a nutshell the toolkit makes it easy to create Windows Forms in VB.NET and then add them to an existing VB6 application. This makes it much easier to extend your VB6 app gradually and incrementally (form by form). This fits into our larger VB Power Packs initiative to deliver valuable features between Visual Basic 2005 and the next release, based on your feedback. We hope you get this today and try it out! Download page: http://msdn.microsoft.com/vbasic/downloads/powerpacks/interopforms/default.aspx Questions and discusions: Visual Basic Interop and Upgrade Forum Enjoy! Visual Basi ...Show All
.NET Development XML transform
Hello everyone, I have a requirement as follows.... Sql server table is retrieved from database as a dataset. By using writexml I retrieved the dataset xml . But I have requirement which to save the xml in a different format. Can you tell me how can i transform the exisitng xml to a different format which embeds some rules. Can any one provide me a direction how to do this.... Thanks!! SqlNew I never used XSLT before could you please point me if there are any e.g. for this scenario. or any links that involve dataset and xslt. Thanks!! SqlNew ...Show All
Windows Forms Assign a Char* to Label
Hello all, I need to assign a char[] value to a label winforms char s[10]; this->label1->text=s; like this as the text is string type..I tried to typecast 's' but didnt succeed..anyone tell me how to do this ...Show All
Visual C# Newline problem with running Cmd.exe in a process
Hi, I'm trying to run a CHDIR command in a cmd.exe process. The command fails to chnage directory because of the newline characters thrown to the end of the string... i.e. chdir d:\\Folder2\r\n\r\n Is there a way to stop the streamwriter from insert \r\n\r\n This doesn't happen in it's VB equivalent. I've tried messing around with the proc.standardinput.newline property but had no luck Here's my code for this ProcessStartInfo psi = new ProcessStartInfo ( "cmd.exe" ); //Redirect both streams so we can write/read them. psi.RedirectStandardInput = true ; psi.RedirectStandardOutput = true ; psi.UseShellExecute = false ; psi.CreateNoWindow = true ; Process proc = new Process (); ...Show All
.NET Development Write to file that is in use
Hello I have a problem with file access. I have a service, that reads out an xml file every second. (It looks for changes) Now when I want to write something to this xml file with a simple C# application, I get the System.IO Exception "used by another process". When I edit the same Xml file with notepad, there is absolutely no problem! The service continues reading without any errors. Can anyone help me how to solve this The code of the reader: XmlDocument xDoc = new XmlDocument(); while (!stopWork) { xDoc.Load(path); xmlPorts = GetActualState(); if (xmlPorts != krPorts) { SetNewPorts(); //SerialPort (needs no xml file access) } System.Threading.Thread.Sleep(1000); ...Show All
Windows Forms How to determine if DataGridView contains uncommitted changes.
I have a form that uses a DataGridView, BindingSource, DataSet and BindingNavigator to edit a single table in a database. When the user picks the 'X' in the upper right corner to close the dialog box, I need to determine if there are uncommitted changes in the grid, so I know when to ask if they want to save their changes. I'm thinking I can set the current cell to the first cell in each row and call 'isCurrentRowDirty'. Is that the proper way to do this Thanks, Mike Or a really simple way: Use events beginedit and endedit from datagridview. Store the cell edited in beginedit. Check to see if the value changed in end edit. If it has, then set a flag. If the flag is true, then ask them to save. No nee ...Show All
Visual Studio Team System Test Result
According to the MSDN documentation on the TS warehouse, the Test Result field (or dimension in the cube) corresponds to the timestamp at the time a test was run. They say that this is "by default". I therefore understand that there is a way to change that. Anybody know how Thanks Thanks for your answer. Just to clarify things, I don't really want to change the test result to something different than the timestamp. I am building a report for where I relying on this field being a timestamp. Since the documentation mentioned that this was "by default" I wanted to investigate if anyone could change it and how (which would mess up my report). ...Show All
Visual C# C# - How powerful?
I know C# is sort of like C++, but is it as powerful as C++ We all have to start somewhere and C# is not as powerful as C++ but it is easier to learn. Previously I would of said just learn C (module based and unmanaged) or Java (Object Orientated and Managed) as they have free compilers, but with the introduction of the free express edition it opens a whole new kettle of fish. Have a go at programing some example programs in C#, it will teach you some methods and standards. These forums are excellent for getting help however difficult the problem. ...Show All
Smart Device Development May be here I get the answer. coredll.dll What is this?
What is coredll.dll I can't find this dll on my PC and Windows CE device too. But I found a saples, written in C# where I saw lines that look like this: [DllImport("coredll.dll")] Can anyone tell me what this dll is, where it must be placed and what programs uses it Hi, it is the main dll that windows CE uses, and is roughly equivalent to kernel32.dll on a PC. It is in ROM and won't show up on a normal search. TotalCommander will show you it if you search. Pete ...Show All
Software Development for Windows Vista pause on Fields
can i pause my graph both on any field that i want in a interlaced video Exactly. For example, if you grab a DV frame once it is decompressed (i.e. one media sample at the level of a transform filter in RGB), you will see that the two fields are combined in the same frame : even lines for one field, odd lines for the second field. On a PC, the renderer normally does deinterlacing before presenting. If you want to be able to pause on each field, you need to split one frame into two frames (one for each field), which means that you cannot use a "simple transform filter", but a special filter which doubles the number of samples. You have two points to care about : 1) for each field, you need to ...Show All
SQL Server Confused about Configuration Manager's TCP/IP settings
I need another opinion about the SQL Server Configuration Manager's TCP/IP settings... Recreation steps: Start, (All) Programs, SQL Server 2005, Configuration Tools, SQL Server Configuration Manager. Expand the "SQL Server 2005 Network Configuration" Select the "Protocols for x" where "x" is the named-instance or "MSSQLServer" for default. On the right-hand pane, right-click "TCP/IP" and select "Properties." Select the "IP Addresses" tab. Visually on the screen I have this: _______________________________________ - IP1 Active Yes Enabled No IP Address 106.xx.xxx.xx T ...Show All
Visual Studio Express Editions How to check trigger in SqlServer?
Hi, How can I check if one trigger is enable or disable for one specific Sqlserver table via c# Can I use some like this ConnectionSqlServer.CreateCommand(); CommandSqlServer.ExecuteNonQuery(); cheers, no you cant do a direct cast...you would do a Convert.ToBoolean(CommandSqlServer.ExecuteScalar()) however its best to know what type of object you will be returned (bool/int etc...) object theResult = CommandSqlServer.ExecuteScalar(); bool theFinalResult = Convert.ToBoolean(theResult); .. .. [edit] - just saw Andreas reply - yes that would be the way of doing it...the way Andreas has shown, or this way ...Show All
