• Advertisement
Sign in to follow this  

Problem with function parameters

This topic is 4177 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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:
bool Get(const CString& szURL,CString& szHTML)
{
...
}

pEngine->RegisterObjectMethod("Http","bool get(const string &in,string &out)", asMETHOD(CHttp,Get),asCALL_THISCALL);

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

Share this post


Link to post
Share on other sites
Advertisement
What version of AngelScript are you using? I seem to remember fixing a problem similar to this before.

I'll look into it anyway.

Share this post


Link to post
Share on other sites
I haven't been able to reproduce this problem.

Are you using any special settings, such AS_ALLOW_UNSAFE_REFERENCES, or AS_MAX_PORTABILITY?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement