I call a VB exe through a service made in delphi.But i do not receive the parameters i am supposed to be transfering.When i make the call with the command prompt,the exe receive the param no problem.What could be the problem...i wonder!!!
param:='TagExe'+inttostr(cptrexe+1);
exe:=PIserver.PIModuleDB.PIModules[Plant].PIProperties['Exe'].PIProperties['Exe'+inttostr(cptrexe+1)].Value;
ShellExecute(0,'Open',Pchar(exe),Pchar(param),'',SW_SHOWNORMAL);
Thank you!
param:='TagExe'+inttostr(cptrexe+1);
exe:=PIserver.PIModuleDB.PIModules[Plant].PIProperties['Exe'].PIProperties['Exe'+inttostr(cptrexe+1)].Value;
ShellExecute(0,'Open',Pchar(exe),Pchar(param),'',SW_SHOWNORMAL);
Thank you!