shell execute , second try

Post Reply
Frank Demont
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

shell execute , second try

Post by Frank Demont »

Setting RTF to Wordpad MFC-aplication from configuration

shellexecute( oWnd:hwnd,"open",rtf-file,....)

has no effect.

Resetting RTF extension to microsoft word , and it works !!!!


How can we change this behaviour for shellexecute ?????

Frank
User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Post by Jeff Barnes »

Frank,

Both of these work for me:

SHELLEXECUTE(0,0,"C:\TEST\TEST.RTF",0,0,1 )

SHELLEXECUTE( oWnd:hwnd,"open","C:\TEST\TEST.RTF",0,0,1)


Make sure you have RTF files accosiated with WordPad.


Jeff
Post Reply