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. CMemFile?

CMemFile?

Scheduled Pinned Locked Moved C / C++ / MFC
performancequestion
2 Posts 2 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.
  • C Offline
    C Offline
    closecall
    wrote on last edited by
    #1

    is it possible to create a simple application and delete it while it is running? ie: run c:\mySimpleApp.exe (the app. copies itself-mySimpleApp.exe to memory space with CMemFile ???) delete c:\mySimpleApp.exe but process is still running obviously the challenge is to overcome "the application is currently in use" dialog. any ideas? :-D

    P 1 Reply Last reply
    0
    • C closecall

      is it possible to create a simple application and delete it while it is running? ie: run c:\mySimpleApp.exe (the app. copies itself-mySimpleApp.exe to memory space with CMemFile ???) delete c:\mySimpleApp.exe but process is still running obviously the challenge is to overcome "the application is currently in use" dialog. any ideas? :-D

      P Offline
      P Offline
      Peter Molnar
      wrote on last edited by
      #2

      You cannot delete a file while it is being executed (access denied). BTW CMemFile is just like CFile but it writes to and reads from memory instead of hard disk. If you mean the Task manager by "the Application currently in use" then this is impossible, you cannot hide runnig processes from it. Bunburry

      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