Melt the butter. Add sugar and eggs and stir until creamy. Mix the baking powder in the buttermilk and then add to the butter mixture. Now add flour, salt and corn flour and work into a smooth dough. Pour the dough into a mold and bake for about 30 minutes. It is best to do a toothpick test.