Click here to Skip to main content
15,897,371 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Generalvectors. Pin
WREY7-Oct-03 14:32
WREY7-Oct-03 14:32 
GeneralRe: vectors. Pin
valikac8-Oct-03 5:55
valikac8-Oct-03 5:55 
GeneralRe: vectors. Pin
ZoogieZork8-Oct-03 8:00
ZoogieZork8-Oct-03 8:00 
GeneralRe: vectors. Pin
George L. Jackson3-Nov-03 1:47
George L. Jackson3-Nov-03 1:47 
GeneralRe: vectors. Pin
WREY3-Nov-03 5:39
WREY3-Nov-03 5:39 
GeneralLinker error when trying to use CStringT Pin
IGx896-Oct-03 14:06
IGx896-Oct-03 14:06 
GeneralWTL "shared-source" news update Pin
Mike.NET6-Oct-03 10:29
Mike.NET6-Oct-03 10:29 
GeneralAtl Server - CBlobCache Pin
rbeckett6-Oct-03 7:55
rbeckett6-Oct-03 7:55 
I'm having difficulty using ATL Server's CBlobCache class. I'm trying to add an entry to the blob cache. The key is "v1" and the value is an int. The add method takes a *void for the actual data, so I figured I could push an int into it. Unfortunately, the mout int reads 6,500,000 . Is it a problem with my implementation of m_spBlobCache->Add or m_spBlobCache->GetData ?
HCACHEITEM hEntry;
// Get the IMemoryCache service from the ISAPI extension
if (FAILED(m_spServiceProvider->QueryService(__uuidof(IMemoryCache),
&m_spBlobCache)))
return HTTP_FAIL;
HRESULT hr = m_spBlobCache->LookupEntry("v1", &hEntry);
if (FAILED(hr) || !hEntry)
{
static const int s7 = 1;
int *pData = (int *)malloc(sizeof(int));
if (!pData)
return HTTP_FAIL;
*pData = s7;
CFileTime ft = CFileTime::GetCurrentTime() + CFileTime::Minute;
if(FAILED(m_spBlobCache->Add("v1", pData, (DWORD)sizeof(int), &ft,
m_hInstHandler, &hEntry, &g_MemoryCacheClient)))
{
m_spBlobCache->ReleaseEntry(hEntry);
return HTTP_FAIL;
}
}
if(FAILED(m_spBlobCache->GetData(hEntry, (void**)&mout, &dwSize)))
{
m_spBlobCache->ReleaseEntry(hEntry);
return HTTP_FAIL;
}
TIA
Ryan
GeneralRe: Atl Server - CBlobCache Pin
rbeckett6-Oct-03 8:54
rbeckett6-Oct-03 8:54 
GeneralATL header file... Pin
byblostas5-Oct-03 12:25
byblostas5-Oct-03 12:25 
GeneralRe: ATL header file... Pin
Michael Dunn7-Oct-03 16:19
sitebuilderMichael Dunn7-Oct-03 16:19 
GeneralAbout interface ISimpleFrameSite Pin
Foxray3-Oct-03 20:51
Foxray3-Oct-03 20:51 
GeneralDeskbands with HTML content based on URL Pin
riberollesb@fsb.fr3-Oct-03 6:03
riberollesb@fsb.fr3-Oct-03 6:03 
Generaladding a second interface to coclass Pin
rob agar2-Oct-03 22:08
rob agar2-Oct-03 22:08 
GeneralWTL download Pin
Gaz2-Oct-03 9:49
Gaz2-Oct-03 9:49 
GeneralRe: WTL download Pin
Michael Dunn2-Oct-03 10:53
sitebuilderMichael Dunn2-Oct-03 10:53 
GeneralCreating instances of COM objects inside the module Pin
jparsons2-Oct-03 7:12
jparsons2-Oct-03 7:12 
GeneralRe: Creating instances of COM objects inside the module Pin
Michael Dunn2-Oct-03 7:55
sitebuilderMichael Dunn2-Oct-03 7:55 
GeneralRe: Creating instances of COM objects inside the module Pin
jparsons2-Oct-03 9:37
jparsons2-Oct-03 9:37 
GeneralCompilation error C3702 "ATL is required for COM events" Pin
jparsons2-Oct-03 5:49
jparsons2-Oct-03 5:49 
GeneralRe: Compilation error C3702 "ATL is required for COM events" Pin
jparsons2-Oct-03 7:07
jparsons2-Oct-03 7:07 
GeneralWTL ListViewCtrl Pin
Michael P Butler2-Oct-03 2:26
Michael P Butler2-Oct-03 2:26 
Generalspeed Pin
raastad1-Oct-03 22:20
raastad1-Oct-03 22:20 
GeneralRe: speed Pin
jhwurmbach2-Oct-03 0:02
jhwurmbach2-Oct-03 0:02 
GeneralLine numbers in Edit Control Pin
Derick Cyril Thomas1-Oct-03 16:02
Derick Cyril Thomas1-Oct-03 16:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.