BCB3 Pro, Windows XP, linker error


2005-04-14 12:33:37 PM
cppbuilder15
I get the following linker error when attempting to use the
GetComboBoxInfo function using WinXP and BCB3:
[LinkerError] Unresolved external
'GetComboBoxInfo(void*,tagCOMBOBOXINFO*)
__stdcall' referenced from
C:\UNIT1.OBJ.
In the header, I have declared:
typedef struct tagCOMBOBOXINFO {
DWORD cbSize;
RECT rcItem;
RECT rcButton;
DWORD stateButton;
HWND hwndCombo;
HWND hwndItem;
HWND hwndList;
} COMBOBOXINFO, *PCOMBOBOXINFO, *LPCOMBOBOXINFO;
WINUSERAPI BOOL WINAPI GetComboBoxInfo
(HWND hwndCombo,PCOMBOBOXINFO pcbi);
I implib'd user32.dll from the c:\windows\system32
directory and added the lib file to the project via the
Project | Add to Project... menu sequence.
1. What am I doing wrong?
2. Is it possible to #include the Win XP winuser.h file
without conflicts? If so, what is the correct way to do
so?
Kent