Caolan ODomhnaill's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. "Beginning 3D Game Programming" book
I bought "Beginning 3D Game Programming" book from Amazon web site. What do I need besides Visual C# Express to compile the code included on a CD-ROM The companion CD should have everything you need and DirectX is also downloadable for free for Microsoft. However if you want to start programming game in C#, I would recommend looking into XNA framework. ...Show All
.NET Development Windows Group names
Is there a way to retrieve the computer specific names of the builtin groups like Users and Administrators I'm writing automated unit tests for the NetAPI and want to create new users who are members of the Administrators group. But since I have an English WinXP MCE and a Swedish WinXP Professional, the name of the groups are different. My current solution is to compare Environment.MachineName with the name of my Englih computer, but I would like a more general solution. Thanks Johan This has been answered before: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=457246&SiteID=1 ...Show All
Visual Studio 2008 (Pre-release) Windows communication foundation and ADO .Net Entity Framewrok
Hi, I try to do an application with Windows communication foundation and ADO .Net Entity Framewrok. In the model EDM I have a class Person an in the other partial class Person.cs I put the attributes to make the class serializable and it can use with WCF: [DataContract] and [DataMember]. When I compile the project occur an execption: "Type System.Data.Objects.Entity' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute." It’s possible that the classes generates to ADO .Net Entity Framework aren’t serializable Thank you for your replies!! Thanks Brian ...Show All
Visual Studio Team System Moving Multiple Files/Folders
Due to a lack of research on my part, I used the project root as the root for all my source for a particular project. This makes branching difficult because I want to branch all of the files/folders in the root into a release folder, and I can't branch into a folder that is in the root as well. My current layout looks like: $/Folder1 $/Folder2 $/Folder3 $/Folder4 $/Folder5 $/file1.ext $/file2.ext $/file3.ext I'm planning on changing this to: $/Main/Folder1 ... $/Main/Folder5 ... $/Main/file3.ext And then I can have my release folders like: $/Release 1.0.0.0/Folder1 ... First, are the any issues with this plan It seems pretty standard to me. Second, how I can easily move these folders and files I can't seem to select multiple ...Show All
Visual C# Windows application form change
I'm new to windows application programming, and I am having some trouble. I've got a form that has some controls on it, and when the fields are filled and the 'Enter' button has been clicked I want the form to close and open up another form. How is this done, or is there a better way to create an application that has 4 different forms ...Show All
SQL Server How to run SQL Server Exp 2005
Dear friends I have installed SQL Server Express Edition (55 mb). Program >> Start >> MS SQL Server 2005 >> Configuration Tool ... this is what being displayed. This is my first use of MS Sql Server, before this I was using Oracle and after installation one could see Sql Plus from where the user can log in. I am confused how to start SQL Server Expr 2005 edition and try some sql. Please help me out.. Have a nice day Ramniklal Thanks dear Will get you back after downloading and using the graphical mgt. tool bye n have a nice day ramniklal ...Show All
Game Technologies: DirectX, XNA, XACT, etc. FixedTimeStep faster than Variable Time Step
A question for those who know the inner workings of the XNA framework. Whe using FixedTimeStep, if a frame takes longer than 0.016666 ms (th frame time for 60 FPS), what happens is it left to finish it's task I ask this, because, in some condition (lots of details on the scree, and split screen, and post processing) my framerate, when not using FixedTimeStep goes to 15-14 FPS. But if I enable FixedTimeStep, in the same condition, the game runs smoother, no hiccups, everything runs as if it were 60 FPS. I understand that this is what FixedTimeStep is supposed to do: run the game at 60 FPS.... but HOW can it do it, if otherwise the game runs at 15 If you are using a fixed time step and us ...Show All
Smart Device Development Value does not fall within the expected range
string test = "30"; CoBoxProduct.Items.Clear(); ArrayList Products = new ArrayList(); Products = pdb.ProIDProNamebyID(test); CoBoxProduct.SelectedValueChanged += new EventHandler(CoBoxProduct_SelectedValueChanged); CoBoxProduct.DataSource = Products; CoBoxProduct.DisplayMember = "productname"; CoBoxProduct.ValueMember = "productid"; Listview Problem. When bulding a listview with a databse question. The SQL syntax works, the class files work but not when adding the valuemember. No still no progress ... checked every spelling. It works now but it gets its displaymember wrong. Instead of showing the ProductName it shows the value for Prod ...Show All
Visual Studio Express Editions how to make a rich textbox print
A friend and i mades text editors and we wanted to know how to make the docyument print thanks ahead Josef Stalin C# is extremely similar to VB: when asking a question on how to do something other than how to create a for/next loop, or syntax related questions, then you will use the same commands in C# as you would in VB. For example, to set the cell of a DataGridView in C# is exactly the same as in VB. Some samples are only in C# or visa versa. In addition, it pays (sometimes literally) to be conversant in both. Remember, also, that the question/problem is important only to the poster and not anyone else - to get the results needed you have to be versatile in accepting what answers you get. ...Show All
Visual C# Hex string to string
Hi! I have a string that contains a hexadecimal string like: string myhexstring = "07914356060068F904038142F400005080" Then, i need obtain the string convert of 0x 07914356060068F904038142F400005080 How to converti it a human compresible string Regards. If you want to get the numeric equivalent of the string (assuming it is hex) then use Int32 .Parse(strValue, System.Globalization. NumberStyles .HexNumber) This parses the string as a hex value. Somewhat contrary to what it might sound like the number style tells the parser that it is a hex number not that it can be a hex number. If the string starts with "0x" then that'll have to be stripped. There are other ways to do this as well but I find this th ...Show All
Visual Studio 2008 (Pre-release) Tracking StackPanel children collection changing
Hi! I'm using StackPanel and i need to be notified when the child element is added or removed from the children collection. Please, help me out. Thanks. You can subclass from StackPanel, and override the OnVisualChildrenChanged() method: public class MyStackPanel : StackPanel { protected override void OnVisualChildrenChanged(DependencyObject visualAdded, DependencyObject visualRemoved) { base .OnVisualChildrenChanged(visualAdded, visualRemoved); } } Sheva ...Show All
Software Development for Windows Vista Workflow Extensions RC5 not working?
I have installed RC1 of the .NET 3.0 framework ok on my Windows XP x64 workstation, but the Workflow Extensions RC5 for Visual Studio 2005 don't seem to work. They install the SDK but no Workflow options appear in VS2005 The previous CTP (July) worked ok Hi, there, I had the exact the same problem when I saved the rc5 msi locally and then installed it. I managed to bypass this problem by clicking the Run button directly on the File Download Dialog. Try it, it might help. Richard ...Show All
SQL Server Truncation warning, how to reset data flow columns
I keep getting a waring: [Production IDW [1]] Warning: Truncation may occur due to retrieving data from database column "Industry" with a length of 16 to data flow column "Industry" with a length of 8. When I look at the industry lookup table the column size is 50. But the data flow metatdata is saying the oclumn is 8. How can I change the data flow column When I try to edit it and click on metadata it is uneditable. The field it is matching to is 50 and the field it is coming from is 16. I am assuming this is an OLE DB Source component. Right-click on the component and select "Advanced Editor..." You can change the column metadata from there. -Jamie ...Show All
Visual Studio Link to Sandcastle Wiki site in the Sep-06 Sandcastle CTP download details page is wrong.
Just noticed that clicking the Sandcastle Wiki link in the Sep-06 Sandcastle CTP download details page goes to the Microsoft Download Center, not to the Sandcastle Wiki... Thanks Peter for finding this. I will fix this shortly. We also plan to provide another Sandcastle drop end of next week. Cheers. Anand.. ...Show All
Visual Studio 2008 (Pre-release) how to access attached dp through UIElement (on panel for instance)
I've built a panel that uses some extra information for the layout of a child. That extra information is bound on the datatemplate through an attached property. During the measurements, I would like to access that information. The only thing I have access to is the Children collection which holds items of type UIElement. I would have expected the attached property to return a correct value, but it does not. This must be a common scenario. Is there any way I can get from an UIElement to the actual item Okay, that was it. Getting to the object that indeed had the DP set: DependencyObject o = VisualTreeHelper .GetChild(uie, 0); Thanks! ...Show All
