Array in shared data segment? 
Author Message
 Array in shared data segment?

Hello can you have an array in a shared data segment?

#pragma data_seg("Shared")
    DWORD  gdwaNotifyMessages[99];
#pragma data_seg()

Would the above work? Does it need to be initialized and if so how do you
init an array when declared?
Thanks for any help!!
Ken



Sat, 29 Jun 2002 03:00:00 GMT  
 Array in shared data segment?

Quote:
>Would the above work? Does it need to be initialized and if so how do you
>init an array when declared?

Ken,

Does this work?

#pragma data_seg("Shared")
    DWORD  gdwaNotifyMessages[99] = {0};
#pragma data_seg()

Dave
--
Address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow up email copies.
http://www.bj.co.uk



Sat, 29 Jun 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Shared data segment not working

2. How to created shared memory data segment

3. Is there any way to get pointers to work in shared data segments

4. Changing a data segment to a code segment in OS/2

5. problems with shared memory segment and logout.

6. Using larger shared memory segment

7. DLL with shared data/class not sharing...

8. Sanity check on use of shared memory segment

9. Shared memory segment

10. Common areas/common data/data sharing

11. how to get stack, data segment and heap address

12. stack, heap and data segment

 

 
Powered by phpBB® Forum Software