Forum: C# Dec 26th, 2008 |
| Replies: 6 Views: 1,961 Unfortunately that's not my problem. I know which button is clicked (using my "clickCheck" function), but in order to assign a function to a button I have to take every single button and put it into... |
Forum: C# Dec 26th, 2008 |
| Replies: 6 Views: 1,961 Hi.
I'm currently messing around with C# and decided to write a small game. One of the first things I am doing is setting up the game's GUI, which I am designing myself with help from XNA (but... |
Forum: C# Sep 3rd, 2008 |
| Replies: 18 Views: 2,244 Alright, I guess that is what I need for the mainUser problem, thanks. Now, if I were going to create some sort of user entry program, in which the several fields could be filled in and a new user... |
Forum: C# Sep 3rd, 2008 |
| Replies: 18 Views: 2,244 Sorry if I'm wrong as I am new to C#, but doesn't static mean that the members of the class could never be changed? The purpose of my program here is that I click the button to change the "name"... |
Forum: C# Sep 2nd, 2008 |
| Replies: 18 Views: 2,244 Not in this program, no. It's a simple "let's test out C# to see how it's like" program. In the future, were I to create more complicated programs, there might be more than one user. But in this... |
Forum: C# Sep 2nd, 2008 |
| Replies: 18 Views: 2,244 I think you misunderstand. I can declare a new User object anywhere, but I simply cannot change the values of a User object that has been declared in another source file. Like this:
User.cs //... |
Forum: C# Aug 31st, 2008 |
| Replies: 18 Views: 2,244 I really hate to bump threads, but it just seems like there should be a simple solution to this. Once again the problem is basically that I have two source files: Form1.cs and Program.cs. In... |
Forum: C# Aug 28th, 2008 |
| Replies: 18 Views: 2,244 The problem lies in that mainUser is declared in the main function, not in the Form function. I'd like manipulate that instance of mainUser. So I guess the question should be is there a way to have... |
Forum: C# Aug 28th, 2008 |
| Replies: 18 Views: 2,244 That would work fine if the object was solely localised to the button click area. I'd like to have background logic and object manipulation and use the user interface solely as a frontend. |
Forum: C# Aug 28th, 2008 |
| Replies: 18 Views: 2,244 Oh, that's User mainUser. Sorry about that. |
Forum: C# Aug 27th, 2008 |
| Replies: 18 Views: 2,244 I'm relatively new to C#, having migrated over from C++, so I'm a little confused about the use of variables.
I have a class called User located in the program's main namespace
// In User.cs
... |
Forum: C++ Apr 26th, 2007 |
| Replies: 6 Views: 1,481 Oh, now I see what you meant. Thanks again for the help. |
Forum: C++ Apr 25th, 2007 |
| Replies: 6 Views: 1,481 Well, I would prefer to use strings and not c-strings, but that isn't important. Also, I did not include any real code because this part of the project is completely independent from the rest. This... |
Forum: C++ Apr 25th, 2007 |
| Replies: 6 Views: 1,481 That sounds just like what I wanted!
Now for follow up questions tough: How do I search through the line? Am I going to use a simple ifstream to skip the whitespaces and store as strings? Am I... |
Forum: C++ Apr 24th, 2007 |
| Replies: 6 Views: 1,481 Well, I'm working on a simple project but I've hit a snag in my progress so far. I'd like to take a file that has text which will be something similar to:
Placemarker 1 = words/numbers... |