CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    4

    writing in own .exe

    We want our application to write some data (a structure) in itself (.exe file). We have kept some static
    char array in which we have to write. We are able to open and read our own .exe but not able to write in it. can any one suggest a way to do this. we are using VC++ 5.0 under win NT

    thanxs in advance
    Amit


  2. #2
    Join Date
    Apr 1999
    Location
    Arlington, VA
    Posts
    21

    Re: writing in own .exe

    Try the /SWAPRUN linker option, which copies your program to a swap file, and then runs it. You may be able to write to your original disk file executable.

    LOL.


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

Featured