By settings the 'oleautomation' option for an interface you ask the MIDL compiler for help making sure that the interface is compliant with the automation standard. Asking for the compilers help and then tell it to shut up doesn't make any sense. Remove the 'oleautomation' keyword from the interface definition instead. Hope this helps -- Roger
It's supposed to be hard, otherwise anybody could do it!
Must be something wrong with your code, i never had any problem with it can you paste the exact code
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg