| View previous topic :: View next topic |
| Author |
Message |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Tue Mar 11, 2008 7:05 pm Post subject: C++ or VB? Please read... |
|
|
Okay..
Yeah I hate using VB now because I cant do shit with it. I cant make an external application close with a hotkey/button.
I can't use any useful codes. Its just getting way to simple now.
Thing is, C++ is much harder to learn. I have lacrosse in like 5 days, and from then on, I will get home at 7:30, and I gotta do homework and shit. Yes, I got a great life but I love programming for some reason...
Anyways, how much time do you think it will take for me to say, make an "Image-Loader". Something where it prints the screen,(Print Scr) and than with another click of a button, uploads it onto tinypic.com or something through FireFox (or e.g. your default browser).
I will only have like 30-60 mins a day of programming from March 17th to like Jan. 9th.
_________________
|
|
| Back to top |
|
 |
Blader I post too much
Reputation: 2
Joined: 19 Jan 2007 Posts: 2049
|
Posted: Tue Mar 11, 2008 7:10 pm Post subject: |
|
|
The program you are making can be done in VB o.o
_________________
|
|
| Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Tue Mar 11, 2008 7:11 pm Post subject: Re: C++ or VB? Please read... |
|
|
| AndrewMan wrote: | Okay..
Yeah I hate using VB now because I cant do shit with it. I cant make an external application close with a hotkey/button.
I can't use any useful codes. Its just getting way to simple now.
Thing is, C++ is much harder to learn. I have lacrosse in like 5 days, and from then on, I will get home at 7:30, and I gotta do homework and shit. Yes, I got a great life but I love programming for some reason...
Anyways, how much time do you think it will take for me to say, make an "Image-Loader". Something where it prints the screen,(Print Scr) and than with another click of a button, uploads it onto tinypic.com or something through FireFox (or e.g. your default browser).
I will only have like 30-60 mins a day of programming from March 17th to like Jan. 9th.
 |
Even though it can be done in VB... do it in C++. It'll be faster and smaller in size. (Unless you're using absolutely shit code.)
_________________
| haxory' wrote: | can't VB do anything??
windows is programmed using VB right? correct me if im wrong.
so all things in windows you have like the start menu is a windows form too. |
|
|
| Back to top |
|
 |
Heartless I post too much
Reputation: 0
Joined: 03 Dec 2006 Posts: 2436
|
Posted: Tue Mar 11, 2008 7:14 pm Post subject: |
|
|
Learn SendInpu() to press screen print, this will take you about 30 seconds, I'll post the code to that later.
And I'm not sure about the second part.
SendInput Code
| Code: |
INPUT Input;
memset(&Input,0,sizeof(INPUT));
Input.type = INPUT_KEYBOARD;
Input.ki.wVk = VK_PRTSCRN; //this is where you put the print screen key, this not the right one, google virtual keys and replace it here
Input.ki.dwFlags = KEYEVENTF_EXTENDEDKEY;
SendInput(1,&Input,sizeof(INPUT));
Input.type = INPUT_KEYBOARD;
Input.ki.wVk = VK_PRTSCRN; //and here
Input.ki.dwFlags = KEYEVENTF_KEYUP;
SendInput(1,&Input,sizeof(INPUT));
|
_________________
What dosen't kill you, usually does the second time. |
|
| Back to top |
|
 |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Tue Mar 11, 2008 7:15 pm Post subject: |
|
|
| Blader wrote: | | The program you are making can be done in VB o.o |
I got not fucking idea what im doing wrong. I think its this 2008 shit. Im starting to hate this .Net language. All the tutorials are from VB6
_________________
|
|
| Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Tue Mar 11, 2008 7:17 pm Post subject: |
|
|
| AndrewMan wrote: | | Blader wrote: | | The program you are making can be done in VB o.o |
I got not fucking idea what im doing wrong. I think its this 2008 shit. Im starting to hate this .Net language. All the tutorials are from VB6 |
Because you have to search VB.NET in Google while looking for tutorials.
_________________
| haxory' wrote: | can't VB do anything??
windows is programmed using VB right? correct me if im wrong.
so all things in windows you have like the start menu is a windows form too. |
|
|
| Back to top |
|
 |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Tue Mar 11, 2008 7:20 pm Post subject: |
