Click here to Skip to main content
15,920,602 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSize of property sheet/page Pin
Eq7-Sep-00 17:09
Eq7-Sep-00 17:09 
GeneralRe: Size of property sheet/page Pin
Paolo Messina8-Sep-00 8:00
professionalPaolo Messina8-Sep-00 8:00 
GeneralAdding toolbars to a dockable window Pin
Shekhar7-Sep-00 12:42
Shekhar7-Sep-00 12:42 
GeneralPassing strings between running apps Pin
#realJSOP7-Sep-00 11:50
professional#realJSOP7-Sep-00 11:50 
GeneralRe: Passing strings between running apps Pin
Michael Dunn7-Sep-00 14:33
sitebuilderMichael Dunn7-Sep-00 14:33 
GeneralRe: Passing strings between running apps Pin
Feng Yuan (www.fengyuan.com)7-Sep-00 18:20
sussFeng Yuan (www.fengyuan.com)7-Sep-00 18:20 
GeneralRe: Passing strings between running apps Pin
Mustafa Demirhan8-Sep-00 13:31
Mustafa Demirhan8-Sep-00 13:31 
GeneralRe: Passing strings between running apps Pin
Mustafa Demirhan8-Sep-00 13:47
Mustafa Demirhan8-Sep-00 13:47 
hi,
i have found another solution from the book:
***********************************************************
Shared Memory and Based Pointers
---------------------------------
A shared memory mapped file object may not necessarily appear at the same address for all processes. While shared memory objects are mapped to identical locations in the address spaces of Windows 95 processes, the same is not true in Windows NT. This can be a problem if applications want to include pointers in the shared data. One solution to this problem is to use based pointers and set them to be relative to the start of the mapping area.


Based pointers are a Microsoft-specific extension of the C/C++ language. A based pointer is declared using the __based keyword, in a fashion similar to the following:

<br />
void *vpBase;<br />
void __based(vpBase) *vpData;<br />


References through the based pointer always point to data relative to the specified base. Their utility extends beyond shared memory; based pointers can also be very useful when saving data that contains pointers to disk.

Mustafa Demirhan
GeneralIdeas for a Doc/View Variation... Pin
Chris Losinger7-Sep-00 11:16
professionalChris Losinger7-Sep-00 11:16 
GeneralRe: Ideas for a Doc/View Variation... Pin
arf7-Sep-00 14:07
arf7-Sep-00 14:07 
GeneralRe: Ideas for a Doc/View Variation... Pin
Sam Hobbs8-Sep-00 9:10
Sam Hobbs8-Sep-00 9:10 
GeneralProblem with radio buttons using win32 only.. Pin
Keegan Prendergast7-Sep-00 9:30
sussKeegan Prendergast7-Sep-00 9:30 
GeneralUnable to Debug MFC? (URGENT) Pin
a.r.f.7-Sep-00 6:11
a.r.f.7-Sep-00 6:11 
GeneralProblem Solved Re: Unable to Debug MFC? (URGENT) Pin
a.r.f.7-Sep-00 8:18
a.r.f.7-Sep-00 8:18 
Generalerror C2011 Pin
_ra7-Sep-00 5:16
_ra7-Sep-00 5:16 
GeneralRational Rose Experts Pin
Yaron7-Sep-00 2:25
Yaron7-Sep-00 2:25 
GeneralChooseFolderAPI Pin
Member 2003617-Sep-00 2:22
Member 2003617-Sep-00 2:22 
GeneralDisable a row in list control Pin
Eq6-Sep-00 18:05
Eq6-Sep-00 18:05 
GeneralRe: Disable a row in list control Pin
Michael Dunn6-Sep-00 21:40
sitebuilderMichael Dunn6-Sep-00 21:40 
GeneralRestricting access to DB Pin
Paul Ebert6-Sep-00 13:05
Paul Ebert6-Sep-00 13:05 
GeneralRe: Restricting access to DB Pin
Alex6-Sep-00 21:19
Alex6-Sep-00 21:19 
GeneralBOOL, TRUE, FALSE vs. bool, true, false Pin
Marty6-Sep-00 10:14
Marty6-Sep-00 10:14 
GeneralRe: BOOL, TRUE, FALSE vs. bool, true, false Pin
Michael Dunn6-Sep-00 16:06
sitebuilderMichael Dunn6-Sep-00 16:06 
GeneralRe: BOOL, TRUE, FALSE vs. bool, true, false Pin
Uwe Keim6-Sep-00 22:19
sitebuilderUwe Keim6-Sep-00 22:19 
GeneralRe: BOOL, TRUE, FALSE vs. bool, true, false Pin
Michael Dunn6-Sep-00 22:24
sitebuilderMichael Dunn6-Sep-00 22:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.