기고글 토론 "MetaTrader5와 MATLAB의 상호 작용" - 페이지 3

 

UnitDll.cpp에서 작은 버그를 발견했습니다.

AND가 아닌 OR로 확인하는 것이 좋습니다.

따라서 닫힌 엔진에 명령을 보낼 수 없습니다.



bool __stdcall mlxInputChar(char *CharArray)
{//100% ready. Function of passing command/function/text to desktop
	/*
	** Check if virtual machine and string are present
	*/
----> // Original with Bug -> if((pEng == NULL)&&(strlen(CharArray)<1)) return false;        <---
	if (( pEng == NULL) || (strlen(CharArray)<1)) return false;
	/*
	** Enter formula into MATLAB desktop
	*/
	engEvalString((Engine *) pEng, CharArray);
	return true;
}
 
자세한 튜토리얼을 게시할 수 있나요?