Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDiscuss and post your articles Pin
mahesh3-Jul-00 4:45
mahesh3-Jul-00 4:45 
GeneralDocument Template Pin
Greg Iams3-Jul-00 3:50
sussGreg Iams3-Jul-00 3:50 
GeneralHandle of edit box in IE COM Pin
Ryan Park3-Jul-00 0:04
Ryan Park3-Jul-00 0:04 
Question"ODBC does not support dynasets"????? Pin
hassan2-Jul-00 23:51
hassan2-Jul-00 23:51 
AnswerCursors ?!?! Pin
Chris S.3-Jul-00 6:58
Chris S.3-Jul-00 6:58 
GeneralNeed source for WSAAsyncGetHostByAddr() Pin
Member 57797162-Jul-00 21:25
Member 57797162-Jul-00 21:25 
GeneralRe: Need source for WSAAsyncGetHostByAddr() Pin
Remus Lazar5-Jul-00 3:25
Remus Lazar5-Jul-00 3:25 
GeneralATL CImageList Pin
alainserge2-Jul-00 19:54
alainserge2-Jul-00 19:54 
Hello,

I'm using the CImageList ATL helper classes defined in the "ATLControls.h" file. When I try to build my project
I have link error.

here is the code where I'm using the CImageList object:


/////////////////////////////////////////////////////////////////////////////
//
LRESULT CParametersDlg::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
USES_CONVERSION;

//Initialize the editText name control.
CWindow wndName(GetDlgItem(IDC_ELEMENT_NAME));
wndName.SetWindowText(OLE2T(m_controlName.m_str));

//Initialize the comboxe color control
RECT rect= { 90, 130, 280, 210 };
m_comboBoxEx.Create(this->m_hWnd, rect, NULL, WS_CHILD | WS_VISIBLE | WS_BORDER |
WS_TABSTOP | WS_VSCROLL | CBS_DROPDOWNLIST);
m_comboBoxEx.SetExtendedUI();

COMBOBOXEXITEM cbei;
cbei.mask = CBEIF_TEXT | CBEIF_INDENT | CBEIF_IMAGE | CBEIF_SELECTEDIMAGE;

int sizeOfItem = sizeof( Gobal_ItemInfoArray ) / sizeof( Gobal_ItemInfoArray[0] );
for( int index = 0; index < sizeOfItem; index++ )
{
CComboBoxExColor& comboInfo = Gobal_ItemInfoArray[index];

cbei.iItem = index;
cbei.pszText = comboInfo.m_przText;
cbei.cchTextMax = sizeof(comboInfo.m_przText);
cbei.iImage = comboInfo.m_iImage;
cbei.iSelectedImage = comboInfo.m_iSelected;
cbei.iIndent = comboInfo.m_iIdent;

m_comboBoxEx.InsertItem(&cbei);
}
CImageList imageList;
imageList.Create( IDB_ORUS_COLOR_BITMAP, 16, 1, ILC_COLOR);
m_comboBoxEx.SetImageList( imageList.m_hImageList );

return 1; // Let the system set the focus
}

/////////////////////////////////////////////////////////////////////



hereis the link error message that I received:


Linking...
Creating library Debug/OrusControlsServer.lib and object Debug/OrusControlsServer.exp
ParametersDlg.obj : error LNK2001: unresolved external symbol __imp__ImageList_LoadImageA@28
Debug/OrusControlsServer.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

/////////////////////////////////////////////////////////////////////

As you can see I'm using an ATL CComboBoxEx object and there is no problem with that. Do anyone have any
idea of what going one.

Thanks for your help, Alain-Serge.
GeneralRe: ATL CImageList Pin
Mike Dunn2-Jul-00 21:55
Mike Dunn2-Jul-00 21:55 
Question'CDateTimeCtrl' missing storage-class or type specifiers???? Pin
danielle2-Jul-00 9:48
danielle2-Jul-00 9:48 
AnswerRe: 'CDateTimeCtrl' missing storage-class or type specifiers???? Pin
Mike Dunn2-Jul-00 10:25
Mike Dunn2-Jul-00 10:25 
AnswerRe: 'CDateTimeCtrl' missing storage-class or type specifiers???? Pin
Blake Miller2-Jul-00 10:27
Blake Miller2-Jul-00 10:27 
GeneralGetting top window... Pin
Member 37471-Jul-00 11:56
Member 37471-Jul-00 11:56 
QuestionCMap restricted use? Pin
Nuno Tavares1-Jul-00 8:01
Nuno Tavares1-Jul-00 8:01 
AnswerRe: CMap restricted use? Pin
Sam Hobbs2-Jul-00 21:17
Sam Hobbs2-Jul-00 21:17 
AnswerRe: CMap restricted use? Pin
Sam Hobbs2-Jul-00 21:31
Sam Hobbs2-Jul-00 21:31 
GeneralRe: CMap restricted use? Pin
Nuno Tavares3-Jul-00 0:56
Nuno Tavares3-Jul-00 0:56 
GeneralRe: CMap restricted use? Pin
Blake Miller3-Jul-00 7:01
Blake Miller3-Jul-00 7:01 
GeneralRe: CMap restricted use? Pin
Sam Hobbs3-Jul-00 8:17
Sam Hobbs3-Jul-00 8:17 
GeneralRe: CMap restricted use? Pin
Nuno Tavares9-Jul-00 5:41
Nuno Tavares9-Jul-00 5:41 
GeneralCool Menu Bar Pin
Member 39871-Jul-00 7:40
Member 39871-Jul-00 7:40 
GeneralRe: Cool Menu Bar Pin
Erich2-Jul-00 9:50
Erich2-Jul-00 9:50 
GeneralPrinting Dialog Box Pin
MFCDude1-Jul-00 4:09
sussMFCDude1-Jul-00 4:09 
GeneralRe: Printing Dialog Box Pin
Jeremy Davis2-Jul-00 22:23
Jeremy Davis2-Jul-00 22:23 
GeneralDialog in ATL object Pin
Magesh K.1-Jul-00 3:30
sussMagesh K.1-Jul-00 3:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.