|
|
| HornyAZNBoy wrote: | Learn SendInpu() to press screen print, this will take you about 30 seconds, I'll post the code to that later.
And I'm not sure about the second part.
SendInput Code
| Code: |
INPUT Input;
memset(&Input,0,sizeof(INPUT));
Input.type = INPUT_KEYBOARD;
Input.ki.wVk = VK_PRTSCRN; //this is where you put the print screen key, this not the right one, google virtual keys and replace it here
Input.ki.dwFlags = KEYEVENTF_EXTENDEDKEY;
SendInput(1,&Input,sizeof(INPUT));
Input.type = INPUT_KEYBOARD;
Input.ki.wVk = VK_PRTSCRN; //and here
Input.ki.dwFlags = KEYEVENTF_KEYUP;
SendInput(1,&Input,sizeof(INPUT));
|
|
None of that works, just tried it. I think i'm going fucking stupid or something. Do I just copy + paste that into a button? Can you explain that any more, I really gotta learn this and get it over with. I just started VB programming like a couple days ago. I was making Flash games trainers before.
Sorry for all these questions.
_________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Tue Mar 11, 2008 7:20 pm Post subject: |
|
|
| That's C, not VB.
|
|
| Back to top |
|
 |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Tue Mar 11, 2008 7:29 pm Post subject: |
|
|
| slovach wrote: | | That's C, not VB. |
Is C the same as C#?
_________________
|
|
| Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Tue Mar 11, 2008 7:35 pm Post subject: |
|
|
| AndrewMan wrote: | | slovach wrote: | | That's C, not VB. |
Is C the same as C#? |
No...
_________________
| haxory' wrote: | can't VB do anything??
windows is programmed using VB right? correct me if im wrong.
so all things in windows you have like the start menu is a windows form too. |
|
|
| Back to top |
|
 |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Tue Mar 11, 2008 7:49 pm Post subject: |
|
|
| Xenophobe wrote: | | AndrewMan wrote: | | slovach wrote: | | That's C, not VB. |
Is C the same as C#? |
No... |
So I dont get what I am supposed to do right now. I cant make that APP in VB? Theres no Visual C I can get from Microsoft.
_________________
|
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Tue Mar 11, 2008 8:03 pm Post subject: |
|
|
Microsoft Visual C++ 2008 Express Edition.
Download it, install it, create a console app, and paste that code into the _tmain method.
_________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Tue Mar 11, 2008 10:33 pm Post subject: |
|
|
First off, stop trying to immediately jump in over your head. Not everything is as simple as it sounds at first. Can't figure it out? Move on along to another project.
1. Yes, you can make what you want in .NET
2. You're going to end up with a better understanding of how exactly things work, what's going on in your window, how to work with them, etc in C, .NET hides much of this from you.
Don't just copy and paste examples people give you, bad, bad way to learn. Write it out and look it over, if you don't get it, look it up. Google the function name and MSDN will 99% of the time come up first hit.
If it's a deeper understanding you're looking for, go for C then ASM later. There's tutorials everywhere, if you have a question, ask.
|
|
| Back to top |
|
 |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Tue Mar 11, 2008 10:35 pm Post subject: |
|
|
| slovach wrote: | First off, stop trying to immediately jump in over your head. Not everything is as simple as it sounds at first. Can't figure it out? Move on along to another project.
1. Yes, you can make what you want in .NET
2. You're going to end up with a better understanding of how exactly things work, what's going on in your window, how to work with them, etc in C, .NET hides much of this from you.
Don't just copy and paste examples people give you, bad, bad way to learn. Write it out and look it over, if you don't get it, look it up. Google the function name and MSDN will 99% of the time come up first hit.
If it's a deeper understanding you're looking for, go for C then ASM later. There's tutorials everywhere, if you have a question, ask. |
Thanks Slovach. And if I DL visual C++, is that "C" & "C++"?
_________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Tue Mar 11, 2008 10:42 pm Post subject: |
|
|
| Yes.
|
|
| Back to top |
|
 |
|