Mirtheil,
Thanks for the help I was eager to know that how can we tackle this error. I am using 6.15V.
Secondly I was trying to work out a utility using the VC++6
If I am using a console i.e dos based application things work fine but in GUI based with VC++ I am getting error 27 where as the same code works fine with dos.
this is the function I am using. I under stand that UR in VB but I feel the calling conventions are the same
Here the File_Buf_1 is the structure that has the details of file and the key specifications.
Can U help me in the possible cause of error.
int Create_MCD_File(char* File_Name,char* MCD_Pos)
{
BTI_WORD Buf_Len; // holds length of buffer for btrv
memset(&File_Buf_1,0,sizeof(File_Buf_1));
File_Buf_1.Rec_Len = 53;
File_Buf_1.Page_Siz = 1024;
File_Buf_1.Variable = VAR_RECS;
File_Buf_1.Ndx_Cnt = 1; // number of physical keys
File_Buf_1.Key_Buf[0].Key_Pos = 1;
File_Buf_1.Key_Buf[0].Key_Len = 12;
File_Buf_1.Key_Buf[0].Key_Flag = BINARY;
Buf_Len = sizeof(File_Buf_1);
return (BTRV (B_CREATE, MCD_Pos, &File_Buf_1, &Buf_Len, File_Name, PRIME_KEY ));;
}