Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

c++ walkthrough


ghost's Avatar
0 0

Hey guys. I am getting into C++ and I was firstly wondering if anyone would walk me through making a program as such an active connection alerter. For example when in DOS and type netstat, it will show all "active connections". I want to make an alerter that will pop up a box letting me me know of this new established connection. Possibly allowing me to kill it as well.


ghost's Avatar
0 0

Well if you just want it to do the same thing as netstat then this is all there is to it:

system("netstat");

it will then do the same thing as it does when you type netstat in dos


ghost's Avatar
0 0

Umm… Let me provide another example if I may. Say in my netstat there are all sorts of addresses… As always. I want to program an alerter to a newly added foreign address. For example say I am on AIM and start a chat with "crash and burn." The foreign address will popup in a box saying there is a new added address connect to your system. And the IP is displayed. Get it? I am just saying that I will have an IP outputted to myself.


spyware's Avatar
Banned
0 0

The easiest is to hash the netstat value in an md5 hash every x seconds. When the md5 hash is different than before you can use RegEx to display the changes.


ghost's Avatar
0 0

All right, I catch your drift. Now I just need to learn how to do that. Anyone have a good tutorial orientated to cover what I need on this assignment?


spyware's Avatar
Banned
0 0

chronicburst wrote: All right, I catch your drift. Now I just need to learn how to do that. Anyone have a good tutorial orientated to cover what I need on this assignment?

First learn the science, then build the rocket. Learn C++ programming IN GENERAL, please, start off simple.


ghost's Avatar
0 0

Hey spyware could you clear out your PMs? I need to ask you something B)


ghost's Avatar
0 0

I need to take that to head. It is just, I don't know what small is so I would idk. Should I start by making a calculator? Or something?


ghost's Avatar
0 0

chronicburst wrote: I need to take that to head. It is just, I don't know what small is so I would idk. Should I start by making a calculator? Or something?

Buy a book or go to the library, that's how I learned. And reading a book versus an online ebook is so much better. They will start you off simple and work you up, making sure to teach you new things as you go along. This isn't something you're going to master overnight you need patients. If you have none, well gl and have fun with that lol.


ghost's Avatar
0 0

Thank you. I actually used a book for a little time not to back but was like aww hell no. But I am going to go back and get it. Ill be sayin hell yes. Was a good book too.