I do not know if anothers coleagues are having same dificulties with Build.bat at all HMG samples. Build.bat can be used at line command prompt passing the right first parameter which is always the main module to be compiled. But when we tried to use this Build.bat in any sub-folder of samples thru "Windows Explorer" by clicking with mouse, so we can not build the HMG example. But I have a suggestion to correct only on each Build.bat for all samples cases (not for main Build of HMG folder). See how we can avoid for missing parameter at simple Build.bat for samples. Normally we have in Build.bat like this:
Code: Select all
call ..\..\..\build.bat %*
Code: Select all
@Echo off
if "%1"=="" Goto WithOutPar
SET MainFile=%1
Goto Continue
:WithOutPar
for /R %~dp0%~1 %%f in (*.hbp) do (Set MainFile="%%~nf")
Goto Continue
:Continue
call ..\..\..\build.bat %MainFile%
I believe I am not the only one which has this difficulties when click Build.bat of samples, is It good idea or not ?