loadMovie() Problem :(

I have a problem!

I’m trying somethin very simple just to LOAD a movie. But i get errors!

in my .h file i write
ofVideoPlayer myPlayer;

in my TestApp.ccp i write:
myPlayer.loadMovie(‘myMovie.mov’);

(of course i have a file myMovie.com in my bin data…)

I get the following:

Warning: Character conversion cnstant too long for its type
Error: invalid conversion from ‘int’ to ‘const char’
error: initializing argument 1 of 'std::basic_string<_CharT,_Traits,_Alloc>::basic_string(const etccccccc…

I don’t know what I’m doing wrong! Am i forgetting to include or allocate something?

Can someone help me out? Because it ought to be so simple i guess…

For completeness, here is my full code of my testApp.h:

  
#ifndef _TEST_APP  
#define _TEST_APP  
  
  
#include "ofMain.h"  
  
class testApp : public ofBaseApp{  
  
	public:  
		void setup();  
		void update();  
		void draw();  
  
		void keyPressed  (int key);  
		void keyReleased(int key);  
		void mouseMoved(int x, int y );  
		void mouseDragged(int x, int y, int button);  
		void mousePressed(int x, int y, int button);  
		void mouseReleased(int x, int y, int button);  
		void windowResized(int w, int h);  
  
};  
  
	ofVideoPlayer myPlayer;  
  
  
  
#endif  
  

Here is my testApp.ccp:

  
  
  
#include "testApp.h"  
  
//--------------------------------------------------------------  
void testApp::setup(){  
	  
	myPlayer.loadMovie('myMovie.mov');  
	  
}  
  
//--------------------------------------------------------------  
void testApp::update(){  
	  
}  
  
//--------------------------------------------------------------  
void testApp::draw(){  
  
}  
  
//--------------------------------------------------------------  
void testApp::keyPressed(int key){  
  
}  
  
//--------------------------------------------------------------  
void testApp::keyReleased(int key){  
  
}  
  
//--------------------------------------------------------------  
void testApp::mouseMoved(int x, int y ){  
  
}  
  
//--------------------------------------------------------------  
void testApp::mouseDragged(int x, int y, int button){  
  
}  
  
//--------------------------------------------------------------  
void testApp::mousePressed(int x, int y, int button){  
  
}  
  
//--------------------------------------------------------------  
void testApp::mouseReleased(int x, int y, int button){  
  
}  
  
//--------------------------------------------------------------  
void testApp::windowResized(int w, int h){  
  
}  
  
  
  
  

You should check the moviePlayerExample bundled in OF.

In testApp.h, your ofVideoPlayer myPlayer; is outside the class.