dbTalk Databases Forums  

trouble with B_EXTENDED_STAT

comp.databases.btrieve comp.databases.btrieve


Discuss trouble with B_EXTENDED_STAT in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alexander Materukhin
 
Posts: n/a

Default trouble with B_EXTENDED_STAT - 06-30-2003 , 01:52 AM






Have anybody experience with Btrieve function B_EXTENDED_STAT.
There are no one example in Pervasive SDK

When I try to call B_EXTENDED_STAT, I constantly gave status 62

Where I can get sample application or valid help?

Alexander,
Thank you!



Reply With Quote
  #2  
Old   
Bill Bach
 
Posts: n/a

Default Re: trouble with B_EXTENDED_STAT - 07-05-2003 , 01:13 PM






I use this all the time. Which subfunction are you trying to call?

Here's a snippet of my code calling subfunction 1. The BTRV call is
hidden behind CallBtrv, and the parameters are hidden in the BUFF
structure, but you should get the general idea...

/* Try to make the Extended Stat Call for More Info */
strncpy((char *)StatExtd1Buffer.Call.Signature,"ExSt",4);
StatExtd1Buffer.Call.SubFunction=1;
StatExtd1Buffer.Call.Namespace=0;
StatExtd1Buffer.Call.MaxFiles=100;
StatExtd1Buffer.Call.FirstFileSequence=0;
Buff[fn].buflen=sizeof(StatExtd1Buffer);
Buff[fn].databuf=(BYTE *)&StatExtd1Buffer;
Buff[fn].keynum=0;
Buff[fn].operation=BTRV_STAT_EXTENDED;
Status=CallBtrv(&Buff[fn]);
if(Status==0)
...

The inbound structure is:
typedef struct
{
BTI_BYTE Signature[4];
BTI_LONG SubFunction;
BTI_LONG Namespace;
BTI_LONG MaxFiles;
BTI_LONG FirstFileSequence;
BTI_BYTE BufferSpace[4096];
} STATEXTD1CALLREC;

And the outbound structure is:
typedef struct
{
BTI_LONG NumberOfFiles;
BTI_LONG NumberOfExtensions;
BTI_BYTE BufferSpace[4096];
} STATEXTD1RETREC;

If this doesn't help, post YOUR code & we'll see what's wrong with it.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: September 16-18: See our web site for details!


Alexander Materukhin wrote:

Quote:
Have anybody experience with Btrieve function B_EXTENDED_STAT.
There are no one example in Pervasive SDK

When I try to call B_EXTENDED_STAT, I constantly gave status 62

Where I can get sample application or valid help?

Alexander,
Thank you!


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.