Thread: execute a code in data segment...

  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    5

    Question execute a code in data segment...

    I am facing a problem .....

    I need to execute a code which is residing in data segment of the program... ( I am working on windows 2000 on DEV C++ IDE ) Now the executable code is residing in data segment because I have copied it in an array which is declared as global ... so the data segment does not have an executable permission .. is there any way to fool the system so THAT it does my work... or can I convert convert a piece of data segment executable by using some system call in C++....

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Stop spamming the board with the same question
    http://cboard.cprogramming.com/showthread.php?t=90767
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. question about a working linked list
    By cold_dog in forum C++ Programming
    Replies: 23
    Last Post: 09-13-2006, 01:00 AM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. C Programming Question
    By TK in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 07-04-2002, 07:11 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  5. Warnings, warnings, warnings?
    By spentdome in forum C Programming
    Replies: 25
    Last Post: 05-27-2002, 06:49 PM