Click here to Skip to main content
15,886,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Looking for a Edit box where i can set the font size. Pin
basementman28-Apr-03 5:18
basementman28-Apr-03 5:18 
GeneralThank you all! Pin
whofmans28-Apr-03 7:22
whofmans28-Apr-03 7:22 
GeneralCalling Visual C++ stuff from VB.NET Pin
Patwick28-Apr-03 2:33
Patwick28-Apr-03 2:33 
Questionhow to create a shortcut ? Pin
_crs_28-Apr-03 2:24
_crs_28-Apr-03 2:24 
AnswerRe: how to create a shortcut ? Pin
David Crow28-Apr-03 3:44
David Crow28-Apr-03 3:44 
GeneralRe: how to create a shortcut ? Pin
_crs_28-Apr-03 4:41
_crs_28-Apr-03 4:41 
GeneralActiveX help requiered Pin
andreshs128-Apr-03 2:00
andreshs128-Apr-03 2:00 
GeneralCan't use template function to do 2 similar things(display member,book) Pin
grscot28-Apr-03 2:00
grscot28-Apr-03 2:00 
Dear all,
I am using the following function to display the members of a memberlist.
I need also to display the books of a booklist. If I use the comments then there is no compilation problem, but I cant display the books, on the other hand if I do not use the comments there is a compilation problem because get_member() function does not accept class Member* argument, but only class Book* argument. How can I generalise the function to accept both arguments, and display both books and members using the same function?

template<class object="">
void List<object>::displayElement(char* type)
{
if (num_elements == 0)
cout<<"No "<<type<<" is="" found="" in="" the="" "<<type<<="" "array.\n";
="" else
="" for(int="" element="0;" element<this-="">num_elements; element++)
{
cout<<'\n';
//this->element_list[element]->display(association_list.get_member(element_list[element]));
}
}
Regards,
grscot
GeneralRe: Can't use template function to do 2 similar things(display member,book) Pin
valikac28-Apr-03 8:33
valikac28-Apr-03 8:33 
Generalpreventing repaint outside application Pin
yourbuddy7728-Apr-03 1:42
yourbuddy7728-Apr-03 1:42 
GeneralRe: preventing repaint outside application Pin
yourbuddy7728-Apr-03 1:57
yourbuddy7728-Apr-03 1:57 
GeneralRe: preventing repaint outside application Pin
Joel Lucsy28-Apr-03 3:03
Joel Lucsy28-Apr-03 3:03 
GeneralString resource as CFileDialog title Pin
-Dy28-Apr-03 1:35
-Dy28-Apr-03 1:35 
GeneralRe: String resource as CFileDialog title Pin
David Crow28-Apr-03 4:03
David Crow28-Apr-03 4:03 
GeneralSetDefaultPrinter in WinSpool.h Pin
Jaffer Mumtaz28-Apr-03 1:22
Jaffer Mumtaz28-Apr-03 1:22 
GeneralRe: SetDefaultPrinter in WinSpool.h Pin
Joel Lucsy28-Apr-03 3:05
Joel Lucsy28-Apr-03 3:05 
GeneralRe: SetDefaultPrinter in WinSpool.h (Joel) Pin
Jaffer Mumtaz28-Apr-03 3:48
Jaffer Mumtaz28-Apr-03 3:48 
GeneralRe: SetDefaultPrinter in WinSpool.h (Joel) Pin
jhwurmbach28-Apr-03 4:04
jhwurmbach28-Apr-03 4:04 
GeneralRe: SetDefaultPrinter in WinSpool.h (Joel) Pin
Joel Lucsy28-Apr-03 4:21
Joel Lucsy28-Apr-03 4:21 
GeneralRe: SetDefaultPrinter in WinSpool.h (Joel) Pin
Jaffer Mumtaz28-Apr-03 23:51
Jaffer Mumtaz28-Apr-03 23:51 
GeneralRe: SetDefaultPrinter in WinSpool.h (Joel) Pin
Joel Lucsy29-Apr-03 3:27
Joel Lucsy29-Apr-03 3:27 
GeneralWindows XP & Bluetooth Pin
gcaboi28-Apr-03 0:38
gcaboi28-Apr-03 0:38 
GeneralMacromedia Flash and MFC Pin
Cho Sijun28-Apr-03 0:09
Cho Sijun28-Apr-03 0:09 
GeneralRe: Macromedia Flash and MFC Pin
Florin Ochiana28-Apr-03 10:33
Florin Ochiana28-Apr-03 10:33 
GeneralDocument v/s dialog Pin
willy_23x27-Apr-03 23:56
willy_23x27-Apr-03 23:56 

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.