Home > Back-end >  UE4 C editor of out of range
UE4 C editor of out of range

Time:03-30

FString UMyBlueprintFunctionLibrary: : BodyTurn (float& Uparm, FString zeros)
{
Float ars.
HANDLE hCom1=init_com (" COM3 ");
/* delivery module
The string result="233";
WriteFile (hCom1, result. The data (), the result, the size (), NULL, NULL);
*/
string result="";
//try
//{

Char buf [100]={0};
DWORD readsize=80;
//int n=10;
//while (n & gt; 0 {
ReadFile (hCom1, buf, 80, & amp; Readsize, NULL);
/* cout & lt; for (int i=0; i <80; I++)
{
The result +=buf [I];
}
Int uparml=result. Find_first_of (" A: ") + 2;//find A:
Result. Erase (0, uparml);//A start from zero to A: characters
Int the end=result. Find_first_of (" 0 ");//find \ n
Result. Erase (end);//remove end bit behind all characters
Ars=atof (result. C_str ());
Ars ars *=360/32767;
*//*}
//catch (const STD: : exception&)
//{
//ars=180;
//}

*//*}

//system (" pause ");
//return 0;
Uparm=ars;
Zeros=0;
Return zeros.
}

CodePudding user response:

Cause the resolution or refresh rate on too high a change on the resolution of the computer try
  • Related