Well, when you're makeing a win32 (C) aplication, I advice you to use
ShellExecute .
With ShellExecute, you can start an other program or an other document, print it, etc.
the first parameter is the Handle to your window (HWND)
the second: this is what you want to do with the program/document. we want to "open" it. this will execute the .exe-file.
the third: this is the file (+path) we want to execute.
you have to youse "\\" instead of '\' beacause the slash (or backslash whatever) is an escape character
fourth: these are the parameters you want to give to your exe program. I've used NULL here this means I don't want to pass any arguments. but you can type here a path to a .txt-file that you want notepad to open
fifth: this is the default directory. when you add an .txt-file as the fourth parameter, you can specifie here where notepad has to look for it.
sixth: this specifies how the program will be shown to you.
I used SW_MAXIMIZE: this will maximize notedpad.
SW_MINIMIZE will minimize notepad. there are some more styles, but these are the most important ones (IMHO)
Am I makeing any sense here?