hello!
Im trying to use _popen to execute a cmd app from a WFA using this code....
Im including stdio.h

_popen("\"d:\\Freeling\\bin\\analyzer.exe -f d:\\Freeling\\share\\config\\es.cfg\"", "r");

This code straight excecuted from the cmd console, works.
But the popen inst working not even excecute the cmd console it seem like is going to load it but it doesnt.
I tried to execute any .exe that inst installed and do the same....
what's happening please....does anybody know??
thanks..

http://msdn.microsoft.com/en-us/library/96ayss4b(VS.80).aspx

I think the example in that page might help you out !

Also pay close attention to the Note in that article -- you can not use popen() in a Windows program, it only works in console programs. And that's really unfortunate.:'(

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.