Skip to content
haallo

How to cast a function pointer to a void* a slightly-too-long-for-twitter report about a subtlety in C++

Question: How do you cast a function pointer to a void*? (You’re trustworthy and wouldn’t dare to do anything evil with it, right?) Answer: Maybe your first thought was, well reinterpret_cast<void*>(&f) of course. That was mine, at least. Well, it turns out, C++ wants to support architectures, where data and instruction pointers are physically distinct […]

Analysing QtQuick apps with GammaRay or “Why is my button gone?”

This is a typical situation when you program a GUI for an application. You have just created a new control, you start your application and… no control. But now: Is it obscured? Is it misplaced? Is it completely transparent or set to ‘invisible’? Is my custom OpenGL-stuff broken or is the item actually not created for […]

By continuing to use the site, you agree to the use of cookies. More information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close