Results 1 to 11 of 11

Thread: How can I include a wordfile and a textfile into my project?

Hybrid View

  1. #1

    Thread Starter
    Addicted Member Supester's Avatar
    Join Date
    Nov 2001
    Location
    The Netherlands
    Posts
    220
    I am not sure you can put them into your exe.....(correct me if I'm wrong pleaase), but you can distribute them when u install your program and put it in the app.path........
    We have the technology and we are not afraid to use it

  2. #2
    Bouncy Member darre1's Avatar
    Join Date
    May 2001
    Location
    Peterborough, UK
    Posts
    3,828
    you can add them using the Package & Deployment Wizard.
    Confucious say, "Man standing naked in biscuit barrel not necessarily ****ing crackers."

    Don't forget to format your code in your posts

  3. #3
    Pirre001
    Guest
    darre1, can you show me an exempel?

  4. #4

    Thread Starter
    Addicted Member Supester's Avatar
    Join Date
    Nov 2001
    Location
    The Netherlands
    Posts
    220
    By including them in your package and deployment wizard they are not part of your executable...it is included in your setup but it will (after setup at the user) still be a seperate Word File
    We have the technology and we are not afraid to use it

  5. #5
    Bouncy Member darre1's Avatar
    Join Date
    May 2001
    Location
    Peterborough, UK
    Posts
    3,828
    just confim something for me please...

    it doesn't matter if these files are part of the actual exe file does it? just as long as they are installed in the same directory as the exe, yes?
    Confucious say, "Man standing naked in biscuit barrel not necessarily ****ing crackers."

    Don't forget to format your code in your posts

  6. #6
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    You can add them to res files and then compile them into the exe.
    At runtime you can extract them easily.

    Let me look for a link

    Seahag

  7. #7
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    This extracts a MDB (access database to a directory you name.)

    Fairly straight forward except for the res file itself(you`ll see)
    You might need to go to Addin Manager and select resource editor..



    Take a look

    Seahag
    Attached Files Attached Files

  8. #8
    Pirre001
    Guest
    Hi SeaHag and thanks! Thats exact what i need.
    But how do I do if I wanna include more than one file?
    I tried, but I not understand this...-->
    VB Code:
    1. btBuffer = LoadResData(101, fileType) ' 101, 102, 103 and 104! (index,format)

  9. #9
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    Cool
    If you want to ad another file..
    double click on the resourse file included in the project..
    (i am going from memory soo bear with me)
    Add a "custome resouce" The i think you will be promped
    to find file..
    Then. right click on the newly added file , and change the file extension to the one you added.. ie. txt, doc, mdb etc.


    As for... btBuffer = LoadResData(101, fileType) ' 101, 102, 103 and 104! (index,format)


    it refers to the files in the resource file.. make sense?
    101 will be mdb 102 might be a bitmap. ...
    Hope i didnt confuse the issue

    Seahag


    Just a thought..
    YOu may have to make 101 a variable. add it to the function.. and
    Make a loop to extract multiple resource files

    That is all
    Last edited by SeaHag; Feb 22nd, 2002 at 02:17 PM.

  10. #10
    Pirre001
    Guest
    It works now! Thanks!

  11. #11
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    np

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width