Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 20 of 38 total
Thread Compiling
Tue, Oct 20 2009 10:57 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

<< The compiler options are: >>

The one thing different is the -WG setting, which can be found on the
Compiler Options/Linking tab - make sure that the Win 32 GUI application
check box is checked.   Other than that, your settings are exactly the same
as mine (except for the paths, since I'm using the source code).

--
Tim Young
Elevate Software
www.elevatesoft.com

Wed, Oct 21 2009 12:21 AMPermanent Link

Richard Harding
Tim,

I am able to compile and run the ShoppingList as a Win32 application with the following
compiler settings.

-MObjFPC
-Sgi
-O1
-TWin32
-Pi386
-Xs  
-WG
-vewni
-l
-FiC:\lazarus\lcl\units\i386-win32\win32\
-FuC:\lazarus\lcl\units\i386-win32\
-FuC:\lazarus\lcl\units\i386-win32\win32\
-FuC:\lazarus\packager\units\i386-win32\
-FuC:\Program Files\ElevateDB LCL Standard with Source\Version 2\Lazarus (Win32-Unicode)
0.926\code\source\
-Fu.
-oshoplist.exe
-dEDB_UNICODE
-dLCL
-dLCLwince

To run the application as an ARM/WinCE application, I changed to the parameters below -
which should now match your settings.

-TWinCE
-Parm
-FiC:\lazarus\lcl\units\arm-wince\wince\
-FuC:\lazarus\lcl\units\arm-wince\
-FuC:\lazarus\lcl\units\arm-wince\wince\
-FuC:\lazarus\packager\units\arm-wince\
-FuC:\Program Files\ElevateDB LCL Standard with Source\Version 2\Lazarus (Win32-Unicode)
0.926\code\source\


With these settings, I have the 4 "Identifier not found:" errors in the edbenv unit:
GetCurrentDirectoryW, GetSystemDirectoryW, GetComputerNameW, GetUserNameW.

I also have errors in the edbosfilemgr unit. "Identifier not found: " for LockFile,
UnlockFile, SetErrorMode.  As far as I can see, these functions are all defined in the
Windows unit for i386-win32 environment but not in the Windows unit for the arm-wince
environment.

The function TEDBEnvironment.GetComputerName uses GetComputerNameW to retreive the
Computer Name.  Should it be returning the literal WINCE_COMPUTER_NAME ('WindowsMobile')
which you have defined in EdbEnv.pas?

Richard Harding
Wed, Oct 21 2009 5:19 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

<< To run the application as an ARM/WinCE application, I changed to the
parameters below - which should now match your settings. >>

Duh, sorry, I completely missed this:

-FuC:\Program Files\ElevateDB LCL Standard with Source\Version 2\Lazarus
(Win32-Unicode)
0.926\code\source\

Did you install the Lazarus for WinCE version of ElevateDB ?  If not, then
do so, and make sure to change the above unit search path to its
\code\source subdirectory instead of the Win32-Unicode reference.

Right now you're compiling the Win32-Unicode source files using the WinCE
compiler, which won't work.


--
Tim Young
Elevate Software
www.elevatesoft.com

Thu, Oct 22 2009 2:01 AMPermanent Link

Richard Harding
Tim,

Thank you - I have been able to compile the Shopping List as Windows CE/ARM application.
It is also compiled and running as a Windows application.  A great sense of achievement  -
even though you did all the work.

The next step is deployment on the emulator.  I have copied the shoplist.exe,
EDBDatabase.EDBCat and the Shopping List data folder to the emulator's shared folder and I
can see the files in the emulator.  Is that all I need to do?  

When I run the program on the emulator, I get an ElevateDB error #504 - The maximum number
of concurrent sessions (4096) has been reached.

Also, is it possible to connect to a remote database?  The message "The server engine is
not available for this product" is displayed when I try to change the EngineType to etServer.

Richard Harding
Thu, Oct 22 2009 11:54 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

<< When I run the program on the emulator, I get an ElevateDB error #504 -
The maximum number of concurrent sessions (4096) has been reached. >>

See this section of the technical article at the end:

6) Using the Windows Explorer, copy the shoplist.exe file and the contents
of the "Data" folder from the installation folder to the shared folder
configured in Step 3 using the device emulator.

7) In the device emulator, copy the contents of the Storage Card\Shopping
folder (including the Data sub-folder) into the My Device\Shopping folder.
The reason that we don't run the application directly in the Storage
Card\Shopping folder is due to the fact that the ElevateDB locking does not
work correctly in the device emulator when the database is located in a
Storage Card shared folder. <<<<<<<<<<<<<

<< Also, is it possible to connect to a remote database?  The message "The
server engine is not available for this product" is displayed when I try to
change the EngineType to etServer. >>

You can use the LCL products as clients, but not as a server.  See this
thread for information on using remote sessions with WinCE and connecting to
an ElevateDB Server:

http://www.elevatesoft.com/newsgrp?action=openmsg&group=16&msg=9327&page=1#msg9327

--
Tim Young
Elevate Software
www.elevatesoft.com

Thu, Oct 22 2009 9:58 PMPermanent Link

Richard Harding
Thanks Tim.  

Copied the files from the Shopping folder on the Storage Card to the Shopping folder on My
Device and the Shopping List is running.  Wonderful.

I am sorry but I still have not managed to connect to a remote session.  Is the link below
correct?  I cannot find what I am looking for there.

>> You can use the LCL products as clients, but not as a server.  See this thread for
information on using remote sessions with WinCE and connecting to an ElevateDB Server:

http://www.elevatesoft.com/newsgrp?action=openmsg&group=16&msg=9327&page=1#msg9327



--
Richard Harding
Fri, Oct 23 2009 6:14 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

<< Copied the files from the Shopping folder on the Storage Card to the
Shopping folder on My Device and the Shopping List is running.  Wonderful.
>>

Cool, thanks for sticking in there.  I knew that we'd get you set up
eventually. Smiley I'm going to try and get this information into a more
concise document that will explain how to do things step by step.

<< I am sorry but I still have not managed to connect to a remote session.
Is the link below correct?  I cannot find what I am looking for there. >>

Sorry for not being more clear - there was a bug in the WinSock code for the
WinCE libraries when I tried it last:

http://www.elevatesoft.com/newsgrp?action=openmsg&group=16&msg=9396&page=1#msg9396

The latest 2.2.5 version of the FPC compiler should have a fix for it, based
upon the current status of the issue in their bug database at the link
provided in the above message.

--
Tim Young
Elevate Software
www.elevatesoft.com

Fri, Oct 23 2009 11:32 AMPermanent Link

"Daniel Kram"
Richard, could put together a list of items you used to setup Elevate with
CE and post or a quick and dirty FAQ...
I, for one, would find it usefull.
Fri, Oct 23 2009 3:03 PMPermanent Link

Richard Harding
Daniel,

>>Richard, could put together a list of items you used to setup Elevate with CE and post
or a quick and dirty FAQ...
I, for one, would find it usefull.

I have been creating the list as I go.  I will post it when I have everything working.

Richard Harding
Sun, Oct 25 2009 9:04 PMPermanent Link

Richard Harding
Hi Tim,

I incorporated the fix for winsock which is documented at
http://bugs.freepascal.org/view.php?id=13614.

I reckon it is now all working.
I can run a Lazarus Win32 application that connects to a remote session.
I can run a Lazarus Windows CE application that connects to a local database using the
emulator.  The database is on the emulator's file system.
I cannot run a Lazarus Windows CE application that connects to a remote session using the
emulator.  I receive an ElevateDB error #1100 - A connection to the server 125.168.35.1
cannot be established  (Access Violation).  I assume that is because of the router and the
emulator and that I really need to test it from outside the network.

I post my notes about all of this in a separate thread.


--
Richard Harding
« Previous PagePage 2 of 4Next Page »
Jump to Page:  1 2 3 4
Image