We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using visual studio and I got this error. on the xutility file
xutility file
Exception thrown: write access violation. this was 0xAFE3D714.
I'm doing a "C" compatible DLL in C++. Here is the code:
#define gmx extern "C" __declspec(dllexport) using json = nlohmann::json; static json jsonDoc; gmx double read(char* path) { try { ifstream jsonFile(path); jsonFile >> jsonDoc; } catch (const std::exception& error) { cout << error.what() << endl; } return 0; } gmx string getJsonFile() { return jsonDoc.dump(); }
Then I implement it like this.
_read(file); string output = _getJsonFile(); cout << output.c_str();
windows 10 x86 Visual Studio 2017 (v141): print screen:
The text was updated successfully, but these errors were encountered:
I do apology for the inconvenience. I solve the issue was that I was calling the function as char* when I declared it string.
Sorry, something went wrong.
No branches or pull requests
I'm using visual studio and I got this error. on the
xutility file
I'm doing a "C" compatible DLL in C++. Here is the code:
Then I implement it like this.
_read(file); string output = _getJsonFile(); cout << output.c_str();
I don't know what I doing wrong. I hope someone can help me.
windows 10 x86 Visual Studio 2017 (v141):
print screen:
The text was updated successfully, but these errors were encountered: