| Author | Message | 
	
		| tcsoccerman Server Help Squatter
 
 
 Age:33
 Gender:
  Joined: Jan 15 2007
 Posts: 694
 Location: Atlantis
 Offline
 
 | 
			
			  | 
				
					|  Posted: Wed Apr 25, 2007 9:28 pm     Post subject: Windows programming "commands" in C |  |   |  |  
				| 
 |  
				| I'm looking for a list of windows programming "commands" such as MB_CREATE MB_DESTROY
 
 and things like that. maybe message box too. a real nice tutorial would be nice too with lots of examples, that's how i learn best :)
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| tansey Novice
 
 
 Joined: Nov 03 2004
 Posts: 53
 Offline
 
 | 
			
			  | 
				
					|  Posted: Wed Apr 25, 2007 11:31 pm     Post subject: |  |   |  |  
				| 
 |  
				| MSDN seems like the obvious choice... 
 I'm not sure by what you mean commands, but between MSDN and codeproject.com, you can find 90% of the stuff you will need to get to an intermediate level.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| tcsoccerman Server Help Squatter
 
 
 Age:33
 Gender:
  Joined: Jan 15 2007
 Posts: 694
 Location: Atlantis
 Offline
 
 | 
			
			  | 
				
					|  Posted: Thu Apr 26, 2007 4:58 pm     Post subject: |  |   |  |  
				| 
 |  
				| url? i can't seem to find MSDN. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| SamHughes Server Help Squatter
 
  
 Joined: Jun 30 2004
 Posts: 251
 Location: Greenwich
 Offline
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| tcsoccerman Server Help Squatter
 
 
 Age:33
 Gender:
  Joined: Jan 15 2007
 Posts: 694
 Location: Atlantis
 Offline
 
 | 
			
			  | 
				
					|  Posted: Fri Apr 27, 2007 5:23 pm     Post subject: |  |   |  |  
				| 
 |  
				| I'm using visual basic, and i'm having problems with opening files. i can open it, but the "visual" part, that lets you practially place buttons on you're program by clicking and dragging doesn't open. if it does, it's not "visual" but just code. how do i open it right? 
 -----------------------------
 got that to work
 
 
 a little help on going about using files that the user creates as part of the data so each use is different?
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Mine GO BOOM Hunch Hunch
 What What
 
  
 
 Age:42
 Gender:
  Joined: Aug 01 2002
 Posts: 3615
 Location: Las Vegas
 Offline
 
 | 
			
			  | 
				
					|  Posted: Fri Apr 27, 2007 8:59 pm     Post subject: |  |   |  |  
				| 
 |  
				| I'd heavily suggest moving to C#. It is more powerful, easily to use (for the most part), more supported, and is a popular language to get a job with as well. VB is a running joke among programmers for a reason. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| tcsoccerman Server Help Squatter
 
 
 Age:33
 Gender:
  Joined: Jan 15 2007
 Posts: 694
 Location: Atlantis
 Offline
 
 | 
			
			  | 
				
					|  Posted: Sat Apr 28, 2007 9:45 am     Post subject: |  |   |  |  
				| 
 |  
				| Could you still help me though? |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Animate Dreams Gotta buy them all!
 (Consumer whore)
 
  
 Age:38
 Gender:
  Joined: May 01 2004
 Posts: 821
 Location: Middle Tennessee
 Offline
 
 | 
			
			  | 
				
					|  Posted: Sat Apr 28, 2007 12:16 pm     Post subject: |  |   |  |  
				| 
 |  
				| Erm, it will probably be easier to get help if you switch to C#. Basically, just stay away from VB. Though I'm not sure why the two languages are associated, myself. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| tcsoccerman Server Help Squatter
 
 
 Age:33
 Gender:
  Joined: Jan 15 2007
 Posts: 694
 Location: Atlantis
 Offline
 
 | 
			
			  | 
				
					|  Posted: Sat Apr 28, 2007 12:31 pm     Post subject: |  |   |  |  
				| 
 |  
				| Ok i switched to c#. i wasn't very far on my vb project, and i'm already caught up. i'm trying to recgonize mouseclicks and there for trigger dialogs and such. eventdriven programming. a more complete tutorial would be nice if anyone knows one. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Doc Flabby Server Help Squatter
 
  
 Joined: Feb 26 2006
 Posts: 636
 Offline
 
 | 
			
			  | 
				
					|  Posted: Sat Apr 28, 2007 12:51 pm     Post subject: |  |   |  |  
				| 
 |  
				|  	  | Animate Dreams wrote: |  	  | Though I'm not sure why the two languages are associated, myself. | 
 
 They never used to be, the last real version of VB was VB6
 
 VB.net and C# use the same VM, they just have different syntax.
 _________________
 Rediscover online gaming. Get Subspace | STF The future...prehaps
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| tcsoccerman Server Help Squatter
 
 
 Age:33
 Gender:
  Joined: Jan 15 2007
 Posts: 694
 Location: Atlantis
 Offline
 
 | 
			
			  | 
				
					|  Posted: Wed May 02, 2007 7:45 pm     Post subject: |  |   |  |  
				| 
 |  
				| So...no one knows of a good tutorial... does anyone else even make apps in c#? maybe we can start a project or something. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Mine GO BOOM Hunch Hunch
 What What
 
  
 
 Age:42
 Gender:
  Joined: Aug 01 2002
 Posts: 3615
 Location: Las Vegas
 Offline
 
 | 
			
			  | 
				
					|  Posted: Thu May 03, 2007 4:42 am     Post subject: |  |   |  |  
				| 
 |  
				| In C#? I try not to, because they did a very good job of wrapping everything. Of course, it allows you to make direct C calls on any library, so you can still do any function that C can, just need to make sure you enable the 'not safe' flags during compiling. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Doc Flabby Server Help Squatter
 
  
 Joined: Feb 26 2006
 Posts: 636
 Offline
 
 | 
			
			  | 
				
					|  Posted: Thu May 03, 2007 5:25 am     Post subject: |  |   |  |  
				| 
 |  
				| I'm currently devlopeing a commercial program in c# with a sqlite data store.  Quite alot of websites use c# (most websites with with .aspx pages).  Its not a bad language to learn.  But its not a language that is very useful to code games in (too slow). 
 If you want to learn c#
 http://www.csharp-station.com/Tutorials/Lesson01.aspx
 Doesnt look like a bad place to start.
 
 The hardest bit of c# is understanding the OOP stuff and how it can make things alot easier. If you are going to code in c# and can't get hold of a copy of visual studio (don't use the express versions they have annoying restrictions)  use sharpdevlop
 http://www.icsharpcode.net/OpenSource/SD/
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| tcsoccerman Server Help Squatter
 
 
 Age:33
 Gender:
  Joined: Jan 15 2007
 Posts: 694
 Location: Atlantis
 Offline
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Mine GO BOOM Hunch Hunch
 What What
 
  
 
 Age:42
 Gender:
  Joined: Aug 01 2002
 Posts: 3615
 Location: Las Vegas
 Offline
 
 | 
			
			  | 
				
					|  Posted: Thu May 03, 2007 11:48 pm     Post subject: |  |   |  |  
				| 
 |  
				|  	  | Doc Flabby wrote: |  	  | But its not a language that is very useful to code games in (too slow). | 
 With OpenGL, any language can be good for normal games. Sure, you won't see the next Unreal or Half-Life engine written in C#, but with things like PyGame, any language can do what top line games 2-3 years ago did.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Doc Flabby Server Help Squatter
 
  
 Joined: Feb 26 2006
 Posts: 636
 Offline
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dr Brain Flip-flopping like a wind surfer
 
  
 Age:39
 Gender:
  Joined: Dec 01 2002
 Posts: 3502
 Location: Hyperspace
 Offline
 
 | 
			
			  | 
				
					|  Posted: Fri May 04, 2007 8:24 am     Post subject: |  |   |  |  
				| 
 |  
				|  	  | Doc Flabby wrote: |  	  | So would they be any reason why a new subspace client could not be coded in a language such as those? | 
 
 Lack of examples, since everyone that's tried hasn't really known what they were doing.
 _________________
 Hyperspace Owner
 
 Smong> so long as 99% deaths feel lame it will always be hyperspace to me
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| tcsoccerman Server Help Squatter
 
 
 Age:33
 Gender:
  Joined: Jan 15 2007
 Posts: 694
 Location: Atlantis
 Offline
 
 | 
			
			  | 
				
					|  Posted: Fri May 04, 2007 2:27 pm     Post subject: |  |   |  |  
				| 
 |  
				| Could someone tell me what a function in C/C++ would be in c#. that way i can look into it more. i'm  guessing it's a class or an object by what the tutorial is saying. it be nice to have a comparision is all. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Mine GO BOOM Hunch Hunch
 What What
 
  
 
 Age:42
 Gender:
  Joined: Aug 01 2002
 Posts: 3615
 Location: Las Vegas
 Offline
 
 | 
			
			  | 
				
					|  Posted: Fri May 04, 2007 7:43 pm     Post subject: |  |   |  |  
				| 
 |  
				| Functions in C# are called methods. If you want a generic function like making your own power of two: 
 	| int pow2(int number)
{
 return number * number;
 }
 | 
 
 	| static class MyMath
{
 static public int pow2(int number)
 {
 return number * number;
 }
 }
 | 
 The static means you can call the function by name MyMath.pow2(3) without having to do anything special about classes. Everything has to be inside a class, but those classes don't have to be treated like objects.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| tcsoccerman Server Help Squatter
 
 
 Age:33
 Gender:
  Joined: Jan 15 2007
 Posts: 694
 Location: Atlantis
 Offline
 
 | 
			
			  | 
				
					|  Posted: Fri May 04, 2007 10:28 pm     Post subject: |  |   |  |  
				| 
 |  
				| another question, if i wanted to add text into a text box, instead of declaring the text like this: 
 
 	| textbox.Text = label1.text | 
 
 what would i do? i suppose you could obtain the current text and then declare the next text;something like this:
 
 
 	| textbox.Text = old_text;
