(1)证明:因为$\angle ACB = 90^{\circ},$所以$AC\perp BC。$
因为$OC$为$\odot O$的半径,所以$BC$是$\odot O$的切线。
因为$\odot O$与边$AB$相切于点$P,$所以$BC = BP,$所以$\angle BCP=\angle BPC,$
所以$\angle B = 180^{\circ}-\angle BCP-\angle BPC = 180^{\circ}-2\angle BCP = 2(90^{\circ}-\angle BCP)。$
因为$\angle ACP=\angle ACB-\angle BCP = 90^{\circ}-\angle BCP,$所以$\angle B = 2\angle ACP。$
(2)解:如图,当点$O$在$BC$上时,连接$OA,$$OP。$
因为$\angle ACB = 90^{\circ},$$AC = 8,$$BC = 6,$所以$AC\perp BC,$$AB=\sqrt{AC^{2}+BC^{2}}=\sqrt{8^{2}+6^{2}} = 10。$
因为$OC$为$\odot O$的半径,所以$AC$为$\odot O$的切线。
因为$\odot O$与边$AB$相切于点$P,$所以$OP\perp AB,$$AP = AC = 8,$
所以$\angle OPB = 90^{\circ},$$BP = AB - AP = 2。$
设$OC = OP = x,$则$OB = BC - OC = 6 - x。$
因为$OP^{2}+BP^{2}=OB^{2},$所以$x^{2}+2^{2}=(6 - x)^{2},$
展开得$x^{2}+4=36-12x+x^{2},$
移项得$x^{2}-x^{2}+12x=36 - 4,$
合并同类项得$12x = 32,$
解得$x=\frac{8}{3},$所以$OC=\frac{8}{3},$所以$OA=\sqrt{OC^{2}+AC^{2}}=\sqrt{(\frac{8}{3})^{2}+8^{2}}=\frac{8\sqrt{10}}{3}。$
因为$AC = AP,$$OC = OP,$所以$OA$垂直平分$CP,$
所以$S_{四边形ACOP}=\frac{1}{2}AC\cdot OC+\frac{1}{2}AP\cdot OP=\frac{1}{2}OA\cdot CP,$
所以$CP=\frac{2AC\cdot OC}{OA}=\frac{2\times8\times\frac{8}{3}}{\frac{8\sqrt{10}}{3}}=\frac{8\sqrt{10}}{5}。$
当点$O$在$AC$上时,同理可得$CP=\frac{12\sqrt{5}}{5}。$
当点$P$与点$A$重合时,$CP$最长,此时$CP = 8。$
因为点$O$在$\triangle ABC$的外部,且$\frac{8\sqrt{10}}{5}<\frac{12\sqrt{5}}{5}<6,$所以$CP$长的取值范围为$\frac{8\sqrt{10}}{5}<CP\leqslant8。$