Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Binary files on device

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-23-2007, 05:16 PM
Junior Member
 
Join Date: Jul 2007
Location: London, UK
Posts: 13
Default Binary files on device

OK, I have a binary file system up and running, works fine on the compiled desktop version, but the device version comes up with the error "Error loading program.\My Documents\BinaryFile.dll"
The BinaryFile component was added to both the PC and the Device, but the message infers that the .dll should be on the device also, is this the case?

Regards

Ian
Reply With Quote
  #2 (permalink)  
Old 08-23-2007, 05:18 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by Ianmac View Post
The BinaryFile component was added to both the PC and the Device, but the message infers that the .dll should be on the device also, is this the case?
Yes, in the same directory as the application.
Reply With Quote
  #3 (permalink)  
Old 08-23-2007, 07:29 PM
Junior Member
 
Join Date: Jul 2007
Location: London, UK
Posts: 13
Default

Many thanks, it is now working.
I was a bit loth to add the .dll to the device as the word 'compile' to me infers that all the code required is included in the final .exe and didn't want to add PC code in the form of a .dll to the device.
Do I take it all .dll's have to be added in this way and is that problem resolved when an automatic loader is used or do they still have to be added?

Thanks again

Ian
Reply With Quote
  #4 (permalink)  
Old 08-24-2007, 07:43 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by Ianmac View Post
Do I take it all .dll's have to be added in this way and is that problem resolved when an automatic loader is used or do they still have to be added?
Yes, any components used in an application need the appropriate dll to be present in the application directory on both the device and the desktop although B4PPC will copy the dll for the desktop to the development directory for you. If you move the desktop application to another directory you will need to move any dlls also.

If by "automatic loader" you mean an installer then either the installer must have been set up to provide the necessary dlls or they must be manually installed.
Reply With Quote
  #5 (permalink)  
Old 08-24-2007, 07:49 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by Ianmac View Post
... didn't want to add PC code in the form of a .dll to the device.
In fact the dlls are not PC code but are compiled for the .NET Compact Framework and marked as retargetable. This means that they can also (usually) run under the full .NET Framework on the PC. When this is not so then two different dlls are provided for the device and the desktop e.g. the Crypto, FTP and Hardware components.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
running .cab files from a program on the device Louis Questions (Windows Mobile) 3 10-27-2008 08:00 PM
Coverting text files with binary file page code functionality kolbe Code Samples & Tips 1 06-21-2008 05:06 PM
Reading binary files jgm Questions (Windows Mobile) 5 05-28-2008 10:09 AM
Can I upload and download files from device to PC superbabicka Questions (Windows Mobile) 2 03-31-2008 02:47 PM
Binary Files- Love'm and sometimes confused XerVision Questions (Windows Mobile) 2 06-10-2007 07:55 PM


All times are GMT. The time now is 11:03 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0