Click here to Skip to main content
15,906,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A very basic socket question Pin
Dave_17-Jul-02 4:11
Dave_17-Jul-02 4:11 
GeneralRe: A very basic socket question Pin
Bubba214617-Jul-02 7:20
Bubba214617-Jul-02 7:20 
GeneralRe: A very basic socket question Pin
Dave_17-Jul-02 7:37
Dave_17-Jul-02 7:37 
GeneralRe: A very basic socket question Pin
Bubba214617-Jul-02 7:58
Bubba214617-Jul-02 7:58 
GeneralRe: A very basic socket question Pin
Dave_17-Jul-02 8:11
Dave_17-Jul-02 8:11 
GeneralRe: A very basic socket question Pin
Bubba214617-Jul-02 8:27
Bubba214617-Jul-02 8:27 
GeneralRe: A very basic socket question Pin
Dave_17-Jul-02 8:29
Dave_17-Jul-02 8:29 
GeneralPassing a control id Pin
moobob17-Jul-02 3:18
moobob17-Jul-02 3:18 
I have some code which sets the item data on a list box depending on some data attributes. I have multiple list boxes in my application and always want to set the item data the same way. To do this I need to pass as a parameter the control id of the list box in question. That way I can do a listbox.SetItemData (fieldNum, 1); How do I specify the type of listbox in my code? Here is the prototype and code.

void DataImportDlg2::SetMapType(CListBox list,
LPCTSTR fieldName,
int fieldNum)
{
DbHelper::InputType inputType;
DbHelper dbHelper;

// Set the additional data flag which indicates whether
// the item is a value mapping type or not. 1 indicates it is,
// a 0 means no.
inputType = dbHelper.GetItemsInputType (fieldName);

if (inputType == DbHelper::A)
list.SetItemData (fieldNum, 1);
else
list.SetItemData (fieldNum, 0);
}

I make the call like this:
SetMapType (m_availFieldList, *iter, index);

which gives me a compile error 'cannot convert parameter 1 from 'class CListBox' to 'class CListBox'

Any ideas on what type to make the list parameter?

Thanks in advance,
Bob
GeneralRe: Passing a control id Pin
Joaquín M López Muñoz17-Jul-02 3:21
Joaquín M López Muñoz17-Jul-02 3:21 
GeneralRe: Passing a control id Pin
moobob17-Jul-02 3:31
moobob17-Jul-02 3:31 
Questiondbdao.h : what is the matter now? Pin
includeh1017-Jul-02 3:13
includeh1017-Jul-02 3:13 
AnswerRe: dbdao.h : what is the matter now? Pin
Michael P Butler17-Jul-02 3:36
Michael P Butler17-Jul-02 3:36 
GeneralRe: dbdao.h : what is the matter now? Pin
includeh1017-Jul-02 3:46
includeh1017-Jul-02 3:46 
GeneralMemory Managment Pin
c_sisbit17-Jul-02 3:12
c_sisbit17-Jul-02 3:12 
GeneralRe: Memory Managment Pin
Joaquín M López Muñoz17-Jul-02 3:18
Joaquín M López Muñoz17-Jul-02 3:18 
GeneralRe: Memory Managment Pin
includeh1017-Jul-02 3:21
includeh1017-Jul-02 3:21 
GeneralRe: Memory Managment Pin
c_sisbit17-Jul-02 3:41
c_sisbit17-Jul-02 3:41 
GeneralRe: Memory Managment Pin
Joaquín M López Muñoz17-Jul-02 3:46
Joaquín M López Muñoz17-Jul-02 3:46 
GeneralRe: Memory Managment Pin
c_sisbit17-Jul-02 3:47
c_sisbit17-Jul-02 3:47 
GeneralRe: Memory Managment Pin
Joaquín M López Muñoz17-Jul-02 3:50
Joaquín M López Muñoz17-Jul-02 3:50 
GeneralRe: Memory Managment Pin
c_sisbit17-Jul-02 3:59
c_sisbit17-Jul-02 3:59 
GeneralRe: Memory Managment Pin
includeh1017-Jul-02 4:17
includeh1017-Jul-02 4:17 
GeneralRe: Memory Managment Pin
Joaquín M López Muñoz17-Jul-02 5:00
Joaquín M López Muñoz17-Jul-02 5:00 
GeneralRe: Memory Managment Pin
cc_sisbit17-Jul-02 20:35
cc_sisbit17-Jul-02 20:35 
GeneralBooks For Sale! Pin
jamiehale17-Jul-02 3:01
jamiehale17-Jul-02 3:01 

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.