use cvCreateTrackbar2 instead of cvCreateTrackbar if OpenCV2