bool Get(const CString& szURL,CString& szHTML)
{
...
}
pEngine->RegisterObjectMethod("Http","bool get(const string &in,string &out)", asMETHOD(CHttp,Get),asCALL_THISCALL);
🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Problem with function parameters
I register a string class based on ATL's CString (pretty standard, registered as CDA). In addition, I have a function to download a page from the net:
I can't use szHTML in my code since it's always null. I can declare the function as &inout which should work, but I wonder what I'm doing wrong in my code.
Gilad
What version of AngelScript are you using? I seem to remember fixing a problem similar to this before.
I'll look into it anyway.
I'll look into it anyway.
I haven't been able to reproduce this problem.
Are you using any special settings, such AS_ALLOW_UNSAFE_REFERENCES, or AS_MAX_PORTABILITY?
Are you using any special settings, such AS_ALLOW_UNSAFE_REFERENCES, or AS_MAX_PORTABILITY?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement