ShellExecute遇到问题求助
我用ShellExecute调用一个VB程序生成的EXE文件-GZJD.exe,程序在运行过程中,没调用一次就在任务管理器的进程窗口中生成一个进程。这个哪里出了问题?如何解决?请高手赐教。最好能给出代码,先行谢过。
程序代码:if(t>sunrisetime && t<sunsettime)
do
{
//调用VB生的的GZJD.exe文件,读取编码器的数据
ShellExecute(NULL,"open","d:\GZJD.exe",NULL,NULL,SW_SHOWNORMAL);
num=GAM60Value();
if(-0.05<num-spa.zenith<0.05)
flag=1;
else
flag=0;
printf("flag=%d\n\n",flag);
Sleep(20000);
} while(t>sunrisetime && t<sunsettime);





