Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2016
    Posts
    7

    Answered: B_directory_error

    I've downloaded the C# snippets from http://www.pervasive.com/database/Ho...KArchives.aspx and tried to use it so as to read a MKD file, but I didn't succeed. Even putting the file in the same directory, I got the following message: B_OPEN - Btrieve code: 35.

    Could you guys please give me some help on this?

    Thanks in advance

  2. Best Answer
    Posted by mirtheil

    "Did you change anything in the sample? If you opened the csharp sample (csharp.sln), it opens the Course.mkd table. Did you change it to your MKD file? Did you change the Course.cs to reflect the structure of your MKD file? That sample is designed to open only the course.mkd that is part of the Pervasive demodata database. If you simply ran the sample, changed the directory to where your MKD file is located (not where COURSE.MKD is), then the error 35 (directory error) would be expected."


  3. #2
    Join Date
    Dec 2001
    Posts
    1,109
    Provided Answers: 4
    Did you change anything in the sample? If you opened the csharp sample (csharp.sln), it opens the Course.mkd table. Did you change it to your MKD file? Did you change the Course.cs to reflect the structure of your MKD file? That sample is designed to open only the course.mkd that is part of the Pervasive demodata database. If you simply ran the sample, changed the directory to where your MKD file is located (not where COURSE.MKD is), then the error 35 (directory error) would be expected.
    Mirtheil Software
    Certified Pervasive Developer
    Certified Pervasive Technician
    Custom Btrieve/VB development
    http://www.mirtheil.com
    I do not answer questions by email. Please post on the forum.

  4. #3
    Join Date
    Jan 2016
    Posts
    7
    Hi, mirtheil,

    Thanks for your attention. Once I have done as you said, everything went fine.

    Regards

  5. #4
    Join Date
    Dec 2001
    Posts
    1,109
    Provided Answers: 4
    Glad to hear it's working. If my comment answered the question, please mark it answered so that others can find the answer easily.
    Mirtheil Software
    Certified Pervasive Developer
    Certified Pervasive Technician
    Custom Btrieve/VB development
    http://www.mirtheil.com
    I do not answer questions by email. Please post on the forum.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •