Add Code

Discussion in 'Questions (Windows Mobile)' started by giannimaione, May 10, 2007.

  1. giannimaione

    giannimaione Well-Known Member Licensed User

    Hi all,
    how to use Tools ----> Components ----> Add Code ?

    Perhaps, i can write a piece of code (routines) in MyCode.txt and to re-use it in various plans (creations) ?

    thanks all

    Gianni Maione
  2. Cableguy

    Cableguy Expert Licensed User


    Fro what i remember, the code files are txt files and are added just like the libraries, I think that thay also have to be in the apps dir
  3. Erel

    Erel Administrator Staff Member Licensed User

    As Cableguy wrote, you add your code saved as a text file.
    The text file will be copied to the application folder.
    Unlike the dll files there is no need to distribute the code with your compiled application as it will be compiled (to the same EXE file).
    It is also useful for large projects, to allow you to separate the code into several files.
  4. giannimaione

    giannimaione Well-Known Member Licensed User

    it (code txt) works very well!!!
  5. MM2forever

    MM2forever Active Member Licensed User

    so, is there actually a way like Include("device.txt") ?

    otherwise I wouldnt remark that feature as *that* useful
  6. agraham

    agraham Expert Licensed User

    From the original post

    Tools ----> Components ----> Add Code ?

    The disadvantage is that the code file is copied to the app directory so effectively breaking the link to the original code so that any changes made to the original will not be reflected to the copy, and vice versa.
  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