Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. autorun app

autorun app

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jerome Conus
    wrote on last edited by
    #1

    Hi !!! I'd like to automatically run my app when inserting the CD-Rom (containing my app). My app will be developped with VC++ 6, using the MFC. What I was wondering is : is it possible ? I know that the MFC needs some DLLs, so how can I run my MFC App from the CD-ROM if the required DLLs are not on the local computer ? Linking the MFC statically is enough ? Thanks ! Jerome

    M J J 3 Replies Last reply
    0
    • J Jerome Conus

      Hi !!! I'd like to automatically run my app when inserting the CD-Rom (containing my app). My app will be developped with VC++ 6, using the MFC. What I was wondering is : is it possible ? I know that the MFC needs some DLLs, so how can I run my MFC App from the CD-ROM if the required DLLs are not on the local computer ? Linking the MFC statically is enough ? Thanks ! Jerome

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      To resolve the DLL things, your application need to be statically linked with MFC ( if possible ), and if it needs other DLL, they should also be on the CD. You can also do some pre testing, in the autoload thingy on the CD, start another application that checks for DLL's and other things, and then start your application. Or, you can "temporarilly" install the application in a temp directory to run it. Max.

      1 Reply Last reply
      0
      • J Jerome Conus

        Hi !!! I'd like to automatically run my app when inserting the CD-Rom (containing my app). My app will be developped with VC++ 6, using the MFC. What I was wondering is : is it possible ? I know that the MFC needs some DLLs, so how can I run my MFC App from the CD-ROM if the required DLLs are not on the local computer ? Linking the MFC statically is enough ? Thanks ! Jerome

        J Offline
        J Offline
        Jawache
        wrote on last edited by
        #3

        Yep linking statically is fine... Or as long as you place the DLLS the app needs in the same directory as the applcation it elf... Asim Hussain e: asim@jawache.net w: www.jawache.net

        1 Reply Last reply
        0
        • J Jerome Conus

          Hi !!! I'd like to automatically run my app when inserting the CD-Rom (containing my app). My app will be developped with VC++ 6, using the MFC. What I was wondering is : is it possible ? I know that the MFC needs some DLLs, so how can I run my MFC App from the CD-ROM if the required DLLs are not on the local computer ? Linking the MFC statically is enough ? Thanks ! Jerome

          J Offline
          J Offline
          Jason Henderson
          wrote on last edited by
          #4

          Make an autorun.inf file containing the following:

          [autorun]
          OPEN = YOUREXE.EXE
          ICON = YOUREXES.ICO

          replace the italicized text

          Jason Henderson
          start page ; articles henderson is coming henderson is an opponent's worst nightmare * googlism *

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups