alaydyn,
In ad hoc connection, you're sharing locally between computer(s) and/or a wireless device, like a printer.
If you want to share connection, you need to be connected to the internet, then ad hoc is not what you're loking for.
Try reading...
File and Print Sharing in Vista (Thanks to mombodog)
Share Files and Printers between Windows 7 and XP
How to Network with HomeGroup in Windows 7
Rick