Forum

Windows Messages in Services

Hey. I need to get Windows messages in a service program. Since services don't support OnChartEvent, I am trying to build something similar. (Btw: Are there any plans to implement this?) I installed a WH_GETMESSAGE hook procedure. Here is the callback (in DLL): LRESULT CALLBACK GetMsgProc( int

Dynamically fill objects with data

Hey! I need to dynamically fill objects of complex types (class or struct) with data. The class/struct may look like this: class FooClass { public : int Int; string Str; double Dbl; . . . }; struct FooStruct { int Int; string Str; double Dbl;

Template function typification with objects and object pointers

I am trying to typify a template function with an object pointer like you can see below. But I always get " invalid pointer access". //+------------------------------------------------------------------+ //| Class Foo |

HMAC SHA256

Hey guys! I need to send a signature as HMAC SHA256 to an online service. I’ve created a class with the help of this and that (https://stackoverflow.com/a/21498946). It uses CryptEncode(CRYPT_HASH_SHA256,...) to create the hash. You can see it below! It is still very basic without error handling