Mix sugar, cornstarch and salt. Cut chocolate into small pieces and add to sugar mixture. Add boiling water; cook until thick. Remove from heat; add butter and vanilla. Spread on cake as a frosting or filling. Can be used hot.