Original Post
Hi, I have a class in cpp code like this --- class page : IOleClientSite /*... several other COM interfaces */ { public : HWND hWnd; IWebBrowser2 *browser; /* Several other pointers to COM interfaces */ DWORD adviseCookie; thrust::uint uiHostInfoFlags; // Mark this one // --- IUnknown --- HRESULT STDMETHODCALLTYPE QueryInterface(const IID &riid, void **pp); ULONG STDMETHODCALLTYPE AddRef(void) {return S_OK;} /// .. many other methods page(); virtual ~page(); void navigate(const char *url); bool write(const char *code); /* Some other methods. */ }; --- which is registered to script as this --- ui::page::Register(interpreter, "page"); interpreter->RegisterObjectProperty("page", "uint pagestyle", offsetof(ui::page, ui::page::uiHostInfoFlags)); interpreter->RegisterObjectMethod("page", "void navigate(string ∈)", asFUNCTION(uiPageNavigate), asCALL_CDECL_OBJFIRST); interpreter->RegisterObjectMethod("page", "bool write(string ∈)", asFUNCTION(uiPageWrite), asCALL_CDECL_OBJFIRST); --- The property uiHostInfoFlags or pagestyle as in the script can be reached read only. I can read it's value, but writes silently disappears. It is a small project which i'm just switched from 2.4.1e to 2.7.0 No other classes on my other projects reproduced this problem. Did I missed something somewhere?