Not quite, think about it this way. The vector resolute of b in the direction of a is projecting b onto a, the length of the vector that you obtain will be smaller than the original vector, since for a right angled triangle the hypotenuse will be longer than the adjacent side. But for 1), you want a vector that has the same magnitude as b.
To find 1), you can find a unit vector in the direction of a, and then multiply by the magnitude of b (the unit vector will ensure the vector has the same direction as a while multiply by the magnitude of b, will result in the vector having the same magnitude of b, as the unit vector's length is 1).
EDIT: Adding an example.
Let

Now for (1), we want a vector in the same direction as

, so we first need to find the unit vector in the direction of

<br />\\ & =\frac{1}{\sqrt{100}}\left(6\underset{\sim}{i}+8\underset{\sim}{k}\right)<br />\\ & =\frac{1}{10}\left(6\underset{\sim}{i}+8\underset{\sim}{k}\right)<br />\\ & =\frac{1}{5}\left(3\underset{\sim}{i}+4\underset{\sim}{k}\right)<br />\end{alignedat})
So now we have a vector of magnitude 1 in the direction of

, so we need to now find the magnitude of

.
^{2}+\left(-2\right)^{2}}<br />\\ & =\sqrt{9}<br />\\ & =3<br />\end{alignedat})
So our final vector will be
<br />\\ & =\frac{9}{5}\underset{\sim}{i}+\frac{12}{5}\underset{\sim}{k}<br />\end{alignedat})
(2) For the vector resolute of

in the direction of

we will obtain.
.\left(6\underset{\sim}{i}+8\underset{\sim}{k}\right)}{\sqrt{6^{2}+0^{2}+8^{2}}}\left(6\underset{\sim}{i}+8\underset{\sim}{k}\right)<br />\\ & =\frac{12-16}{\sqrt{100}}\left(6\underset{\sim}{i}+8\underset{\sim}{k}\right)<br />\\ & =-\frac{2}{5}\left(6\underset{\sim}{i}+8\underset{\sim}{k}\right)<br />\\ & =-\frac{12}{5}\underset{\sim}{i}-\frac{16}{5}\underset{\sim}{k}<br />\end{alignedat})
EDIT2: I hope that the above all right, took a bit to get it all typed together properly. Anyways, hope it helps.