Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/127.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++动态库中? 我是C++编程新手,基本上我是VB.net程序员。我需要把组合框放在我的C++动态库中。我的C++动态库将调用我的VB.NET函数。我想在C++动态库加载中显示组合框弹出并选择item .< /p>_C++ - Fatal编程技术网

如何将组合框放在我的C++动态库中? 我是C++编程新手,基本上我是VB.net程序员。我需要把组合框放在我的C++动态库中。我的C++动态库将调用我的VB.NET函数。我想在C++动态库加载中显示组合框弹出并选择item .< /p>

如何将组合框放在我的C++动态库中? 我是C++编程新手,基本上我是VB.net程序员。我需要把组合框放在我的C++动态库中。我的C++动态库将调用我的VB.NET函数。我想在C++动态库加载中显示组合框弹出并选择item .< /p>,c++,C++,我曾目不转睛地看了看,并试图从参考资料中找到以下代码 // Create the Combobox // // Uses the CreateWindow function to create a child window of // the application window. The WC_COMBOBOX window style specifies // that it is a combobox. int xpos = 100; // Hori

我曾目不转睛地看了看,并试图从参考资料中找到以下代码

    // Create the Combobox
//
// Uses the CreateWindow function to create a child window of 
// the application window. The WC_COMBOBOX window style specifies  
// that it is a combobox.

 int xpos = 100;            // Horizontal position of the window.
 int ypos = 100;            // Vertical position of the window.
 int nwidth = 200;          // Width of the window
 int nheight = 200;         // Height of the window
 HWND hwndParent =  m_hwnd; // Handle to the parent window

 HWND hWndComboBox = CreateWindow(WC_COMBOBOX, TEXT(""), 
     CBS_DROPDOWN | CBS_HASSTRINGS | WS_CHILD | WS_OVERLAPPED | WS_VISIBLE,
     xpos, ypos, nwidth, nheight, hwndParent, NULL, HINST_THISCOMPONENT,
     NULL);
但我发现了以下错误:

error C2065: 'm_hwnd' : undeclared identifier
error C2065: 'HINST_THISCOMPONENT' : undeclared identifier
你的帮助真的很值得赞赏


提前谢谢

查看链接页面上的完整示例,我们发现您复制和粘贴的代码段是更大类的一部分。这个类包括一些东西,比如m_hwnd成员变量。完整的示例还包括HINST_THISCOMPONENT的宏定义

如果我使用的术语类、成员变量、宏对您来说没有意义,我建议您看看。这是一个C++ C++大师在StActExcel中收集的非常好的学习C++书籍的列表。 对于Win32 GUI编程,我推荐Charles Petzold的编程窗口,第五版

尝试学习C++或Win32 GUI编程一次堆栈溢出问题将是痛苦的。

尝试学习C++或Win32 GUI编程一次堆栈溢出问题将是痛苦的。1的准确性。可能的副本