I am new to C++ programming, Basically i am VB.net programmer.. i need to put combo Box in my C++ dynamic library. my C++ dynamic library will call my VB.Net function. i want to show combo box popup on C++ dynamic library load and select item.
I have goggled and tried following code from MSDN Reference
// 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);
But i am getting following errors:
error C2065: 'm_hwnd' : undeclared identifier
error C2065: 'HINST_THISCOMPONENT' : undeclared identifier
Your help will be really appreciable.
Thanks in Advance!