You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Standard is standard, so there's nothing to go into it, no way. There's an error -- report it to the developers. No other way.
In the standard bible, the call is GetLastError.
but it should be like this ::GetLastError.
Otherwise kernel32::GetLastError is a bug.
How not to correct it?
How can you not edit it?
I hinted and I showed and I wrote.
#import
int GetLastError(int )
---
and that's it. The context is free.
If you don't want to do it that way, RtlGetLastError is similar.
I hinted and I showed and I wrote.
#import
int GetLastError(int )
---
and that's it. The context is free.
If you don't want to do it that way, RtlGetLastError is similar.
don't you want to do it this way - RtlGetLastError - similar
The author has a great respect for the work done. If the author doesn't mind, I will include these two classes in my SCL class library.
However, there are errors in the classes in terms of defining standard Microsoft types that cause other errors in the algorithm. For example, DWORD type is not int but uint. Because of this, I had to revise some algorithms in the classes, but it was not very difficult.
_Konstantin_:
For example, DWORD type is not int, but uint.
bitness is the same. this is enough for the call
I don't quite understand how thread-safety is implemented? Suppose: several processes write and read at the same time. Logically, there should be something like Lockfile, but I didn't find it in lib. Or is it already implemented at winapi level?
lib doesn't have section binding, because theoretically the code can be executed in different processes.
To control it, use either your variant or https://www.mql5.com/en/code/1835.