Results 1 to 9 of 9

Thread: Creating Executables in runtime

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2004
    Posts
    1

    Creating Executables in runtime

    I want to build a application which generate .exe file at runtime plz help oks
    form any question reply

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    Give up now, you're wasting your time.
    I don't live here any more.

  3. #3
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098
    what does run time mean ???

  4. #4
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    The time that the program is running, literally.

    as opposed to design time which is the time you spend writing code.

    Runtime also means the program running on the target user's machine.
    I don't live here any more.

  5. #5
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148
    Check out the namespace System.CodeDom.Compiler and in particular the classes System.CodeDom.Compiler.CodeGenerator and System.CodeDom.Compiler.CodeCompiler

    but be prepared to do much work...

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Where would vbc.exe fit into this situation?

  7. #7
    Lively Member
    Join Date
    Jul 2001
    Posts
    81
    If you build the solution,project, and code files right, you should just be able to shell out to vbc.exe, no?
    Rate my posts for a chance to win cash and prizes

  8. #8
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148
    vbc.exe is a wrapper around the ICodeCompiler.CompileAssemblyFromFile implementation in the VBCodeProvider class....

    VBCodeProvider
    Namespace: Microsoft.VisualBasic

    Provides access to instances of the Visual Basic code generator and code compiler.

  9. #9
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    I see. All makes sense now.

    So doesn't that mean what Trunks said, generate the .SLN and .VBProj and .VB files correctly and all you'd need is vbc.exe?

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