What issues do you have with callbacks and global variables? There is nothing COM specific related to callbacks and global variables. They work exactly like in C callbacks and C variables.
You really should not post topics with tile and description like "help, something doesn't work, what to do?" Because nobody knows what you need/want/are required to do. Post the exact issue you have.