James Hawkins wrote: > On 9/27/05, Ann & Jason Edmeades <us at edmeades.me.uk> wrote: > >>If I change this to >> fred = RegisterClassEx16( &wcex ); >> TRACE("Here... %d\n", fred); >> return fred; >> >>it all works.....! >> > > > This sounds like the stack is getting trashed. I agree this looks very much like a stack corruption issue. Ivan.