Click here to Skip to main content
15,894,180 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC - CAsyncSocket class Pin
liz312-Jan-10 19:03
liz312-Jan-10 19:03 
QuestionC++ CODE FOR VENDING MACHINE Pin
queenzz11-Jan-10 16:19
queenzz11-Jan-10 16:19 
AnswerRe: C++ CODE FOR VENDING MACHINE Pin
Richard MacCutchan12-Jan-10 0:45
mveRichard MacCutchan12-Jan-10 0:45 
QuestionRe: C++ CODE FOR VENDING MACHINE Pin
David Crow12-Jan-10 3:14
David Crow12-Jan-10 3:14 
QuestionDetecting whether a modal dialog has displayed Pin
Kenneth Ballard11-Jan-10 13:52
Kenneth Ballard11-Jan-10 13:52 
AnswerRe: Detecting whether a modal dialog has displayed Pin
KingsGambit11-Jan-10 19:02
KingsGambit11-Jan-10 19:02 
GeneralRe: Detecting whether a modal dialog has displayed Pin
Kenneth Ballard12-Jan-10 5:04
Kenneth Ballard12-Jan-10 5:04 
QuestionHelp on error Pin
siyuanfang11-Jan-10 6:52
siyuanfang11-Jan-10 6:52 
When I compiled a free-source code for a KLT point implementation (a feature point used widely in Computer vision) using VC with MFC support,

I got a compilation error "error C2632: 'float' followed by 'char' is illegal " for the line:
"float small,"

and error "C2062: type 'char' unexpected" for the line " if (det < small) return (int)(KLT_SMALL_DET);"

Seems the variable name "small" is illegal in VC 2005, I have tried "t_small" instead, then the problem is gone!!

That is really weird!!! Is "small" a reserved keyword in VC2005?.
I have never seen that kind of error message before!.


Following is the source code, the problematic line is in bold font:

static int _solveEquation(
float gxx, float gxy, float gyy,
float ex, float ey,
float small,
float *dx, float *dy)
{ float det = gxx*gyy - gxy*gxy;
if (det < small) return (int)(KLT_SMALL_DET);
*dx = (gyy*ex - gxy*ey)/det;
*dy = (gxx*ey - gxy*ex)/det;
return KLT_TRACKED;
}
AnswerRe: Help on error Pin
Nelek11-Jan-10 6:58
protectorNelek11-Jan-10 6:58 
QuestionRe: Help on error Pin
CPallini11-Jan-10 7:00
mveCPallini11-Jan-10 7:00 
AnswerRe: Help on error Pin
Nelek11-Jan-10 7:12
protectorNelek11-Jan-10 7:12 
GeneralRe: Help on error Pin
CPallini11-Jan-10 7:32
mveCPallini11-Jan-10 7:32 
JokeOT Pin
Nelek11-Jan-10 7:39
protectorNelek11-Jan-10 7:39 
GeneralRe: OT Pin
CPallini11-Jan-10 7:43
mveCPallini11-Jan-10 7:43 
GeneralRe: OT Pin
Cedric Moonen11-Jan-10 7:55
Cedric Moonen11-Jan-10 7:55 
GeneralRe: OT Pin
CPallini11-Jan-10 7:59
mveCPallini11-Jan-10 7:59 
AnswerRe: Help on error Pin
Richard MacCutchan11-Jan-10 8:44
mveRichard MacCutchan11-Jan-10 8:44 
JokeHey Richard Pin
CPallini11-Jan-10 8:53
mveCPallini11-Jan-10 8:53 
GeneralRe: Hey Richard Pin
Richard MacCutchan11-Jan-10 8:58
mveRichard MacCutchan11-Jan-10 8:58 
JokeRe: Hey Richard Pin
CPallini11-Jan-10 9:39
mveCPallini11-Jan-10 9:39 
GeneralRe: Hey Richard Pin
Richard MacCutchan11-Jan-10 11:35
mveRichard MacCutchan11-Jan-10 11:35 
Questionhow to write a function in a file at binary level (after compilation) Pin
Joseph Marzbani11-Jan-10 6:15
Joseph Marzbani11-Jan-10 6:15 
QuestionRe: how to write a function in a file at binary level (after compilation) Pin
CPallini11-Jan-10 6:36
mveCPallini11-Jan-10 6:36 
AnswerRe: how to write a function in a file at binary level (after compilation) Pin
Joseph Marzbani11-Jan-10 6:47
Joseph Marzbani11-Jan-10 6:47 
GeneralRe: how to write a function in a file at binary level (after compilation) Pin
CPallini11-Jan-10 6:52
mveCPallini11-Jan-10 6:52 

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.