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

C / C++ / MFC

 
GeneralRe: char pointer question Pin
David Crow10-Oct-07 3:16
David Crow10-Oct-07 3:16 
GeneralRe: char pointer question Pin
Mark Salsbery10-Oct-07 5:42
Mark Salsbery10-Oct-07 5:42 
GeneralRe: char pointer question Pin
Cedric Moonen10-Oct-07 7:05
Cedric Moonen10-Oct-07 7:05 
GeneralRe: char pointer question Pin
Mark Salsbery10-Oct-07 7:06
Mark Salsbery10-Oct-07 7:06 
AnswerRe: char pointer question Pin
Yadrif10-Oct-07 3:17
Yadrif10-Oct-07 3:17 
GeneralRe: char pointer question Pin
DQNOK10-Oct-07 5:48
professionalDQNOK10-Oct-07 5:48 
GeneralRe: char pointer question Pin
Robert Surtees10-Oct-07 18:45
Robert Surtees10-Oct-07 18:45 
QuestionDificulty ifintegrating an old C++ code into Visual C++ Pin
taintransit10-Oct-07 2:40
taintransit10-Oct-07 2:40 
I wrote a C++ code for analyzing texts few years ago and it works perfectly. I am now trying to make it a windows-based application by integrating it into Visual C++ using visual studio. This has been an ache!

I first got
fatal error C1010: Unexpected end of file while looking for precompiled header directive.
It was not too difficult to correct this as there are many similar experiences recorded in various discussion groups on the Internet.
However, when I added #include "stdafx.h" as directed in various responses to the c1010 error on the Internet, I got the following errors
error C2095: syntax error: 'function-style cast'
error C2226: syntax error: unexpected type 'T'
error C2095: syntax error: ')'
and a number of other similar errors.

All these were generated by a code line 1 below:
1 template <class t=""> T max(T x, T,y)
2 {
3 return (x > y) ? x : y;
4 }

any ideas on what could be wrong?

taintransit
AnswerRe: Dificulty ifintegrating an old C++ code into Visual C++ Pin
Cedric Moonen10-Oct-07 2:50
Cedric Moonen10-Oct-07 2:50 
GeneralRe: Dificulty ifintegrating an old C++ code into Visual C++ [OT] Pin
David Crow10-Oct-07 3:11
David Crow10-Oct-07 3:11 
GeneralRe: Dificulty ifintegrating an old C++ code into Visual C++ [OT] Pin
Cedric Moonen10-Oct-07 3:14
Cedric Moonen10-Oct-07 3:14 
AnswerRe: Dificulty ifintegrating an old C++ code into Visual C++ Pin
James R. Twine10-Oct-07 2:51
James R. Twine10-Oct-07 2:51 
GeneralRe: Dificulty ifintegrating an old C++ code into Visual C++ Pin
taintransit10-Oct-07 4:56
taintransit10-Oct-07 4:56 
AnswerRe: Dificulty ifintegrating an old C++ code into Visual C++ Pin
David Crow10-Oct-07 3:15
David Crow10-Oct-07 3:15 
AnswerRe: Dificulty ifintegrating an old C++ code into Visual C++ Pin
jhwurmbach10-Oct-07 3:18
jhwurmbach10-Oct-07 3:18 
GeneralRe: Dificulty ifintegrating an old C++ code into Visual C++ Pin
taintransit10-Oct-07 5:06
taintransit10-Oct-07 5:06 
QuestionAdding an Extra control on Title bar Pin
s196675m10-Oct-07 2:18
s196675m10-Oct-07 2:18 
AnswerRe: Adding an Extra control on Title bar Pin
Nishad S10-Oct-07 2:40
Nishad S10-Oct-07 2:40 
Questionoutlook installed Pin
john563210-Oct-07 2:18
john563210-Oct-07 2:18 
AnswerRe: outlook installed Pin
chandu00410-Oct-07 2:54
chandu00410-Oct-07 2:54 
AnswerRe: outlook installed Pin
David Crow10-Oct-07 3:21
David Crow10-Oct-07 3:21 
QuestionHow to find function during debugging? Pin
Atul2310-Oct-07 2:09
Atul2310-Oct-07 2:09 
AnswerRe: How to find function during debugging? Pin
jhwurmbach10-Oct-07 2:38
jhwurmbach10-Oct-07 2:38 
GeneralRe: How to find function during debugging? Pin
Atul2310-Oct-07 2:43
Atul2310-Oct-07 2:43 
GeneralRe: How to find function during debugging? Pin
Cedric Moonen10-Oct-07 2:47
Cedric Moonen10-Oct-07 2:47 

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.