answered Sep 27 '12
cvGetWindowName and cvCreateTackbar works only with windows created by OpenCV via cvNamedWindow/cvShowImage.