Thanks everyone! I just figured out how. The main window handler and instance handler are all in the global core pointer. I don't even need the message pump, as it will be in your game executable. I just need to hook up my window procedure.
Just if you are curious what am I doing. I actually working on a console window for outputing diagnostic text. Since the DBpro debugger is so buggy, I need to create a way so that I can output some diagnostic text easily. I know there is a PRINT command, but it doesn't work properly as soon as you switch to 3D mode. TEXT command is fine, but I need to specified the X, Y coordinate everytime I need to output a text.
All I have to do right now is,
WRITE CONSOLE "The value of A is " + str$(A)
Then this text will be output to a so-called console window overlapped on top of your game window when you run it. (Of course this can only be used when you are in Non-Exclusive Fullscreen Mode, where most debugging is usually done in this mode.) You don't even need to called SYNC or anything since it is a separate window. (Which you need to if you are using PRINT or TEXT command.)
It is almost ready, I just wanna spice up a little bit with other relevant tools in it to make a complete tools set that is useful for debugging, like log file, prompt message in a message box, etc.
If you feel there are some other useful features that are worth adding in, tell me more and I will see how it can fit in.
Bad Nose Entertainment - Where games are forged from the flames of talent and passion.
http://www.badnose.com/