i m traying to learn about the WindowsConsole API .. so i was testing the "CreatePseudoConsole()" function in the code . and it said that the function is undefined . can u help me please.
Rm:
functions like "SetConsoleWindowInfo()" work properly .
i m traying to learn about the WindowsConsole API .. so i was testing the "CreatePseudoConsole()" function in the code . and it said that the function is undefined . can u help me please.
Rm:
functions like "SetConsoleWindowInfo()" work properly .
Does your environment cover the CreatePseudoConsole Requirements? such as Header and Minimum supported client.
yep in . fact the other functions of the ConsoleAPI work proparly ..
See Windows Command-Line: Introducing the Windows Pseudo Console (ConPTY). It references microsoft/terminal: The new Windows Terminal and the original Windows console host, all in the same place!
Unless you understand the need for a Pseudo Console, you do not need CreatePseudoConsole. You do not need it for traditional Windows consoles. Pseudo Consoles are complicated.
Are you sure that you added at beginning
#include <ConsoleApi.h>
and that _WIN32_WINNT is sufficient ?
like before the include :
#define _WIN32_WINNT 0x0A00

im using mingw64 8.1.0 win32 seh as a compiler
0x0A00 is for win10
.. it does not work

After posting my first response I found articles like Microsoft Developing a Pseudo-Console for Next Windows 10 Version. So Pseudo-Consoles are a major new development. There are instructions for working with them in:
I think it will be difficult for beginners to follow those instructions but you can try.
Off-topic comment: in the DevBlogs article (above) there is a picture of Admiral Grace Hopper. She is credited as having written the first computer compiler. The first. I actually met her once and I once was in her office but not while she was in it.
5 people are following this question.