question about DWORD
-
Hello, i was wondering if it is possible to to convert a DWORD _stdcall to a void pointer-to-function? -Ryan M.
-
Hello, i was wondering if it is possible to to convert a DWORD _stdcall to a void pointer-to-function? -Ryan M.
-
Hello, i was wondering if it is possible to to convert a DWORD _stdcall to a void pointer-to-function? -Ryan M.
-
Hello, i was wondering if it is possible to to convert a DWORD _stdcall to a void pointer-to-function? -Ryan M.
In general no. The reason is that when you cast things such as this, you run a great risk of changing the calling convention and thus trashing your stack. However, there are a few cases where this works. But in general, it is very bad idea. Why would you want to do this? (The reason I ask is because 9 times out of 10, when someone asks this question it is because they can't get their code to compile because they aren't doing something right.) Tim Smith I'm going to patent thought. I have yet to see any prior art.