Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

spawn

Status
Not open for further replies.

puterkrazy

Programmer
Aug 6, 2003
30
0
0
US
Can someone help with spawning a dqy file?
_spawnlp(P_NOWAIT, "dqyfile.dqy", "dqyfile.dqy", NULL) gives an error -1.
Thanks in advance.
 
Look at the error number associated with that error status.

Does it say "file not found" or "not executable" (or something else)?

My guess is, spawn() doesn't understand file associations, so you need to run the actual application which reads DQY files, and list your file as a command line parameter.

Also look at CreateProcess() and/or ShellExecute()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top