[QUESTION] Making a generator menu

User Tag List

Results 1 to 7 of 7
  1. #1
    insignia96's Avatar Banned
    Reputation
    33
    Join Date
    Oct 2008
    Posts
    304
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [QUESTION] Making a generator

    Okay,

    What I want to do is make a sort of program generator. An executable that will have you fill in some shit then click a button and it will spit out an executable configured with the settings you entered.

    Like the GMPH Generator only different and written in VB or VB.NET.

    Thanks, Insignia

    [QUESTION] Making a generator
  2. #2
    Tenni-T's Avatar Contributor
    Reputation
    134
    Join Date
    Jan 2007
    Posts
    462
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You forgot the question? :P
    Tenni-T (Tenned) - Contrib!

    MMOwned - My favorite website of all times.

  3. #3
    insignia96's Avatar Banned
    Reputation
    33
    Join Date
    Oct 2008
    Posts
    304
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The Question is: How can i do this?

  4. #4
    Cephalopod's Avatar Member
    Reputation
    5
    Join Date
    Sep 2008
    Posts
    85
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Never looked into it myself but google "patching"

  5. #5
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No. You want to google dynamic compilation in VB.NET.

    I have a compiler lib laying somewhere around here. (Makes it easy, just instantiate the compiler class, and feed it some source code to compile, set some options, and out goes the exe) I'll see if I can find it.

  6. #6
    suicidity's Avatar Contributor
    Reputation
    207
    Join Date
    Oct 2006
    Posts
    1,439
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What you're looking for is CodeDom.

    Basically off the top of my head it's something like the following..

    Code:
                Dim vbCompile As VBCodeProvider = New VBCodeProvider
                Dim options As CompilerParameters = New CompilerParameters
                options.GenerateExecutable = True : options.GenerateInMemory = True
                options.ReferencedAssemblies.Add("System.dll") : options.ReferencedAssemblies.Add("System.Drawing.dll") : options.ReferencedAssemblies.Add("System.Windows.Forms.dll") : options.ReferencedAssemblies.Add("Microsoft.VisualBasic.dll")
    
                Dim cr As CompilerResults = vbCompile.CompileAssemblyFromFile(options, ##FILENAMEPATH##)
    
                If cr.Errors.Count > 0 Then
                    Dim ce As CompilerError
                    For Each ce In cr.Errors
                        If Not ce.IsWarning Then ' Throw an error ; Cheap way of doing it and I check if it's a warning or not but you don't have to.
                    Next ce
                    Return False
                Else
                    ' Success
                    Return True
                End If
    That should work, just put in what ever you need; Then feed it the file. Or optionally you can use a CompileAssemblyFrom#### for different methods.


  7. #7
    insignia96's Avatar Banned
    Reputation
    33
    Join Date
    Oct 2008
    Posts
    304
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks guys! If u can find that Apoc that would be Great and suicidity i'll try that code.

Similar Threads

  1. [Question] Make whole wow into an inn?
    By Evolution in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 01-06-2008, 11:41 AM
  2. [Question] making a island in Gjilian`s isle
    By Errorx in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 10-19-2007, 05:36 PM
  3. [Question] Make your own mount
    By DarkFever in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 10-13-2007, 05:26 PM
  4. [Question] Making your own models. (Animation & Texturing)
    By aeonicx in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 10-08-2007, 07:17 PM
  5. [question] Making mounts
    By DarkFever in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 10-06-2007, 11:10 PM
All times are GMT -5. The time now is 03:06 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search