Menu

#2 Access violation in example

v1.0_(example)
open
nobody
5
2006-05-28
2006-05-28
lydia2006
No

I built CliPP with Visual Studio 8.0 and tried the
example from the tutorial:

1 javascript_parser parser;
2 context* c=parser.get_context();
3 valueP res = c->global()["Number"](86);
4 valueP hex = res["toString"](16);
5 const char* text = unwrap<const char*>(hex)();

When executing, I get an access violation in line 3
trying to execute get_context() in
operator(BOOST_PP_ENUM_BINARY_PARAMS(N,A,const& a))
from clipp_ptr.hpp.
In the call of scope::lookup shortly before, the given
identifier is only “er” (should be “Number”???).
Can anybody help?

BTW, can I call each Javascript-function in that way? I
actually need to call the “escape”-function.

Many thanks in advance,
Lydia.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.