Choose Folder - Optimized Compilation

Discussion in 'Questions (Windows Mobile)' started by orhan, May 15, 2008.

  1. orhan

    orhan Member Licensed User

    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:

  2. agraham

    agraham Expert Licensed User

  3. Erel

    Erel Administrator Staff Member Licensed User

    You can find an updated version of FolderChooser under:
    {Basic4ppc Folder}\Samples
     
  4. orhan

    orhan Member Licensed User

    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.
     
  5. Erel

    Erel Administrator Staff Member Licensed User

  6. orhan

    orhan Member Licensed User

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

    Thanks!
     
  7. Erel

    Erel Administrator Staff Member Licensed User

    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.
     
  8. orhan

    orhan Member Licensed User

    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"
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    You are missing an ampersand:
    Code:
    datafile = AppPath & "\Database\" [COLOR=Red][B]&[/B][/COLOR] VesselName.text & ".csv"
     
  10. orhan

    orhan Member Licensed User

    Too much coffee! I think I need some rest!

    Thanks again
     
  11. DaveW

    DaveW Active Member Licensed User

    Small point, the new lines should be:
    tree.AddImage2(ImageList1.Item(0))
    tree.AddImage2(ImageList1.Item(1))
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice