Hi,
I can successfully open a Btrieve file with the owner set with BUTIL, but when I attempt to open it via code (C#) I get an error 51 "Invalid Owner"! I have set the owner name in the following Structure, it is 6 chars in length so have set the dataLen to 7 to allow for the binary 0 at the end:
[StructLayout(LayoutKind.Sequential, Pack=1, CharSet=CharSet.Ansi, Size=8)]
public struct BTR_OWNER_NAME
{
public string OwenerName;
}
but when I attempt top open the file with:
bStat = BtrCall.BTRCALL( (ushort)BTROPS.B_OPEN, posBlock, ref ownerBuf, ref dataLen, keyBuffer, keyLen, keyNum );
I get the error 51!!!! Can someone PLEASE assist.
I can successfully open a Btrieve file with the owner set with BUTIL, but when I attempt to open it via code (C#) I get an error 51 "Invalid Owner"! I have set the owner name in the following Structure, it is 6 chars in length so have set the dataLen to 7 to allow for the binary 0 at the end:
[StructLayout(LayoutKind.Sequential, Pack=1, CharSet=CharSet.Ansi, Size=8)]
public struct BTR_OWNER_NAME
{
public string OwenerName;
}
but when I attempt top open the file with:
bStat = BtrCall.BTRCALL( (ushort)BTROPS.B_OPEN, posBlock, ref ownerBuf, ref dataLen, keyBuffer, keyLen, keyNum );
I get the error 51!!!! Can someone PLEASE assist.