I created project Win32 Application and use this is function that help me to archive my goal
DWORD RunSilent(char* strFunct, char* strstrParams)
{
STARTUPINFO StartupInfo;...
Type: Posts; User: sistem
I created project Win32 Application and use this is function that help me to archive my goal
DWORD RunSilent(char* strFunct, char* strstrParams)
{
STARTUPINFO StartupInfo;...
Many thanks you all helped me on this thread
Everything seem that is difficulty
Let me describe again
Assume you create new Win32 Application project with select "a typical Hello Word !...
I tried your code and run well, get all PATH and my project location
I recognised that when i create my project with "Win32 Console Application" very thing as good, fp = _popen("java -version...
Checked, do not warning or error when compile
but make in debug mode fp # null
make in release mode fp always = null
below is all my example
#include <stdio.h>
let me correct code after, thanks many
I found root cause.
If I set "Set Active Configuration" to Debug in menu Build, this case do not error. fp # null,
If I set "Set Active Configuration"...
Yes, I used popen(). But there is problem, i don't know why ?
I create new project use Microsoft VC++, create class Example.c
#include <stdlib.h>
#include <stdio.h>
main(){
execvp(), can run all OS (Windows, Linux, Mac, Vista) ?
thanks you so much, I did as you and run ok on Windows
If i use _popen("java -version 2>&1", "r"); in my code and I build this code to abc.sh
Can this file run well on linux & mac OS ?
thanks
Could you please help me to put java -version command to a string ?
Thanks you very much,
please help me one again
When I use
#include <stdio.h>
main()
If i use _popen and _pclose then this code can run on unix ?
Hi, all
I try this code, but can not compile and debug
#include <stdio.h>
main()
{
FILE *fp;