Hi Amir,
I have something similar here.
I have a 64 bit machine where I installed the 64bit installers and my examples run fine.
When I use my codeblocks to run the project, there are issues. I use ofxOpenNi plugin from gameoverhacks. The bin folder does not have openNi.dll generated while compiling. As per the instructions,
I have copied the dlls from addons/openNi/win/copy_to_data_openni to bin/data/openni of my project.
I have linked the libraries from the data/openni to my project. Nothing seems to work though.
Last time I got it to run by some combination, setting the verbose level of oflog gave me environment variable not found while calling init. Is it because of the 64bit OS I am using??