I am facing a proble while launching word exe by using createprocess API.
In My application there is two button one is used to launch word and another for attaching a word file.
Here If I launch a word file by calling createprocess API by passing Word EXE path and WLL path its working fine and wll is attached with word.
but If I will open a file by using a GetFileName API by clicking the another button. I am not able to load wll.
If I comment the GetFileName API and give the path name hard coded its working fine.
Could you plz help to sort out the proble.