textbox.text = "%s%s", old_text, new_text;
 | 
 
 the only problem there is that i don't know if that is correct in line 2, i'm just using my C language knowledge, i'll have to look more into that.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Samapico No, these DO NOT look like penises, ok?
 
  
 Joined: May 08 2003
 Posts: 1252
 Offline
 
 | 
			
			  | 
				
					|  Posted: Sat May 05, 2007 1:12 am     Post subject: |  |   |  |  
				| 
 |  
				| 	| string newtext = "thisisnewstuff";
 textbox.Text = textbox.Text + newtext;
 | 
 or
 
 	| string newtext = "thisisnewstuff";
textbox.Text += newtext;
 | 
 would work as well
 _________________
 (Insert a bunch of dead links here)
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| tcsoccerman Server Help Squatter
 
 
 Age:33
 Gender:
  Joined: Jan 15 2007
 Posts: 694
 Location: Atlantis
 Offline
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Mine GO BOOM Hunch Hunch
 What What
 
  
 
 Age:42
 Gender:
  Joined: Aug 01 2002
 Posts: 3615
 Location: Las Vegas
 Offline
 
 | 
			
			  | 
				
					|  Posted: Tue May 15, 2007 12:51 am     Post subject: |  |   |  |  
				| 
 |  
				| That is only an example they use to show you that it selected that file. You can save the open dialog result to any string variable. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| tcsoccerman Server Help Squatter
 
 
 Age:33
 Gender:
  Joined: Jan 15 2007
 Posts: 694
 Location: Atlantis
 Offline
 
 | 
			
			  | 
				
					|  Posted: Tue May 15, 2007 6:21 pm     Post subject: |  |   |  |  
				| 
 |  
				| Ok, so i don't even need that coding? I'll try that. Also, my savedialogue doesn't seem to work. It acts as if it is saving, but when i go to open it it isn't there. Do i need to code the saving part? |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Bak ?ls -s
 0 in
 
  
 Age:26
 Gender:
  Joined: Jun 11 2004
 Posts: 1826
 Location: USA
 Offline
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  |