Results 1 to 4 of 4

Thread: [RESOLVED] Update Resource assembly

  1. #1

    Thread Starter
    Fanatic Member BenJones's Avatar
    Join Date
    Mar 2010
    Location
    Wales UK
    Posts
    629

    Resolved [RESOLVED] Update Resource assembly

    Hi I was wondering is it possiable to add to a compiled exe resource, I was thining of making a small app to compile text files into a exe and then addd password to open it.
    I know when doing this in VB6 you had to store the file at the end of the exe, but was wondering is there an easyer way to do it in .NET

    Thanks.

  2. #2
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,598

    Re: Update Resource assembly

    What do you mean add a password to open it ?
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  3. #3
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,532

    Re: Update Resource assembly

    You just add them as a resource... then access them through the app's resources class (I think it's under the My namespace) ... so your app would start up, ask for a pwd, if it's right, open what ever you needed... but...

    Strings are strings are strings... doesn't matter if they are litterals like "Hello World" or resource elements... they will be unencrypted and completely viewable in a resource editor or decompiler... so you may want to encrypt them... and the password too...

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    Fanatic Member BenJones's Avatar
    Join Date
    Mar 2010
    Location
    Wales UK
    Posts
    629

    Re: Update Resource assembly

    hi Thanks for the help I sorted it now, I made a little class that uses resources to package files into one big file. My idea is to make a king of text ebook compiler for text files.
    here my class in case anyone is intrested.

    http://www.vbforums.com/showthread.p...55#post4334855

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