views:

241

answers:

2

Attempting to disable BSTR caching:

SetOaNoCache();

VC++ compiler build output:

  • 'SetOaNoCache': identifier not found

Don't want to use:

  • OANOCACHE=1

Question:

+1  A: 
Patrick Daryll Glandien
+1: @sikx - thanks dude! I'll try it out :). Where can I find out more about this? How did you know it was in OLEAUT32.dll?
Aaron
2 minutes with google: http://www.tech-archive.net/Archive/VC/microsoft.public.vc.atl/2005-03/0184.html
Patrick Daryll Glandien
+1  A: 

It's not. From the Win32 API library shipped with 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.

The prototype as shown:

inline void TurnOffCache ()
{
// Function prototype.
extern "C" SetOaNoCache(); 
// Turn off BSTR caching.
SetOaNoCache();
}
Ken White
Thanks for the info Ken
Aaron
No problem. sikx obviously types faster than I can search, copy and paste. <g>
Ken White