I have already said thanks? THANKS!
I presume you mean
AnEffect := DROPEFFECT_NONE;
I am a bit confused why PEffect := @AnEffect; or PEffect := LPDWORD(@AnEffect); are similar, the second one sound like a pointer of a pointer to me (my nightmare during classes
)
Anyway, I made the noob mistake of writing the whole procedure on the same line, more readable to me but making wrong asumptions during debugging, and in my case, the invalid typecast occurs on the Sender parameter, before reaching the Effect one. So before asking for help on this one, I will search a bit on my side first.
You might have helped me on the next issue before I got it.
I will keep posted my results, especially if it can help someone else later on