أين يحدد SetoanoCache؟
-
23-08-2019 - |
سؤال
يحاول أن تعطيل BSTR التخزين المؤقت:
SetOaNoCache();
VC ++ مترجم بناء الناتج:
'SetOaNoCache': identifier not found
لا تريد استخدامها:
- oanocache = 1.
سؤال:
- أين هو setoanoCache. معرف - الملف الاساسي؟
المحلول
لم يتم تعريفه في ملف رأس، إنه في Oleaut32.dll. يمكنك الاتصال به مثل هذا:
typedef int (*SETOANOCACHE)(void);
باطل تعطيلها () {hinstance hlib = loadlibrary ("oleaut32.dll")؛ إذا (hlib! = null) {setoanocache setoanocache = (setoanocache) getprocaddress (hlib، setoanocache ")؛ إذا (setoanocache! = null) setoanocache ()؛ freelibrary (hlib)؛ }}
نصائح أخرى
ليست كذلك. من مكتبة API Win32 التي تم شحنها باستخدام C ++ Builder:
Requirements
Windows XP: Requires Windows XP Service Pack 2 or later.
Windows 95/98: Not supported.
Header: Not supplied. Declare prototype as shown.
Library: Use oleaut32.lib.
النموذج الأولي كما هو موضح:
inline void TurnOffCache ()
{
// Function prototype.
extern "C" SetOaNoCache();
// Turn off BSTR caching.
SetOaNoCache();
}
لا تنتمي إلى StackOverflow