_DLLAPI void __stdcall GetProcessorLoad(char(&processorID)[16])
ushort wow[];
I don't know the C++ version you are using, but you are passing in a 16-bit array and chars are 8-bit. I'd try it with short. And probably a static array on MQL side.
I want to bind my EA to the ProcessorID of a computer, so that it can't be run in another PC. Because i want to sell the EA and don't want to let it to be copied to other systems.
I bound it to Hard disk serial number, but i found that it can be changed by some software, so i decided to bind it to ProcessorID.
I don't know the C++ version you are using, but you are passing in a 16-bit array and chars are 8-bit. I'd try it with short. And probably a static array on MQL side.
Thanks. But it thought that 16 is the lenght of array. am i right or wrong?
please try to change the code and let us know how we can change it to get the right result.
Thank you so much.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello guys,
i wrote the following codes in C++ and MQL5 to get the ProcessorID of the system, but it doesn't return the correct one. Please let me solve the problem.
my C++ code:
and this is the corresponding MQL5 code, but still get the -1 in all char array cells:
Please help me solve the problem please.
Thank you so much