Click here to Skip to main content
15,905,148 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCHM files: open folder? Pin
Dominik Reichl24-Oct-04 2:07
Dominik Reichl24-Oct-04 2:07 
General AfxMessageBox("Simple message box."); Pin
Programmer_Chris23-Oct-04 22:36
Programmer_Chris23-Oct-04 22:36 
GeneralRe: AfxMessageBox("Simple message box."); Pin
Neville Franks24-Oct-04 0:12
Neville Franks24-Oct-04 0:12 
GeneralRe: AfxMessageBox("Simple message box."); Pin
Programmer_Chris24-Oct-04 1:00
Programmer_Chris24-Oct-04 1:00 
GeneralRe: AfxMessageBox("Simple message box."); Pin
Neville Franks24-Oct-04 1:55
Neville Franks24-Oct-04 1:55 
GeneralRe Pin
yanping wang24-Oct-04 2:49
yanping wang24-Oct-04 2:49 
GeneralRe: Re Pin
Programmer_Chris24-Oct-04 3:23
Programmer_Chris24-Oct-04 3:23 
GeneralTough time with template syntax Pin
LynnJ23-Oct-04 19:04
LynnJ23-Oct-04 19:04 
Hello, I'm pretty new to programming, and while I can figure out in my head what I want the function to do, the syntax is a bit tricky. I want to create a template for a search function that looks for an ID in one of three containers. The three containers are pointers to either standard employees, security employees, or support employees.

If I were to create each search individually, I'd do it like this(nevermind crappy names etc)

prototype for employee:

int searchForIDNum(Employee* [], const int empCount, const string idToFind);
and when I make the call:

int employeeIndex = searchForIDNum(employeeContainer, empCount, idToFind);

How would I convert this to a template that I could use for all three classes? In particular, I'm having a tough time with the first parameter - the employeeContainer in both the prototype and the call. Any help is appreciated MUCH!!! Thanks!
GeneralRe: Tough time with template syntax Pin
Bob Stanneveld24-Oct-04 2:19
Bob Stanneveld24-Oct-04 2:19 
GeneralRe: Tough time with template syntax Pin
Andrew Walker24-Oct-04 4:34
Andrew Walker24-Oct-04 4:34 
GeneralRe: Tough time with template syntax Pin
Kevin McFarlane24-Oct-04 5:12
Kevin McFarlane24-Oct-04 5:12 
GeneralRe: Tough time with template syntax Pin
Kevin McFarlane24-Oct-04 5:10
Kevin McFarlane24-Oct-04 5:10 
QuestionUsing Flash Animations? Pin
dSolariuM23-Oct-04 18:12
dSolariuM23-Oct-04 18:12 
AnswerRe: Using Flash Animations? Pin
jan larsen26-Oct-04 4:02
jan larsen26-Oct-04 4:02 
GeneralASTL in visual C++ Pin
xmasglee23-Oct-04 17:52
xmasglee23-Oct-04 17:52 
Generaladding templates into visual C++ Pin
xmasglee23-Oct-04 17:51
xmasglee23-Oct-04 17:51 
GeneralRe: adding templates into visual C++ Pin
Bob Stanneveld24-Oct-04 2:27
Bob Stanneveld24-Oct-04 2:27 
General.Net Pro .VS. VC++ 6. Pin
thompsons23-Oct-04 14:13
thompsons23-Oct-04 14:13 
GeneralRe: .Net Pro .VS. VC++ 6. Pin
SuperTank23-Oct-04 14:35
SuperTank23-Oct-04 14:35 
GeneralRe: .Net Pro .VS. VC++ 6. Pin
burrifro7923-Oct-04 15:01
burrifro7923-Oct-04 15:01 
QuestionHow do I import a class? Pin
SuperTank23-Oct-04 13:30
SuperTank23-Oct-04 13:30 
AnswerRe: How do I import a class? Pin
ThatsAlok24-Oct-04 22:41
ThatsAlok24-Oct-04 22:41 
GeneralRe: Linking library Pin
BlackDice23-Oct-04 10:26
BlackDice23-Oct-04 10:26 
Generalconsole app closes Pin
jerrodab23-Oct-04 9:52
jerrodab23-Oct-04 9:52 
GeneralRe: console app closes Pin
SuperTank23-Oct-04 10:01
SuperTank23-Oct-04 10: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.