The San Francisco 49ers defeated the Dallas Cowboys on Thursday night, 24-21 opening the first full week of preseason action in the NFL.