Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Binary files on device


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-23-2007, 06: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, 06:18 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,688
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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, 08: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, 08:43 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,688
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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, 08:49 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,688
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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 On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 02:37 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0