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.


Choose Folder - Optimized Compilation


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-15-2008, 09:01 AM
Newbie
 
Join Date: Apr 2008
Posts: 8
Default Choose Folder - Optimized Compilation

Hi,

I upgraded to version 6.30, and liked the idea to use "Device (Force QVGA)" compilation, and for this I have to use "Optimized Compilation".

I have some problems with "Choose Folder" sample I found on forum, and successfully used it without "Optimized Compilation".

Can someone have a look to the sample attached and make it work with "Optimized Compilation" ?

Thanks!
Attached Files
File Type: zip Test_LoadFile.zip (15.9 KB, 3 views)
Reply With Quote
  #2 (permalink)  
Old 05-15-2008, 09:08 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,488
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Check this thread Unable to cast Object Treeview.node
Reply With Quote
  #3 (permalink)  
Old 05-15-2008, 09:32 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,985
Default

You can find an updated version of FolderChooser under:
{Basic4ppc Folder}\Samples
Reply With Quote
  #4 (permalink)  
Old 05-15-2008, 10:05 AM
Newbie
 
Join Date: Apr 2008
Posts: 8
Default

Hi,

I made the modification, as Agraham suggested, and also the sample from Erel.
But on Device I get the same error.

"An error occurred on sub_app_start.
An error message cannot be displayed ...."

On device I have .Net CF v2.0 installed.
Reply With Quote
  #5 (permalink)  
Old 05-15-2008, 10:17 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,985
Default

First you should install this optional resource: error messages on device (see the 10th post).
Now you will get a more descriptive error message.
Did you copy the two image files?
Reply With Quote
  #6 (permalink)  
Old 05-15-2008, 10:53 AM
Newbie
 
Join Date: Apr 2008
Posts: 8
Default

My bad, I didn't copy the image files.
I supposed that they were embedded in the executable.

Thanks!
Reply With Quote
  #7 (permalink)  
Old 05-15-2008, 11:11 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,985
Default

Currently FolderChooser loads the two files at runtime.
If you want you can add an ImageList with the two image files and change:
Code:
    tree.AddImage1(AppPath & "\folder.bmp")
    tree.AddImage1(AppPath & "\openFolder.bmp")
To:
Code:
    tree.AddImage1(ImageList1.Item(0))
    tree.AddImage1(ImageList1.Item(1))
That will cause the images to be embedded in the executable.
Reply With Quote
  #8 (permalink)  
Old 05-15-2008, 02:27 PM
Newbie
 
Join Date: Apr 2008
Posts: 8
Default

Just one more question that is not related with "ChooseFOlder", but about "Optimized Compilation"

I get errot CS1002: ; expected

datafile = AppPath & "\Database\" VesselName.text & ".csv"
Reply With Quote
  #9 (permalink)  
Old 05-15-2008, 02:30 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,985
Default

You are missing an ampersand:
Code:
	datafile = AppPath & "\Database\" & VesselName.text & ".csv"
Reply With Quote
  #10 (permalink)  
Old 05-15-2008, 02:36 PM
Newbie
 
Join Date: Apr 2008
Posts: 8
Default

Too much coffee! I think I need some rest!

Thanks again
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
Optimized compilation susu Questions & Help Needed 3 05-13-2008 06:23 AM
Optimized Compilation problem on the device bob Questions & Help Needed 4 03-12-2008 01:05 PM
6.01 Optimized compilation error dpriem Bug Reports 2 01-06-2008 03:42 PM
FMOD and Optimized Compilation @Work Bug Reports 8 12-28-2007 07:51 PM
Version 6.0 Device optimized compilation problem HarleyM Bug Reports 0 12-28-2007 02:01 AM


All times are GMT. The time now is 04:38 AM.


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