简体   繁体   English

使用来自c ++ gui的输入来启动c ++(exe)

[英]start a c++(exe) with input from a c++ gui

i just started learning how to program gui in c++ just using dev c++, so nothing that fancy. 我刚刚开始学习如何仅使用dev c ++在c ++中编程gui,所以没有那么花哨的东西。 with this code: 使用此代码:

  HWND hWndEdit = CreateWindowEx(
        WS_EX_CLIENTEDGE,
        TEXT("Edit"),
        TEXT("input"),
        WS_CHILD | WS_VISIBLE,
        100, 20, 140, 20,
        hWnd, NULL, NULL, NULL);

i create a text box for input. 我创建一个文本框进行输入。 what i want to do is, get the input somehow from that text box, and from that start another c++ program with the command as the input, similar to what would be done on the command line. 我想要做的是,从该文本框中以某种方式获取输入,然后从该启动以命令作为输入的另一个c ++程序,类似于在命令行上执行的操作。 if this is not possible, how would i go about getting the text from the edit field and using it in code? 如果这不可能,我将如何从编辑字段中获取文本并在代码中使用它? and for other people like me who want to learn gui from scratch without any kind of builders(like visual studio), what would you suggest as a proper guide book? 对于像我这样的人,他们希望从头学习gui而无需任何类型的构建器(例如Visual Studio),您会建议什么作为适当的指南? or even web tutorials. 甚至是网络教程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM