Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 10 total
Thread Cannot get Unicode CDCollector Demo or Tutorial to work in D2010
Tue, Mar 29 2011 12:12 PMPermanent Link

Tony Pomfrett

When I compile and run either the unicode CDCollector demo or the unicode Local App Tutorial I get an ElevateDB error #100 about non matching character sets.

However, if I compile with the runtime package edb205s2010run the applications run correctly.

Is it possible that the design time package edb205s2010design is not actually the unicode package?
Tue, Mar 29 2011 7:25 PMPermanent Link

Michael Boyle

Softrix LImited

Avatar

Tony Pomfrett wrote:

When I compile and run either the unicode CDCollector demo or the unicode Local App Tutorial I get an ElevateDB error #100 about non matching character sets.

However, if I compile with the runtime package edb205s2010run the applications run correctly.

Is it possible that the design time package edb205s2010design is not actually the unicode package?


Have you set the the following in the Compiler Options Custom Options ?

-dEDB_UNICODE
Tue, Mar 29 2011 9:38 PMPermanent Link

Tony Pomfrett

<<
Have you set the the following in the Compiler Options Custom Options ?

-dEDB_UNICODE
>>

No, where can I find those options?

I tried entering that string in Conditional Defines under Project Options/Delphi Compiler but it made no difference.
Wed, Mar 30 2011 4:45 AMPermanent Link

Michael Boyle

Softrix LImited

Avatar

Tony Pomfrett wrote:

<<
Have you set the the following in the Compiler Options Custom Options ?

-dEDB_UNICODE
>>

No, where can I find those options?

I tried entering that string in Conditional Defines under Project Options/Delphi Compiler but it made no difference.



Hi Tony,

Navigate to the Project Menu, Project Options then under Compiler Options->Other you will see a box for Custom Options which should have the -dEDB_UNICODE option entered.  More details on this can be found here:

http://www.elevatesoft.com/articles?action=view&category=edb&article=elevatedb_and_lazarus_windows_ce_mobile_build_notes
Wed, Mar 30 2011 4:50 AMPermanent Link

Michael Boyle

Softrix LImited

Avatar


Just to extend on my previous post, I'm using the very latest release of Lazarus and the previous versions position of that option I think was set out in a separate menu called Compiler Options.

Ive attached a screenshot to help a little more  =)



Attachments: screenshot.jpg
Wed, Mar 30 2011 12:12 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Tony,

<< When I compile and run either the unicode CDCollector demo or the unicode
Local App Tutorial I get an ElevateDB error #100 about non matching
character sets.

However, if I compile with the runtime package edb205s2010run the
applications run correctly.

Is it possible that the design time package edb205s2010design is not
actually the unicode package? >>

You should double-check your compiler search paths (both project search
paths and Library Search Path in the Environment Options) and make sure that
you don't have a non-Unicode version of EDB in the search path somewhere.

--
Tim Young
Elevate Software
www.elevatesoft.com
Wed, Mar 30 2011 12:13 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< Have you set the the following in the Compiler Options Custom Options ?

-dEDB_UNICODE >>

I think he's using Delphi, and that configuration option is for Lazarus.

--
Tim Young
Elevate Software
www.elevatesoft.com
Wed, Mar 30 2011 6:29 PMPermanent Link

Michael Boyle

Softrix LImited

Avatar

"Tim Young [Elevate Software]" wrote:

Michael,

<< Have you set the the following in the Compiler Options Custom Options ?

-dEDB_UNICODE >>

I think he's using Delphi, and that configuration option is for Lazarus.

--
Tim Young
Elevate Software
www.elevatesoft.com





oh yeah, my bad  =)

I should have noticed by the design and runtime names  /slap
Wed, Mar 30 2011 6:58 PMPermanent Link

Tony Pomfrett

Thanks Michael & Tim,

I finally got it to work but I think there might be a problem with the source.

I searched the entire hard drive for all files starting with "edb" and they were all located in the ElevateDB installation folder in the Code & Code\Source folders (plus the runtime bpl in D2010 bin folder).

I checked all search & library paths and the only relevant ones were the ElevateDB Code & Code\Source paths.

Deleted ElevateDB search & library paths from D2010 & uninstalled and re-installed ElevateDB.

By default, CDCollector will not compile because it cannot find "edbversion.inc" which is in the Code\Source folder and that folder is not added to the Library or Search paths. Previously I have just manually added Code\Source to the Library path so that the compiler could find "edbversion.inc". This is where things go wrong - recompiling the ElevateDB source leads to runtime errors.

This time I left the Library path at the default Code folder and copied "edbversion.inc" from the Code\Source to the Code folder and now it all works. So using the precompiled ElevatedDB dcu files works, recompiling the ElevateDB pas files seems not to work.

I confirmed this several times. Anyway, that's how it appears to me but I could be wrong.
Mon, Apr 4 2011 2:34 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Tony,

<< By default, CDCollector will not compile because it cannot find
"edbversion.inc" which is in the Code\Source folder and that folder is not
added to the Library or Search paths. Previously I have just manually added
Code\Source to the Library path so that the compiler could find
"edbversion.inc". This is where things go wrong - recompiling the ElevateDB
source leads to runtime errors. >>

Thanks, I'll make sure this is corrected in the 2.05 B5 build (*.inc files
in the \code subdirectory).

--
Tim Young
Elevate Software
www.elevatesoft.com
Image