If it is not necessary to have only MsPaint to open the bmp, you could use the Shell function or the ShellExecute API function.