0

我正在尝试运行此程序,但我不断收到错误“esent.h 没有这样的文件或目录”

#undef JET_VERSION
#define JET_VERSION 0x0501

#include <stdio.h>
#include <string.h>
#include <esent.h>

// One possible error-handling strategy is to jump to an error-handling
// label whenever an ESENT call fails.
#define Call(func) { \
       err = (func); \
       if(err < JET_errSuccess) { \
       goto HandleError; \
       } \
} \

int main(int argc, char * argv[]) {
       JET_ERR err;
       JET_INSTANCE instance;
       JET_SESID sesid;
       JET_DBID dbid;
       JET_TABLEID tableid;

       JET_COLUMNDEF columndef = {0};
       JET_COLUMNID columnid;

可能是什么问题呢?。

4

1 回答 1

0

我安装了 MS Visual Studio 的快速版本,包括 esent.h 没问题。也许您应该尝试一下,因为它是免费的(供个人使用)。

于 2011-05-16T12:25:37.553 回答