container

I am developing an application where I need to store 100's of html files (Static - already I know the number and name of the files) and when customer clicks some option I need to display the file...

My Question is, is there any container or data folder there in visual basic 2005 so that i can embedded the html files with the application. There should not be any copy in the local hard drive, the html files should be embedded inside the application. Is there any component there to do this...




Answer this question

container

  • M. Carr

    What's all the Fuss If the size of the Exe doesn't matter as the OP Stated...... Put them in a String Array.... Strings are basically only limited by Main Memory.... Check the Data Type Definitions.... Cheers


  • Leonnuel

    see 'creating resources' in the help.

    I still think you would be better off putting them in a jet database.

    http://msdn2.microsoft.com/en-us/library/xbx3z216.aspx

    http://msdn2.microsoft.com/en-us/library/system.resources.resourcereader.aspx



  • MichaelJH

    Thanks Blair

  • thegallery

  • Harvey Norman

  • Flamin

    Will you give some examples of how to put these files in jet database... I tried some examples but it is not useful..

    Anyhow thanks for the resource help..



  • Ulrik Sorensen

    oh yeah. . . this is only going to work for basic web pages where all the data is in the webpage. you might also consider a compiled help file.

    http://msdn.microsoft.com/library/default.asp url=/library/en-us/htmlhelp/html/vsconhh1start.asp

    a compiled help file is for all intents and purposes a locally run compiled website.



  • Mrv153057

    put them in a jet database, else you will need to put them in a resource. . . but that will make the exe huge most likely.

  • CodeMission

    No you are not wrong.... But you could use a string Array but you would have to Parse it as you said..... A Real Pain in the A*s..... But you said in main Memory..... Which I agree with Blair is Crazy..... If you want to use something in Main Memory use a Dataset.... The same thing DBs use before they Update..... But I think what Blair said about using Access is also Crazy..... I could build you in VBE a Database Schema in a 1/2 Hour using SQL Server Express that would solve your Problem.... Cheers

    Now Playing Hound Dog by Elvis


  • persistent me

    Bronco,

    Html files will contain not only strings, objects, pictures, bitmaps etc.. Is string array able to handle all these things...

    Secondly, i don't want to handle byte by byte if it is a file then I can just display it in browser instead of reading and writing all those things..

    Correct me if I am wrong..



  • mlal

    web pages are just strings. . . the strings might reference objects but they don't contain the objects.

    but if you have even one complex page, a string contant in the exe would be unmanageable.



  • IDDesigns

    can you explain how to put them in a resource I am not familiar with that...Size of the exe doesn't matter..



  • Hugues van Wassenhove

     Satheesh Kumar wrote:
    Thanks Blair

    you're quite welcome. . . like my tongue in cheek humor



  • container