• What are you working on? V2
    2,001 replies, posted
I guess they're just letting users just trickle in slowly. Oh well, doesn't sound like I'm missing too much anyway.
[QUOTE=Sippeangelo;16783553]I wouldn't develop for anything that's so unstable that I can't test it in the environment it was designed for. To be honest, I don't know how they got it to work in the live demonstration. As it is now in the sandbox, it freezes in both Firefox and Chrome. Suddenly it just brings up it's "crash reporter" even when it still works. I have waves in my inbox that I can't delete, leave or look at.[/QUOTE] Hmm, sometimes it looks like I can't delete single waves, but when I create a new wave or open a wave or switch folder it gets deleted. And Firefox never crashed, sometimes Wave crashed though. But there's more than enough time to test what I made.
At this present moment I'm working on trying to sort out some code with an an error 2065. [cpp]#include<stdafx.h> #include<iostream> #include<windows.h> #include<stdio.h> using namespace std; void AltEnter(); void pointerfunc(int* piTimes1, int* piTimes2, int* piPointer1); int main() { int iPointer = 0; int iTimes1; int iTimes2; HANDLE hConsloe; hConsole = GetStdHandle(STD_OUTPUT_HANDLE); AltEnter(); pointerfunc(&iTimes1, &iTimes2, &iPointer); SetConsoleTextAttribute(hConsole, 25); std::cout << iTimes1 << " * " << iTimes2 << " * " << iPointer << endl; system("PAUSE"); return 0; } void AltEnter() { keybd_event(VK_MENU,0x38,0,0); keybd_event(VK_RETURN,0x1c,0,0); keybd_event(VK_RETURN,0x1c,KEYEVENTF_KEYUP,0); keybd_event(VK_MENU,0x38,KEYEVENTF_KEYUP,0); return; } void pointerfunc(int* pitimes1, int* pitimes2, int* piPointer1) { int i1; int i2; cout << "Input i1 and i2:"; cin >> *pitimes1 >> *pitimes2; *piPointer1 = (*pitimes1 * *pitimes2); }[/cpp] [code]1>------ Build started: Project: learning4, Configuration: Debug Win32 ------ 1>Compiling... 1>learning4.cpp 1>c:\users\eris\documents\visual studio 2008\projects\learning4\learning4\learning4.cpp(14) : error C2065: 'hConsole' : undeclared identifier 1>c:\users\eris\documents\visual studio 2008\projects\learning4\learning4\learning4.cpp(19) : error C2065: 'hConsole' : undeclared identifier 1>Build log was saved at "file://c:\Users\Eris\Documents\Visual Studio 2008\Projects\learning4\learning4\Debug\BuildLog.htm" 1>learning4 - 2 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== [/code] It's off a [url=http://www.youtube.com/watch?v=noQxpoW4Arg&feature=channel]youtube tutorial[/url] I figured I'd post in here so the section wouldn't get clogged up with problems with fairly obvious solutions.
You should check your spelling of console in the declaration. I'm also going to take this post to show everyone my cool menu item in litestep. I simply push the windows key on my keyboard, and this nice menu pops up. All I have to do is click on my programming environment option, and it launches everything I need: 1. Zune software for the listening of beats. 2. Visual C++ for programming. 3. C++ Primer Plus for reading and learning. All from the click of a button. It's useful as hell and looks awesome too. Instead of launched three seperate programs, I just have to click on one thing. Here's a picture of it. [img]http://img269.imageshack.us/img269/9403/screen2gud.png[/img] My wallpaper is pretty cool too, but I don't see it much anyway.
:doh: its always the obvious stuff *proceeds to rate oneself dumb*.
You don't need to put "return" at the end of a void function, that's implicit. You should really indent your code, though :keke:
His code is perfectly readable with his current indenting. He also didn't ask your opinion on his format, he asked about the error. There's no need for you to fucking pick through his code and list everything you can find that isn't perfect. It doesn't impress anybody.
[QUOTE=jmanmc;16791519]His code is perfectly readable with his current indenting.[/QUOTE] What - you mean with his current lack of any indenting at all except for the last function definition?
Yeah, I can read it perfectly fine.
[QUOTE=jmanmc;16791567]Yeah, I can read it perfectly fine.[/QUOTE] Yeah, so can I... What's your point? You think no indentation isn't bad for your code?
You told him he should indent it, and I say you shouldn't say that because it's not even a problem. Therefore, steps shouldn't be taken to fix it.
Its not my indentations, its the guy who did the tutorials indentations.
Well, whomever that is, he shouldn't be doing tutorials :S Good indentation (of any style) is a good habit you want to get into from the beginning.
[QUOTE=jmanmc;16791330]You should check your spelling of console in the declaration. I'm also going to take this post to show everyone my cool menu item in litestep. I simply push the windows key on my keyboard, and this nice menu pops up. All I have to do is click on my programming environment option, and it launches everything I need: 1. Zune software for the listening of beats. 2. Visual C++ for programming. 3. C++ Primer Plus for reading and learning. All from the click of a button. It's useful as hell and looks awesome too. Instead of launched three seperate programs, I just have to click on one thing. Here's a picture of it. [img]http://img269.imageshack.us/img269/9403/screen2gud.png[/img] My wallpaper is pretty cool too, but I don't see it much anyway.[/QUOTE] not sure what it is but it looks fucking sexy
Ya, anyone know any tutorials which actually indent properly? Or would I be better of buying C++ Primer Plus or something?
Doesn't your IDE indent for you? You shouldn't get too hung up on indentation anyway, it's more about programming concepts.
I'm using vc++ express (the free one), It probably does.
I think it's Ctrl+E+D
Doesn't it indent as you type?
It should do.. :s
[QUOTE=jmanmc;16791519]His code is perfectly readable with his current indenting. He also didn't ask your opinion on his format, he asked about the error. There's no need for you to fucking pick through his code and list everything you can find that isn't perfect. It doesn't impress anybody.[/QUOTE] He's not trying to impress anyone, he just wants to help him by fixing his formatting (and yes, even though it's "readable", it's still pretty bad). [quote]You told him he should indent it, and I say you shouldn't say that because it's not even a problem. Therefore, steps shouldn't be taken to fix it.[/quote] If you want a job (or a position in any team, for that matter), don't intend like that. It is a problem.
"My car is on it's last legs and might fail going somewhere important, It works anyway so I shouldn't fix it" Indentation is an integral part of programming, how can anyone say it isn't important. Ontopic: I'm Taking a break from writing the OS to focus some time on making a Game in C# and SFML, I'll release details once It gets to a usable state, But I'm sure it will provide a few users with a blast from 1996 ;D
[QUOTE=jmanmc;16791519]His code is perfectly readable with his current indenting. He also didn't ask your opinion on his format, he asked about the error. There's no need for you to fucking pick through his code and list everything you can find that isn't perfect. It doesn't impress anybody.[/QUOTE] It's called an advice. He's still learning, remember?
You said yourself he's still learning, I don't see why you have to get all over him about indenting. And you can deny that he was trying to impress people, but I know that's exactly what he was doing. [editline]02:51PM[/editline] [QUOTE=Tezza1234;16792499]"My car is on it's last legs and might fail going somewhere important, It works anyway so I shouldn't fix it" Indentation is an integral part of programming, how can anyone say it isn't important. Ontopic: I'm Taking a break from writing the OS to focus some time on making a Game in C# and SFML, I'll release details once It gets to a usable state, But I'm sure it will provide a few users with a blast from 1996 ;D[/QUOTE] Except your program WON'T fail based on indentation. [editline]02:51PM[/editline] [QUOTE=gparent;16792419] (and yes, even though it's "readable", it's still pretty bad).[/QUOTE] Either it's readable or it isn't. This is, so why worry? I'm sure you aren't a perfect programmer, even if you pretend you are. [QUOTE=gparent;16792419] If you want a job (or a position in any team, for that matter), don't intend like that. It is a problem. [/QUOTE] I don't think he'll be getting a job programming anytime soon.
[QUOTE=jmanmc;16792805]You said yourself he's still learning, I don't see why you have to get all over him about indenting.[/QUOTE] Because it's a very important part of programming, like it or not. system("cls"); is a minor detail that isn't exactly obvious to beginners, but indenting is important every line you type, for every single program you write, and not just for you, but also the people who will be reading you. [QUOTE=jmanmc;16792805]And you can deny that he was trying to impress people, but I know that's exactly what he was doing.[/QUOTE] Sure keep thinking that if that's what you like to hear. I only have a few years of knowing him more than you do and know he doesn't need to impress anyone. [QUOTE=jmanmc;16792805]Except your program WON'T fail based on indentation.[/quote] Yeah, it will. Try Python one day.
[QUOTE=gparent;16792858] Sure keep thinking that if that's what you like to hear. I only have a few years of knowing him more than you do and know he doesn't need to impress anyone. [/QUOTE] I know him well enough, but I don't expect you to agree since you do the same thing. [QUOTE=gparent;16792858]Because it's a very important part of programming, like it or not. system("cls"); is a minor detail that isn't exactly obvious to beginners, but indenting is important every line you type, for every single program you write, and not just for you, but also the people who will be reading you. [/QUOTE] I think a function call is a little more important than something that doesn't even effect how your program compiles. [QUOTE=gparent;16792858]Yeah, it will. Try Python one day.[/QUOTE] He's not programming in python.
Now I'm fucking around with the SAPI. Damn they really make it hard for people to use it... All I have is this shitty video tutorial by a dude with a horrible coding layout and who is sitting at a laptop and misspelling everything. He seems to be the only one on the internet who knows how the recognizer works. :sigh:
I'm just working on a menu system that I can reuse in other projects. Here's a screenshot if anyone is interested: [URL=http://img10.imageshack.us/img10/9765/menuukm.png][IMG]http://img10.imageshack.us/img10/9765/menuukm.th.png[/IMG][/URL] The actual system is complete, but I'm working on polishing it up with some effects. The white box works as a "selector," and it moves with a keypress to highlight your choice. I'm going to add some effects, like text pulsing, things like that. I want to change the selector to something more flashy, like maybe a few different pixels floating around your selection or something. Edit: If anyone reading enjoys making 2D art for fun and would like to see it used, I could really use it.
[QUOTE=Aerosol;16793688]I'm just working on a menu system that I can reuse in other projects. Here's a screenshot if anyone is interested: [URL=http://img10.imageshack.us/img10/9765/menuukm.png][IMG]http://img10.imageshack.us/img10/9765/menuukm.th.png[/IMG][/URL] The actual system is complete, but I'm working on polishing it up with some effects. The white box works as a "selector," and it moves with a keypress to highlight your choice. I'm going to add some effects, like text pulsing, things like that. I want to change the selector to something more flashy, like maybe a few different pixels floating around your selection or something. Edit: If anyone reading enjoys making 2D art for fun and would like to see it used, I could really use it.[/QUOTE] Particals gravitating aroudn the selection, Like the PS2 menu, would look cool My Attempt at a menu a while back: [url]http://www.youtube.com/watch?v=B8HtQG4izM0[/url] Wasn't nearly as reusable :B
[QUOTE=Tezza1234;16793795]Particals gravitating aroudn the selection, Like the PS2 menu, would look cool My Attempt at a menu a while back: [url]http://www.youtube.com/watch?v=B8HtQG4izM0[/url] Wasn't nearly as reusable :B[/QUOTE] Yeah, particles would be cool. As a side note: Using XNA seems like it could definitely get in the way of writing reusable code.
Sorry, you need to Log In to post a reply to this thread.