使用内部函数,直接通过网页访问地址
使用内部函数,直接通过网页访问地址
void Utilities_InternalFunctionCast::setWebAppValue(tag_t webAppTag, NXString inputWebValue)
{
HMODULE uifw = LoadLibrary(INTERNAL_UIFWLIB);
HMODULE syss = LoadLibrary(INTERNAL_SYSSLIB);
typedef void* (*TagToPtr_fp_t)(tag_t);
typedef void(*SetValue_fp_t)(void*,char* const&);
TagToPtr_fp_t TagToPtr = NULL;
SetValue_fp_t SetValue = NULL;
char* ptrName = FUNCTIONNAME_TAG2POINTER;
char* webValue= FUNCTIONNAME_SETWEBAPPVALUE;
TagToPtr = (TagToPtr_fp_t)GetProcAddress(syss, ptrName);
SetValue = (SetValue_fp_t)GetProcAddress(uifw, webValue);
if (TagToPtr != NULL && SetValue != NULL)
{
SetValue(TagToPtr(webAppTag), (char*)inputWebValue.GetText());
}
FreeLibrary(uifw);
FreeLibrary(syss);
}
页:
[1]