Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/148.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将文本输入框添加到c++;使用devc++; 我使用DEV C++标准Windows应用程序模板,对于GUI编程来说是全新的,我甚至不知道从哪里开始。我在线查看了这些示例,并尝试将L“Edit”添加到以下代码中: hwnd = CreateWindowEx ( 0, /* Extended possibilites for variation */ szClassName, /* Classname */ "Windows App", /* Title Text */ WS_OVERLAPPEDWINDOW, /* default window */ CW_USEDEFAULT, /* Windows decides the position */ CW_USEDEFAULT, /* where the window ends up on the screen */ 544, /* The programs width */ 375, /* and height in pixels */ HWND_DESKTOP, /* The window is a child-window to desktop */ NULL, /* No menu */ hThisInstance, /* Program Instance handler */ NULL /* No Window Creation data */ );_C++_Windows_User Interface - Fatal编程技术网

将文本输入框添加到c++;使用devc++; 我使用DEV C++标准Windows应用程序模板,对于GUI编程来说是全新的,我甚至不知道从哪里开始。我在线查看了这些示例,并尝试将L“Edit”添加到以下代码中: hwnd = CreateWindowEx ( 0, /* Extended possibilites for variation */ szClassName, /* Classname */ "Windows App", /* Title Text */ WS_OVERLAPPEDWINDOW, /* default window */ CW_USEDEFAULT, /* Windows decides the position */ CW_USEDEFAULT, /* where the window ends up on the screen */ 544, /* The programs width */ 375, /* and height in pixels */ HWND_DESKTOP, /* The window is a child-window to desktop */ NULL, /* No menu */ hThisInstance, /* Program Instance handler */ NULL /* No Window Creation data */ );

将文本输入框添加到c++;使用devc++; 我使用DEV C++标准Windows应用程序模板,对于GUI编程来说是全新的,我甚至不知道从哪里开始。我在线查看了这些示例,并尝试将L“Edit”添加到以下代码中: hwnd = CreateWindowEx ( 0, /* Extended possibilites for variation */ szClassName, /* Classname */ "Windows App", /* Title Text */ WS_OVERLAPPEDWINDOW, /* default window */ CW_USEDEFAULT, /* Windows decides the position */ CW_USEDEFAULT, /* where the window ends up on the screen */ 544, /* The programs width */ 375, /* and height in pixels */ HWND_DESKTOP, /* The window is a child-window to desktop */ NULL, /* No menu */ hThisInstance, /* Program Instance handler */ NULL /* No Window Creation data */ );,c++,windows,user-interface,C++,Windows,User Interface,然而,当我试图添加它时,它给了我这个错误从conchchar *到dWord < /Cord>的无效转换,在哪里我可以学会如何使用DeV C++来实现这一点?实际上,我想从零开始学习如何做到这一点,而不想使用生成器。对于那些使用DEV C++的人,我如何将文本输入框添加到他们所拥有的标准Windows GUI模板中?p> CreateWindowEx的一个参数肯定是错误的。错误在哪一行?还有更多的信息吗?您应该查阅MSDN上的文档: 如果您对UI编程一无所知,我建议您下载Visual Stud

然而,当我试图添加它时,它给了我这个错误<代码>从conchchar *到dWord < /Cord>的无效转换,在哪里我可以学会如何使用DeV C++来实现这一点?实际上,我想从零开始学习如何做到这一点,而不想使用生成器。对于那些使用DEV C++的人,我如何将文本输入框添加到他们所拥有的标准Windows GUI模板中?p> CreateWindowEx的一个参数肯定是错误的。错误在哪一行?还有更多的信息吗?您应该查阅MSDN上的文档:


如果您对UI编程一无所知,我建议您下载Visual Studio Express for Desktop。它有一个可视化的UI设计器,让你在Visual Basic、C语言或Visual C++中编程。您获得的程序将不是本机Win32应用程序;它们在.NET虚拟机上运行,但这很好。您也可以看到由设计器生成的源代码。

我不想使用visual basic的原因是因为我不想使用构建器,这样我就可以从零开始学习如何执行此操作。但我会查一查。谢谢,如果你使用C++或C++,你可以看到Builder生成的源代码,我认为使用这些本地Windows API函数比使用它容易。.NET framework提供了更高级别的组件,并且更易于使用。即使您不使用生成器,也可以使用Visual Studio中的.NET framework组件(例如System.Windows.Controls.ListView),这可能会使您的生活更轻松。如果您想学习使用原始C API进行Windows编程,然后就是你要找的那个人,它涵盖了你似乎感兴趣的地面零层的所有东西。