Hi,

sorry, a simple question...
How can I start the standard texteditor with a special textfile ?
Could not find informations here.

Thanks,
Nordwind64
Posted on 2003-06-24 13:20:04 by Nordwind64
Hi,
ok, found the solution...

.data
open db "open",0
name db "textfile.txt",0

invoke ShellExecute,hWnd,addr open,addr name,0,0,SW_SHOWNORMAL

Greetings,
Nordwind64
Posted on 2003-06-24 15:35:52 by Nordwind64
Another solution:



.data
textfile db "textfile.txt",0

.code
invoke ShellExecute,hWnd,0,offset textfile,0,0,0


The WIN32.HLP file also says that you should set the last parameter to zero if you are opening a file rather than an app, but in my windows using SW_* works Ok...
:confused:
Posted on 2003-06-26 18:47:01 by QvasiModo