Can-Ann's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. xna and xbox 360
hello for all, i have a little question here, i'm making a game for windows with the xna framework 1.0 but in the future i will want to port it to xbox 360, with the xna framework i will can sell the game or i need another framework or sdk to make a xbox 360 comercial game i 'm a new indie game programming and i need help with this topic, i want to know if there will be another version of the xna or another sdk to make comercial xbox 360 games and the cost of this software. Thank you in advance.. To sell the game on the 360, you will need to have the professional version of XNA and be certified by Microsoft. It is not clear how you go about doing this as an indie at present. XNA express will only al ...Show All
Windows Forms DataGridView Object Data Sources
Hi All, I have tried to use a datagridview in a windows form to render a list of wine objects. The wine object contains a Region Object. I want the datagridview to to display two columns, Wine.Name and Region.Name. I have created a BindingList of Wine objects which is then bound to a datagridview. Using autogenerated columns, the Region.Name column renders as just its type name - not the data... What am I doing wrong Public Class Wine Dim _name As String Dim _origin As Region 'Wine Name Public Property Name() As String Get Return _name ...Show All
Visual C++ DLL registration issue
Hello, I am trying to register a DLL and failed. The DLL resgitration using regsvr32 command and it did not show any message. Usually it pops a dialog saying the registration suceeded. But this time there is no message at all. My client application can not find this DLL so I know that the DLL failed to register. The DLL is the output of a recompilation process of C++ code. The previous DLL of this source code works perfectly fine. Now I have to update the source code to accomodate new functionalities of the application. But I failed to register the DLL after recompiling the source code. May be I am missing some compilation options or so.. Any help with troubleshooting would be much appreciated. ...Show All
Visual Studio Express Editions Why am I getting "End of statement expected"?
Hello, Why am I getting "End of statement expected" Thanks for the help. Ken Private Sub txtReadRegValue_TextChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtReadRegValue.TextChanged if txtreadregvalue.Text not txtreadregvalue.Text then cmdOpenPort.PerformClick() End If End Sub Try This. Private Sub cmdReadRegister_Click( ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles cmdReadRegister.Click cmdOpenPort.PerformClick() Dim Response, message, msgg As String Dim command_type, addres As Short Dim registerr As Single ...Show All
Visual C++ How do I save a project with a new name?
Hello and thanks in advance to anyone who answers this question which has been bugging me for a while. Once I have created a project, how can I access the 'save as' function which is available in many windows programs in the file drop down menu Is the 'save as' function unavailable for entire projects It seems like it would be useful so you could have access to different versions of complicated projects. I know you can 'save as' each source file, etc., but I can't figure out how to do it for the whole project. Thanks again, Jackson ...Show All
SQL Server Query to see if an int field starts with a certain number
How would I write a query on a table containing a column of ints, where I want to retrieve the rows where that int value starts with a number I know that you can do this with strings by using "....WHERE thisfield LIKE ('123%')", but if 'thisfield' is an int, how would I do this Thanks! I hate to ask this, but the giant pink elephant in the room is "how do you have an int that doesn't start with a number " What it sounds like you have is a column of string values that may or may not be an integer, and you want to see if the first character of the string is a number, right For this it is: thisColumn like '[1234567890]%' But if the column is supposed to only contain integers, the b ...Show All
Visual C# dynamic asp button click doesn't work first time
Hi all, I'm creating some asp buttons dynamicly and I associated them an event handler btnDel.Click += new EventHandler (btnDel_Click); but the first time I click on the button goes to the Page_load but the btnDel_Click is not fired. Somebody knows the reason Thanks in advance. P.D.: Sorry for my english. Hi, Whenever one is assigning event handler, it should be done prior to page load ideally. I think when you are assigning a event handler, that does not happen first time when page loads but when u do something, control gets added to the table and then you assign event handler. So somehow in ur code, u will have to make sure that each time page loads, event handler code should be ...Show All
Visual Basic [HELP!!]How do I solve the nonlinear equation f(x) = 0 ??
Hi, I am new to VB.Net. I am working on a program that needs to solve several one-variable nonlinear equations. For example, I have to solve f(x) = 0, where f(x) = c0 + c1*x + c2*x^2 + c3*x^3 + c4*x^4 - A c0, c1, ... c4 and A are constants. When given c0, c1, ..., c4 and A, the program should have the ability to solve f(x) = 0, and give back the value of x. At first, I try to use try-and-error process to find the roots of the equation, but it failed. I searched online to find if any codes are related to this subject. Unfortunately, I found nothing. So I ask for help here. If anyone can provide a useful algorithm for my question, it will be much appreciated. Thanks a lot for your help. I am using VB.Net 2003. ...Show All
Smart Device Development TextBox, KeyDown and Enter
Hi all, I have written a tiny application with a TextBox on a form, where the TextBox has a KeyDown event handler like this: private void textBox1_KeyDown( object sender, KeyEventArgs e) { if (e.KeyCode == Keys .Enter) { e.Handled = true ; MessageBox .Show( "You pressed Enter!" ); } else if (e.KeyCode == Keys .Escape) { e.Handled = true ; MessageBox .Show( "You pressed Esc!" ); } } When I run this program on a Windows Mobile 2003 device (a Psion Workabout Pro), it works just fine. However, when I run the same program on a Windows Mobile 5.0 device (an Intermec CK61) the Enter key doesn't work. Esc pops up the message, but Enter just beeps and nothing happ ...Show All
Windows Forms Getting a cell value in a DataGridView
Hello all, Rather simple question for you, How do i use the cell content double click avent to retreve the data held in any given cell in any given row and copy this to the clipboard or run a proccess with that value as a paremater The Datagridview is 3 colums wide and can have upto 500 rows in it at one time. Hope this makes sense and i hope someone can help me with this. Regards, Andy Hi, I'm afraid that it's important to retrieve the data. I use the CellSelect of the SelectionMode, if the FullRowSelect is chosen, it's not easy to see which cell is selected. Then, implement the CellDoubleClick event, in this example i use string as the data format. private void MyJustDoubleClick( object sender, Data ...Show All
Smart Device Development Close CameraCaptureDialog
Hi all, I need help because I'm developping an application in C# on a WM5.0 smartphone (C600). In this application, I use the cameraCaptureDialog to take picture. Here's the code : public partial class Form1 : Form { public Form1() { InitializeComponent(); CameraCaptureDialog cameraCapture = new CameraCaptureDialog (); cameraCapture.ShowDialog(); } private void menuItem1_Click( object sender, EventArgs e) { Application .Exit(); } } So, as you can see, when i launch the application, there is the camera capture dialog and i can take picture with it. And when I have taken a picture, the camera dialog's closing and i can close my application with the menuItem1. A ...Show All
Windows Forms Panel / GroupBox as Containers
Hi Iam trying to open a windows form inside a panel or groupbox control, it gives me a error. I need similar sort of functionality, how to proceed. can anyone help me on this . thanks in advance sriram What kind of error If it's the "top level form error," just set the form's TopLevel property to false during run-time. ...Show All
Windows Live Developer Forums Inside Windows Live Contacts Control
How it works I meen is there any web services that helps retrieve groups and contacts Is there way retrive this information from desktop application Hi Alexander, I'm working on a blog article that dives into the details of how the contacts gadget is able to send contact data across domain boundaries after end user approval. Hopefully that will be posted in the next week or so, after I return from TechEd Europe. The contacts control cannot currently return group info, but that is on our to-do list. How would you want to receive that info Find out what groups a contact is a member of, or find out what contacts are in a specific group Remember that the end user has to approve any data transfer first. The only way currently ...Show All
Software Development for Windows Vista Way to get property from an persisted workflow instance
Dear all, How can I retrieve Workflow Properties from an workflow instance (either loaded and persisted) Please help. Thanks. Andy Ho Steve, Many thanks. Any hints on how to do that All the SqlTrackingService sample seems only focus on getting the status and datetime stamp of the tracked Instances and activities. Please advise. Andy ...Show All
SQL Server Using same heirarchy on both Axis1 and where clause.
Hi, I want to create a report on most used products. The query is filterable by set of users, for a selected date range. The requirement is that this report should also be filterable by product. The MDX query is as follows: WITH MEMBER [DATE].[Date Str].[DateRange] AS AGGREGATE ( STRTOMEMBER(@startDate) : STRTOMEMBER(@endDate), [Measures].CURRENTMEMBER ) MEMBER [USR].[USER NAME].[UserName] AS AGGREGATE ( {STRTOSET(@users)} ) MEMBER [PROD].[PRODUCT NAME].[ProdName] AS AGGREGATE ( {STRTOSET(@prodName)} ) SELECT NON EMPTY { [Measures].[PRODUCT Count] } ON COLUMNS, TopCount ( Filter ( {[PROD].[PRODUCT NAME].[PRODUCT NAME]}, [Measures].[PRODUCT Count] <> 0 ) , 10, [Measures].[PRODUCT Count] ) ON ROWS FROM [ProdUsage] WHERE (([USR ...Show All
