[poniedzia�ek, 17 sierpie� 2009], Jaroslaw Kadziola napisa�(a):
Hi,
> > Just simply execute above program (let's call it myprg.exe) from other
> > Harbour application, i.e.:
> > proc main()
> > hb_run( hb_dirBase() + "myprg.exe" )
> > return
> > I'm interesting in parameters passed to myprg.exe. They can be seen
> > as hb_valToExp( { ... } ) results.
> ********************************
> Proc Main()
> link_ := '\Windows\calc.exe'
> hb_run(link_)
> y= hb_valToExp( {} )
> *******************************
> Get y={}
Thank you for your tests but I think you did not understand me.
Please compile these two short programs for WinCE:
/*** myprg1.prg ***/
proc main()
hb_run( hb_dirBase() + "myprg2.exe" )
return
/*** myprg2.prg ***/
proc main( ... )
? hb_valToExp( { ... } )
wait
return
put them in the same directory in PocketPC and then execute myprg1.exe.
it should execute myprg2.exe which should show passed parameters.
Now Viktor's makes some "revolution" ;-) in build scripts so it's not
possible to rebuild Harbour but when it will be functional again
please try to recompile Harbour for WinCE with small patch I'll
commit in a while and then try to make test for passing parameters.
It should be enough to modify above code a little bit, i.e.:
/*** myprg1.prg ***/
proc main()
hb_run( hb_dirBase() + "myprg2.exe param1 param2 param3" )
return
In current SVN code hb_run() probably does not work when parameters
are given.
best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour