失踪esent.h

失踪esent.h

问题描述:

我试图运行这个程序,但我不断收到错误“esent.h没有这样的文件或目录”失踪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; 

可能是什么问题?

+1

其他Windows SDK标头的'#include'是否正常工作? – 2011-03-14 05:12:07

+0

你在哪里放置esent库? – 2011-03-14 05:12:46

+0

我没有安装Windows SDK,我昨天卸载它。我会安装它并看看。 – Gandalf 2011-03-14 05:51:27

我已经安装了MS Visual Studio的快速版本,并且包含了esent.h,没有问题。也许你应该试试这个,因为它是免费的(供个人使用)。

+0

我能解决这个问题。 – Gandalf 2011-05-20 12:57:43