Thanks for clarifying this. The example is a little backwards. We declare the type in C++ and refer it from C. I suppose that's not what extern "C" really is intended for, Or s it? -- Torbjörn