The basics are:

1) Workgroup names are the same
2) File and Print sharing is enabled
3) Some resource is set to share

Depending on ths OSs in question, other tweaks may be necessary.