XPCE Prolog command causing error in VS2008 C++
Upon loading into a C++ program a Prolog program that contains the command 'send' (xpce graphics), I get error messages of type:
Here is an example command that causes the errors:
Syntax Error: Operator Expected.
I used to get the same errors when I used the plld.exe utility for interfacing my C++ and Prolog programs. At the time, I thought the problem was that plld was for some reason incompatible with xpce graphics.
send( Dialog, append, button(continue, message(@prolog, clear_my_blackboard)) ),
But now that I consult (load) my Prolog source files into my C++ files using:
I still get these error messages. I could comment out the lines that contain xpce-specific commands, but I'd rather know what the problem is and how I can circumnavigate it. So, I would appreciate any help.
PlCall( "consult('myPrologFile.pl')" );