설명
기고자: Lutz Westermann, 2012년 10월
소형 모델 유형 :델파이
카테고리 : 메가 슬롯 API 라이브러리
메인 파일 : DOex2.gms
$title 'GDX를 읽고 쓰고, 옵션을 설정하고 메가 슬롯를 실행하기 위한 전문가 수준 Delphi(객체) API 테스트' (DOEX2,SEQ=16)
$onText
기고자: Lutz Westermann, 2012년 10월
$offText
$set srcRoot %메가 슬롯sysdir%apifiles%system.dirsep%Delphi%system.dirsep%
$dcomp를 설정하지 않은 경우 $set dcomp MSBuild
$if %system.platform% == WEX
$플래그가 설정되지 않은 경우 $set flags -t:rebuild -p:Configuration=Release -p:Platform="Win64"
$call rm -rf Demanddata.gdx
$call %dcomp% "%srcRoot%xp_example2.dproj" %flags%
$if errorlevel 1 $abort 'xp_example2.dpr 컴파일 문제'
$call ="%srcRoot%xp_example2" "%메가 슬롯sysdir%." model2.gms
$if errorlevel 1 $abort 'xp_example2 실행 문제'
$call gdxdiffdemanddata.gdxdemandwant.gdx
$if errorlevel 1 $abort '수요 데이터가 예상과 다릅니다.'