Discussão do artigo "Interação entre o MetaTrader 5 e MATLAB" - página 3

 

Encontrei um pequeno erro no UnitDll.cpp

É melhor verificar com OR e não com AND

Portanto, você não pode enviar um comando para um mecanismo fechado



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;
}
 
Você pode publicar seu tutorial detalhado?