Results 1 to 11 of 11

Thread: Possibilities of using an app to "create" an app?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2012
    Location
    Tampa, FL
    Posts
    1,187

    Possibilities of using an app to "create" an app?

    I am trying to understand app-ception (lol). What if I wanted to make an App, apply a bunch of settings such as label names or combo box names, then based on those settings, it essentially "creates" another app based on those settings? What is the best means to accomplish this?

    For Example: If I wanted to create an app that contained 1 button that emails a report. The first thing I want to do, is let the user open, provide an email, then "Compile" an app that will only email the user email originally provided, and leave no trace of the original app.

    What are the means of doing something like this? Such as A form destroys itself from an EXE (But I dont think thats possible?)

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

    Re: Possibilities of using an app to "create" an app?

    While it certainly is possible to do what you ask, the ends can be achieved using a much easier method. You could use a single program and dynamically instantiate the necessary controls and dynamically wire their events at runtime based on a config file.
    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

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2012
    Location
    Tampa, FL
    Posts
    1,187

    Re: Possibilities of using an app to "create" an app?

    Right, but what if I want just one exe and dont want to deal with config files

  4. #4
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: Possibilities of using an app to "create" an app?

    Now you've lost me. Clarify please.
    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

  5. #5
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: Possibilities of using an app to "create" an app?

    It sounds like you are talking about a code generator. It's a massive undertaking. You might think that you have simplified it down to where it is reasonable, but if you start down this path you will quickly find that you have not. There will always be 'one more thing' to add. Code generators exist. There are any number of commercially available ones, but they all suffer from some serious limitations, and I personally feel that they always will. Every code generator has a few tasks that it does really well, but once you stray from that core competency, the quality of the product gets worse and worse. You, as the generator writer, will then perpetually chase after improvements for new scenarios until you drop dead from exhaustion.
    My usual boring signature: Nothing

  6. #6
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: Possibilities of using an app to "create" an app?

    For Example: If I wanted to create an app that contained 1 button that emails a report. The first thing I want to do, is let the user open, provide an email, then "Compile" an app that will only email the user email originally provided, and leave no trace of the original app.
    And the point of that would be what exactly? Anybody else smelling a well-known pressed meat product or is it just me?
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  7. #7
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Possibilities of using an app to "create" an app?

    no... not smelling any meats of any kind... this isn't the first time I've seen this kind of thread... with dang near the same wording too... not sure what to make of it. I don't think it's a malorderous issue in the state of Denmark however.

    -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??? *

  8. #8

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2012
    Location
    Tampa, FL
    Posts
    1,187

    Re: Possibilities of using an app to "create" an app?

    Quote Originally Posted by dunfiddlin View Post
    And the point of that would be what exactly? Anybody else smelling a well-known pressed meat product or is it just me?
    I have been on this forum for a while, I am asking more about a proof of concept of writing apps to create apps. I am writing apps at my day job and believe me, If I wanted to write a "well-known pressed meat" product, I wouldnt need to ask anyone here to do it.

  9. #9
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Possibilities of using an app to "create" an app?

    as a proof of concept, yes.,... it is possible... that's what VS is... it's an application that makes other applications... the CodeDom is probably what you're looking for...

    -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??? *

  10. #10

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2012
    Location
    Tampa, FL
    Posts
    1,187

    Re: Possibilities of using an app to "create" an app?

    Quote Originally Posted by techgnome View Post
    as a proof of concept, yes.,... it is possible... that's what VS is... it's an application that makes other applications... the CodeDom is probably what you're looking for...

    -tg
    Thanks. This is just something for me to brainstorm ideas with. I think config file ultimately will be the best bet. I want to try to make my applications independent of hard coded variables (such as pulling data from WBC). Just creating something thats hard for users to mess up, and all-in-one. I suppose this is where the strength of the config file/user settings comes into play.

    And thanks shaggy, that seems about right. It would be not about maintaining or editing current functionality but adding more, which is to the point of, thats why you use visual studio

  11. #11
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: Possibilities of using an app to "create" an app?

    Quote Originally Posted by jayinthe813 View Post
    Just creating something thats hard for users to mess up
    Yeah. Good luck with that.
    My usual boring signature: Nothing

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