I made a DLL supposed to launch a Word session based on a particular document.
Equivalent to: Start/Run/winword.exe F:\WPSS_Start.doc
I'm using the function _spawnlp as follow:
lReturnCode = _spawnlp( _P_WAIT, "winword.exe", "F:\WPSS_Start.doc" , NULL );
The result is: Word is effectively launched, but with a default docuemnt (document1.doc) instead of my personal document.
Any idea what I have done wrong?