Thread: Shared Variable

  1. #1
    Registered User
    Join Date
    Oct 2016
    Posts
    4

    Shared Variable

    How to create a POSIX shared memory for integer variable?

  2. #2
    Registered User
    Join Date
    Jun 2015
    Posts
    1,640

  3. #3
    Registered User
    Join Date
    Oct 2016
    Posts
    4
    I want to initialize a counter variable. Counter = 0. But this counter should be a pointer variable to attach to the shared memory.So how do I initialize this?

  4. #4
    Registered User
    Join Date
    Jun 2015
    Posts
    1,640
    Show the code you've written so far and specify what part you're having trouble with.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 05-04-2017, 11:07 PM
  2. Replies: 8
    Last Post: 02-14-2010, 04:14 PM
  3. Global variable in shared library
    By krock923 in forum C Programming
    Replies: 5
    Last Post: 01-11-2008, 04:56 PM
  4. writing to a shared variable in a dll
    By cloudy in forum Windows Programming
    Replies: 4
    Last Post: 07-17-2007, 02:36 PM
  5. mfc as shared dll
    By zMan in forum Windows Programming
    Replies: 3
    Last Post: 09-06-2002, 01:23 PM

Tags for this Thread