To expand on what Clifford is saying. Basically if you shrink D: the free space will be AFTER D: and you will not be able to merge that space with C: unless you use a third-party product.
However, since you say D: is empty, what you can do is Delete Volume D:, extend volume C:'s partition, then allocate a partition with whatever space is left, format it, and assign it "D:".