Hi, first of all, let me say I do not have an extensive knowledge of c++. I only know how to make programs in a console window. I took it for 1 year in high school and have worked with it very little since then.

Anyway, I need to write a program in c++ that will track the country any given page is being viewed from and store the data for later processing (preferably on a database running on MySQL).

Now, I'm not asking that someone write the program for me but I do wish to be pointed in the right direction.

First of all, I have absolutely no clue how c++ works in terms of the internet as opposed to a basic console window. Do I still write main(), do I need a a special compiler for it to be displayed on the internet (currently using Dev c++).

Basicly, I need to know what the major differences are between programming for a console program as opposed to the internet. Are there any specific things I need to look out for that could cause me much grief later?

Also, in terms of the program itself, how should I structure it? Would I require more than 1 file to write it, any special libraries I should know of, etc.

Anyway, I realize this is a pretty general question so it may be hard to answer, but any help is greatly appreciated. Thanks a lot