index > SQL Server Everywhere Edition > What is the difference in WM5 windbase.h and windbase_edb.h ?

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 ?

 

ericcwhung

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




VSD Development Lead
Sadagopan Rajaram - MSFT

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.




Please hit "Yes", if my post answered your question(s). All postings are as-is and confer no rights.
Laxmi Narsimha Rao ORUGANTI MSFT
reply 3

You can use google to search for other answers

 

More Articles

• Production Version
• Replication with filter
• possible to connect to SQL Server Mobile database
• .Net CF 2.0 Error , "Can't find PInvoke DLL 'dbnetlib.dll'.&...
• How do I install SQL Server Management Studio
• How does this, ResetDbType(), work
• Alter statement to create foreign key relationships
• Must you use 3rd party certs for mobile ssl replication?
• Emulator Error to replicate data on SQL server
• SQL Server Everywhere OLE DB sample
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Getting replication to work on Windows 2
• limited number of connections to SQLMobi
• Connecting to SQL Mobile within VS-2005
• Can I change a SQL Server Everywhere dat
• SQL Server Everywhere: 64-bit compatible?
• SQL Mobile Embedded XP support?
• Add connction Fails in VS.NET with SQL S
• Need help regarding Replication between
• Select Indexes on Sql CE
• Relations Error -
• SQL Server Mobile with Visual Studio 2003
• Windows Mobile 5 connecting to SQL Serve
• any one know whats wrong with it
• Replication with filter
• SQL CE 2.0 performance diffence on WM5 a

Hot Articles

• Buffer size not specified error
• Using Crystal Reports with SQL Server Ev
• SQL Mobile 2005 NVarChar Truncation Prob
• Pocket pc 2002 sqlce data synchronizatio
• An error has occurred on the computer ru
• An incorrect or unsupported HTTP functio
• Query:how to transfer data from a .net a
• Help me!emergency!
• Merge Replication with SQL Server 2000
• Replication Error
• Dates problem in SQL Server Everywhere e
• Reference to Data.System.SqlServerCe in
• SqlCeEngine Verify/Repair methods
• Cannot build SQL Server Mobile solution
• Top Instruction in SQLMOBILE

Recommend Articles

• Merge replication via cradle using Activ
• SqlCeConnection guidelines - keep it open?
• Disarming IDENTITY generation
• Behavior difference between SQL Mobile P
• sqlserver express and tablet pc
• Using SqlCeEngine to verify/Restore a da
• Error Saving Binary data to sql mobile
• How does this, ResetDbType(), work
• Rapi SecurityPolicy on Windows Mobile 5
• Sos..
• SqlServer Ev vs. MSDE Performance
• ANYONE CAN HELP ME PLEASE?
• ResultSet in Avalon (WinFX-WPF-.net3.0)
• Mobile Application Enquiry
• Why System.Data.SqlserverCe.Dll doesn't