Click here to Skip to main content
16,007,126 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAuto Enable Menu for dialog. Pin
includeh1027-Jan-06 4:02
includeh1027-Jan-06 4:02 
AnswerRe: Auto Enable Menu for dialog. Pin
Maximilien27-Jan-06 4:56
Maximilien27-Jan-06 4:56 
QuestionYour comments for monitoring users Pin
includeh1027-Jan-06 4:00
includeh1027-Jan-06 4:00 
AnswerRe: Your comments for monitoring users Pin
David Crow27-Jan-06 4:36
David Crow27-Jan-06 4:36 
AnswerRe: Your comments for monitoring users Pin
Maximilien27-Jan-06 7:12
Maximilien27-Jan-06 7:12 
QuestionProblem in moving the hole in a puzzle game Pin
eivanlo27-Jan-06 3:53
eivanlo27-Jan-06 3:53 
AnswerRe: Problem in moving the hole in a puzzle game Pin
David Crow27-Jan-06 4:34
David Crow27-Jan-06 4:34 
QuestionCompiles fine, then doesn't... Pin
the_augy27-Jan-06 2:41
the_augy27-Jan-06 2:41 
Alright, I wrote a wrapper class for expat (the XML parser). I wrote it in a console application project, it compiles fine, and still does. But then I had to demo the technology that uses the wrapper class, and for that I went with an MFC application. But when I try to compile in my wrapper class, the expat .c files give me hundreds of errors. here's a chunk of it to look at:

c:\program files\microsoft visual studio\myprojects\testrunfortestbed\xmltok_impl.c(91) : error C2143: syntax error : missing ')' before '*'
c:\program files\microsoft visual studio\myprojects\testrunfortestbed\xmltok_impl.c(91) : error C2143: syntax error : missing '{' before '*'
c:\program files\microsoft visual studio\myprojects\testrunfortestbed\xmltok_impl.c(91) : error C2059: syntax error : 'type'
c:\program files\microsoft visual studio\myprojects\testrunfortestbed\xmltok_impl.c(92) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\myprojects\testrunfortestbed\xmltok_impl.c(129) : error C2143: syntax error : missing ')' before '*'

And here's some code so you can have a little context for the errors:
///////////// LINE 89 HERE ////////////////////////////<br />
static<br />
int PREFIX(scanComment)(const ENCODING *enc, const char *ptr, const char *end,<br />
			const char **nextTokPtr)<br />
{<br />
  if (ptr != end) {<br />
    if (!CHAR_MATCHES(enc, ptr, ASCII_MINUS)) {<br />
      *nextTokPtr = ptr;<br />
      return XML_TOK_INVALID;<br />
    }<br />
    ptr += MINBPC(enc);<br />
    while (ptr != end) {<br />
      switch (BYTE_TYPE(enc, ptr)) {<br />
      INVALID_CASES(ptr, nextTokPtr)<br />
      case BT_MINUS:<br />
	if ((ptr += MINBPC(enc)) == end)<br />
	  return XML_TOK_PARTIAL;<br />
	if (CHAR_MATCHES(enc, ptr, ASCII_MINUS)) {<br />
	  if ((ptr += MINBPC(enc)) == end)<br />
	    return XML_TOK_PARTIAL;<br />
	  if (!CHAR_MATCHES(enc, ptr, ASCII_GT)) {<br />
	    *nextTokPtr = ptr;<br />
	    return XML_TOK_INVALID;<br />
	  }<br />
	  *nextTokPtr = ptr + MINBPC(enc);<br />
	  return XML_TOK_COMMENT;<br />
	}<br />
	break;<br />
      default:<br />
	ptr += MINBPC(enc);<br />
	break;<br />
      }<br />
    }<br />
  }<br />
  return XML_TOK_PARTIAL;<br />
}


I'm pretty stumped. Anybody know what the problem is?
AnswerRe: Compiles fine, then doesn't... Pin
Rage27-Jan-06 2:59
professionalRage27-Jan-06 2:59 
GeneralRe: Compiles fine, then doesn't... Pin
the_augy29-Jan-06 23:54
the_augy29-Jan-06 23:54 
QuestionRe: Compiles fine, then doesn't... Pin
David Crow30-Jan-06 2:52
David Crow30-Jan-06 2:52 
QuestionDrag and Drop Pin
Anil_vvs27-Jan-06 1:19
Anil_vvs27-Jan-06 1:19 
QuestionTooltip popup on pointing to text. As a plugin in VS .NET Pin
AlnKG27-Jan-06 0:58
AlnKG27-Jan-06 0:58 
AnswerRe: Tooltip popup on pointing to text. As a plugin in VS .NET Pin
Aravind Badrinath Krishnan27-Jan-06 23:28
Aravind Badrinath Krishnan27-Jan-06 23:28 
QuestionShow or Hide image Pin
waxie27-Jan-06 0:42
waxie27-Jan-06 0:42 
AnswerRe: Show or Hide image Pin
Owner drawn27-Jan-06 0:47
Owner drawn27-Jan-06 0:47 
AnswerRe: Show or Hide image Pin
David Crow27-Jan-06 3:00
David Crow27-Jan-06 3:00 
GeneralRe: Show or Hide image Pin
waxie29-Jan-06 15:49
waxie29-Jan-06 15:49 
Questiontough nut Pin
Great A'Tuin26-Jan-06 22:49
Great A'Tuin26-Jan-06 22:49 
AnswerRe: tough nut Pin
PJ Arends26-Jan-06 23:41
professionalPJ Arends26-Jan-06 23:41 
GeneralRe: tough nut Pin
Great A'Tuin27-Jan-06 0:05
Great A'Tuin27-Jan-06 0:05 
GeneralRe: tough nut Pin
PJ Arends27-Jan-06 0:29
professionalPJ Arends27-Jan-06 0:29 
AnswerRe: easy nut Pin
Owner drawn26-Jan-06 23:57
Owner drawn26-Jan-06 23:57 
GeneralRe: easy nut Pin
Great A'Tuin27-Jan-06 0:11
Great A'Tuin27-Jan-06 0:11 
GeneralRe: easy nut Pin
Owner drawn27-Jan-06 0:12
Owner drawn27-Jan-06 0:12 

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.