[Windows-Only]Advanced Console Class

I made a Advanced Console Class, and i hope it will become useful for someone.
Third Update: http://localhostr.com/file/f7DRfu3/ConsoleAdvanced.rar
Functionalities:
print/printf-like functions (Write/Writef)
Experimental scanf-like functions (Take care) (Scanf)
SetPositionText function
SetWriteColor function (Thanks to cplusplus.com's Article on Console Colours)
AddButton function (Unlimited buttons number, thanks to Irrlicht's core::array class included in the archive)
AddTextButton function
Added Button Events
ShellExec function (Not using system())

Example File in the Archive (Test.cpp/Test.exe precompiled with VS08)
Updated April 3rd, 2012 ( Bugfixes )
Last edited on
Next time can you use C++? Or does main get defined in CConsole.h?
Last edited on
You mean use hpp extension? It is c++ o.O
In the C++ programming language, there are only two valid forms of the main function:
1
2
3
4
int main(/*void*/)
{
    //...
}
1
2
3
4
int main(int argc, char **argv) //names of argc or argv can be anything
{
    //...
}
The code you have written is not C++. It's extremely similar, though.
Last edited on
Oh, that's because i used the Windows API EntryPoint. When you create a console, it allocates its console window, so i don't need to have int main(), and when you delete it, it free's its console window.
That makes sense, I can see why did that now. I'm just strongly against nonstandard stuff, sorry ;)
Last edited on
Another update. Includes Buttons and ShellExec.
Last edited on
Topic archived. No new replies allowed.