What is the difference in WM5 windbase.h and windbase_edb.h ?

Hi all,

I am having a hard time with WM5 edb. I saw some post to use "windbase_edb.h" header file, and the "Porting CEDB to EDB" use "#define EDB ..windbase.h".

It is very strange that using difference headers, the parameters of default structures are not the same (i use the debugger to observe the values)


"windbase_edb.h"

CEDBASEINFOEX     DBInfo;

the sortspec of DBInfo defaults to [4] ------- this is the old CEDB default


"#define EDB

"windbase.h"

CEDBASEINFOEX     DBInfo;

the sortspec of DBInfo defaults to [16] ------- this is the EDB default


In additon, i cannot assign a sort flag to the DBInfo, there are always a Invalid_parameter_error when using "CeCreateDatabaseWithProps" function.

Is it some kind of bug in windbase_edb.h 

 



Answer this question

What is the difference in WM5 windbase.h and windbase_edb.h ?

  • Thieme

    This is what Mr. Arun Mehta has to say about this thread:

    That is not a bug. The person is seeing that behaviour when he #includes "windbase_edb.h" in his app. This is *not* the correct way to use EDB. Developers should never directly include this file in their application.

    The right way to use EDB is by defining "EDB" in your app's compiler pre-processor defines and include "windbase.h" only.

    Thanks,

    Laxmi Narsimha Rao ORUGANTI, MSFT, SQL Server Everywhere, Microsoft Corp.



  • Bharathi Raja

    Hi.

    This question can be better answered by the SQL Mobile forum since the winbase_edb is related to this forum

    Thanks,

    Sadagopan Rajaram

    VSD Development Lead



  • What is the difference in WM5 windbase.h and windbase_edb.h ?