execute a code in data segment...

This is a discussion on execute a code in data segment... within the Windows Programming forums, part of the Platform Specific Boards category; I am facing a problem ..... I need to execute a code which is residing in data segment of the ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,333
    Stop spamming the board with the same question
    how execute code residing in data segment??
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21