I added one more line while initialization
const IID DIID__IRecognitionEvents = {0x229C1071,0x829F,0x11D2,{0xBA,0x6E,0x00,0x00,0xE8,0xD9,0xFD,0xF6}};
I found it on internet. Its working fine. But what exactly is this line doing I dont understand. If anybody knows what this line is doing pls help me.
Thank you.