Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2] 3 4 ... 23

Author Topic: I forgot every thing...Now I want to program again...  (Read 22211 times)

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: I forgot every thing...Now I want to program again...
« Reply #15 on: November 26, 2009, 07:49:01 pm »

The hard part is that I don't know how your IDE works.

Theoretically, you could compile it with the batch file, if your system is set up to allow gcc to be invoked directly from the command line, or if you modify the command to use the full path. If your IDE even uses minGW.
Logged
Eh?
Eh!

Hippoman

  • Bay Watcher
    • View Profile
Re: I forgot every thing...Now I want to program again...
« Reply #16 on: November 27, 2009, 11:26:43 am »

Yep, you lost me.
Logged
THPÆCROSSISM
ΘπÆ┼ - Rise up against our superiors! Let all dwarves be equal!
KHDownloads

Hippoman

  • Bay Watcher
    • View Profile
Re: I forgot every thing...Now I want to program again...
« Reply #17 on: November 28, 2009, 01:06:52 am »

Can you just learns me WinAPI so I can make windows and shit.
Logged
THPÆCROSSISM
ΘπÆ┼ - Rise up against our superiors! Let all dwarves be equal!
KHDownloads

G-Flex

  • Bay Watcher
    • View Profile
Re: I forgot every thing...Now I want to program again...
« Reply #18 on: November 28, 2009, 07:27:47 pm »

Fuck it im lost.

I can't follow any of this shit.
WHy do you programmers have to go and format everything in such a dumbfucking way?!

I tried compiling his sample program. DIDN'T WORK.
Fuck it all. OpenGL sucks.

This is the exact way to get people to help you.

If you want people to help you with a project, do exactly what this man is doing right now. Respond in exactly this fashion.


Seriously though, you sound like you don't have any patience. At all. You cannot program without patience, trust me. There will in fact be situations where you spend a half-hour hunting down a bug only to realize that you forgot to change "i--" to "i++" somewhere.
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

Hippoman

  • Bay Watcher
    • View Profile
Re: I forgot every thing...Now I want to program again...
« Reply #19 on: November 29, 2009, 12:07:52 pm »

well forget OpenGL, I just want to make windows with WinApi.
Logged
THPÆCROSSISM
ΘπÆ┼ - Rise up against our superiors! Let all dwarves be equal!
KHDownloads

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: I forgot every thing...Now I want to program again...
« Reply #20 on: November 29, 2009, 02:09:58 pm »

Here, the bare minimum I could lazily cut my code to.

It could probably be trimmed further with a bit of effort, and might not even run as it is, but in theory, it might complain about missing variables or unused ones, but otherwise it likely works.

The HWND hwnd could go in WinMain, I just removed it in my full code so that I could put a default windows file selection dialog call in, in another function.

Spoiler (click to show/hide)
Logged
Eh?
Eh!

eerr

  • Bay Watcher
    • View Profile
Re: I forgot every thing...Now I want to program again...
« Reply #21 on: November 29, 2009, 02:13:33 pm »

Your first action should be to ignore all that code, look up your IDE/GUI on the internet. Then find instructions for importing libraries. Theres other stuff to do but you need to do this one step at a time.

Then you can go back to finding window code that compiles.
Logged

G-Flex

  • Bay Watcher
    • View Profile
Re: I forgot every thing...Now I want to program again...
« Reply #22 on: November 29, 2009, 02:22:23 pm »

I just realized that I have no idea how much programming experience this guy has.

For all we know, he doesn't know the difference between a while() and a for(), or maybe his grasp on programming logic is made of HARDENED STEEL. It would probably be important to establish this before sending him off to do real, practical graphical programming.
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: I forgot every thing...Now I want to program again...
« Reply #23 on: November 29, 2009, 02:28:37 pm »

It looks like the IDE mentioned works for most compilers, but it also seems to use MinGW in the installation instructions on the wiki.

If it won't compile at all, maybe you need to get a compiler?

Otherwise, the code I posted likely works on all compilers.

Unposted-but-still-edit:

Found a tiny bit I forgot to clip out.
Also, tested MSVC++ 2008, and after removing that unneeded bit, it compiled fine.

So, with both MinGW and MSVC(++? It was compiled as a .c...) compiling fine, I can assume that it is, though not cross-platform, at least generally compatible with a variety of compilers.

Spoiler: fixed code (click to show/hide)
Logged
Eh?
Eh!

Hippoman

  • Bay Watcher
    • View Profile
Re: I forgot every thing...Now I want to program again...
« Reply #24 on: November 29, 2009, 07:50:07 pm »

I just realized that I have no idea how much programming experience this guy has.

For all we know, he doesn't know the difference between a while() and a for(), or maybe his grasp on programming logic is made of HARDENED STEEL. It would probably be important to establish this before sending him off to do real, practical graphical programming.

Basically I know only simple command prompt stuff. and a bit of numbers and stuff.

I do not know any fancy smancy technical stuff. Only simple commands.

It looks like the IDE mentioned works for most compilers, but it also seems to use MinGW in the installation instructions on the wiki.

If it won't compile at all, maybe you need to get a compiler?

Otherwise, the code I posted likely works on all compilers.

Unposted-but-still-edit:

Found a tiny bit I forgot to clip out.
Also, tested MSVC++ 2008, and after removing that unneeded bit, it compiled fine.

So, with both MinGW and MSVC(++? It was compiled as a .c...) compiling fine, I can assume that it is, though not cross-platform, at least generally compatible with a variety of compilers.

Spoiler: fixed code (click to show/hide)

Ima just go ahead and paste this into a document. I use codeblocks so It should work right?
Logged
THPÆCROSSISM
ΘπÆ┼ - Rise up against our superiors! Let all dwarves be equal!
KHDownloads

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: I forgot every thing...Now I want to program again...
« Reply #25 on: November 29, 2009, 09:05:18 pm »

If it doesn't, try making a win32 project and repeat, and if it doesn't work then, you might be missing a compiler.

Or something completely unexpected.

Edit:
The "correct" output is a nearly-frozen window that you can close through "normal" methods, and move it around and stuff, but graphically, it shows whatever was over it last, or what was on screen where it was when it was created.
Logged
Eh?
Eh!

G-Flex

  • Bay Watcher
    • View Profile
Re: I forgot every thing...Now I want to program again...
« Reply #26 on: November 29, 2009, 09:15:26 pm »

Judging by what Hippoman said, I think a lot of this help is honestly a bit misplaced.


Hippoman: I suggest that you learn more about the principles of programming and its logic and practices before trying to fiddle with graphics or make anything more complex. I'm still not entirely sure of how great your knowledge IS, but if you're just starting and haven't progressed much beyond simple procedural calculations and input/output, you need more than a reference; you need a solid foundation

You might want to invest in a book. Your mileage may vary, but "Accelerated C++" (Koenig/Moo) is pretty good, and this book I had for one of my classes called "Problem-Solving with C++" (Savitch) is a decent beginners' resource as well. I'm glad I have both, actually, because each will tend to present things differently, or present slightly different things. If I had to choose one, I'd say Accelerated C++, but the "Problem-Solving" one might be better for a beginning programmer, especially since the exercises it presents tend to be more interesting, at least for me, and it assumes less foreknowledge (to some degree).
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

Hippoman

  • Bay Watcher
    • View Profile
Re: I forgot every thing...Now I want to program again...
« Reply #27 on: November 29, 2009, 10:11:59 pm »

If it doesn't, try making a win32 project and repeat, and if it doesn't work then, you might be missing a compiler.

Or something completely unexpected.

Edit:
The "correct" output is a nearly-frozen window that you can close through "normal" methods, and move it around and stuff, but graphically, it shows whatever was over it last, or what was on screen where it was when it was created.

exactly what I saw.

Judging by what Hippoman said, I think a lot of this help is honestly a bit misplaced.


Hippoman: I suggest that you learn more about the principles of programming and its logic and practices before trying to fiddle with graphics or make anything more complex. I'm still not entirely sure of how great your knowledge IS, but if you're just starting and haven't progressed much beyond simple procedural calculations and input/output, you need more than a reference; you need a solid foundation

You might want to invest in a book. Your mileage may vary, but "Accelerated C++" (Koenig/Moo) is pretty good, and this book I had for one of my classes called "Problem-Solving with C++" (Savitch) is a decent beginners' resource as well. I'm glad I have both, actually, because each will tend to present things differently, or present slightly different things. If I had to choose one, I'd say Accelerated C++, but the "Problem-Solving" one might be better for a beginning programmer, especially since the exercises it presents tend to be more interesting, at least for me, and it assumes less foreknowledge (to some degree).

Yep...bout that...

Books. Can't do it.
Just cannot do it. I try and try but end up getting too bored. And when I get that bored, I usually give up programming all together.

And this is why I know only the basics. I have no tutor, videos, or non-boring wall 'o' text.
Logged
THPÆCROSSISM
ΘπÆ┼ - Rise up against our superiors! Let all dwarves be equal!
KHDownloads

Nadaka

  • Bay Watcher
    • View Profile
    • http://www.nadaka.us
Re: I forgot every thing...Now I want to program again...
« Reply #28 on: November 29, 2009, 11:52:14 pm »

...

Yep...bout that...

Books. Can't do it.
Just cannot do it. I try and try but end up getting too bored. And when I get that bored, I usually give up programming all together.

And this is why I know only the basics. I have no tutor, videos, or non-boring wall 'o' text.

Programming itself takes as much or more focus than reading about programming. If you don't have the focus to read about programming at this point, you will not have the focus to actually do programming.

Edit: realized I sounded like a total ass.
« Last Edit: November 29, 2009, 11:55:13 pm by Nadaka »
Logged
Take me out to the black, tell them I ain't comin' back...
I don't care cause I'm still free, you can't take the sky from me...

I turned myself into a monster, to fight against the monsters of the world.

Hippoman

  • Bay Watcher
    • View Profile
Re: I forgot every thing...Now I want to program again...
« Reply #29 on: November 29, 2009, 11:55:01 pm »

Oh no, I'm so fucking bored all the time that I get bored of anything so quickly that it's unhuman.

Anyway Programming is good. Becuase I wont get bored while programming because i'll be doing something that doesnt get boring.

The learning process is boring. The doing is not.
Logged
THPÆCROSSISM
ΘπÆ┼ - Rise up against our superiors! Let all dwarves be equal!
KHDownloads
Pages: 1 [2] 3 4 ... 23