Showing posts with label msdn. Show all posts
Showing posts with label msdn. Show all posts

Saturday, February 25, 2012

CManualAccessor::CreateAccessor()

Hi folks,
MSDN states the CreateAccessor method of class CManualAccessor as follows:
HRESULT CreateAccessor(
int nBindEntries,
void* pBuffer,
DBLENGTH nBufferSize
)
Does anybody know under which circumstances "pBuffer" is used (i. e.
filled)?
Whatever I try, this buffer stays empty. I can pass any kind of variable
(except NULL pointer address), all variables bound later using
"AddBindEntry()" are filled correctly... So - what's this buffer for?!?
Kind regards
ThomasTry the microsoft.public.data.oledb newsgroup.
"Thomas Hein" <thomas.hein@.%nospam%inform-ac.com> wrote in message
news:OYGjvKMAGHA.3928@.tk2msftngp13.phx.gbl...
> Hi folks,
> MSDN states the CreateAccessor method of class CManualAccessor as follows:
> HRESULT CreateAccessor(
> int nBindEntries,
> void* pBuffer,
> DBLENGTH nBufferSize
> )
> Does anybody know under which circumstances "pBuffer" is used (i. e.
> filled)?
> Whatever I try, this buffer stays empty. I can pass any kind of variable
> (except NULL pointer address), all variables bound later using
> "AddBindEntry()" are filled correctly... So - what's this buffer for?!?
> Kind regards
> Thomas
>

Friday, February 10, 2012

ClusterDistance value

Can somebody please define the result of the ClusterDistance() function for me. BOL and MSDN are vague about what the output means and I am getting some cases that have a value of zero and sometimes there are more than one per cluster.

Thanks in advance,

Dan Meyers

I believe the clusterdistance() is simply 1-clusterprobability(). Are you saying you are getting more that one "0" value of cluster distance for different clusters on a single case?|||No. I am getting more than one case per cluster that has a ClusterDistance() value of "0".|||That's ok - it's an issue if you get more than one cluster per case with a ClusterDistance() of 0. Imagine if you have two identical cases - it would make sense that they have the same ClusterDistance(), would it not?|||

It does make sense. I just wanted to make sure that I was understanding everything correctly and I was not sure because the documentation is a bit vague in its definition of the function.

Thanks Jamie.