Using the sample program(CameraSDKtest.exe):  But New written code:   
Using the sample program(CameraSDKtest.exe):
But
New written code: