diff --git a/Charcoal/Charcoal/Charcoal.cpp b/Charcoal/Charcoal/Charcoal.cpp index e2f75bf..2260084 100644 --- a/Charcoal/Charcoal/Charcoal.cpp +++ b/Charcoal/Charcoal/Charcoal.cpp @@ -82,7 +82,7 @@ JSValue Charcoal::printAllBooks(const JSObject& thisObject, const JSArgs& args) MessageBoxA(NULL, bookList.c_str(), "Book List", MB_OK); //this confirms there is an actual booklist. - //convert the book list string to a JavaScript string + //convert the book list string to a JavaScript string, but does not work. JSStringRef jsBookList = JSStringCreateWithUTF8CString(bookList.c_str()); @@ -90,12 +90,12 @@ JSValue Charcoal::printAllBooks(const JSObject& thisObject, const JSArgs& args) JSStringRelease(jsBookList); - //return the JSValue object + //return the JSValue object, I tried with JSString and the issue persisted. return jsValue; } -void Charcoal::grayscaleName(const JSObject& thisObject, const JSArgs& args) { //at the moment just gets metadata, you will put your grayscale hooks here. +void Charcoal::grayscaleName(const JSObject& thisObject, const JSArgs& args) { //at the moment just gets metadata, Thomas will puts grayscale hooks here. //std::string added = ebooks.getStringData(); //MessageBoxA(NULL, added.c_str(), "Book Data", MB_OK); }