Click here to Skip to main content
15,887,676 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do I use GetProcAddress & function pointer? Pin
USAFHokie8016-Apr-08 8:20
USAFHokie8016-Apr-08 8:20 
GeneralRe: How do I use GetProcAddress & function pointer? Pin
peterchen16-Apr-08 8:41
peterchen16-Apr-08 8:41 
GeneralRe: How do I use GetProcAddress & function pointer? Pin
USAFHokie8016-Apr-08 9:13
USAFHokie8016-Apr-08 9:13 
QuestionRe: How do I use GetProcAddress & function pointer? Pin
David Crow16-Apr-08 10:13
David Crow16-Apr-08 10:13 
QuestionRe: How do I use GetProcAddress & function pointer? Pin
David Crow16-Apr-08 10:12
David Crow16-Apr-08 10:12 
GeneralRe: How do I use GetProcAddress & function pointer? Pin
USAFHokie8016-Apr-08 10:19
USAFHokie8016-Apr-08 10:19 
GeneralCArray in File Mapping Pin
krishnan.s16-Apr-08 5:34
krishnan.s16-Apr-08 5:34 
GeneralRe: CArray in File Mapping Pin
peterchen16-Apr-08 8:13
peterchen16-Apr-08 8:13 
No, it cannot.

CArray allocates memory to store the actual data dynamically from the heap, so the actual data is not included in the file mapping.

To put an array into a file mapping is not quite easy for multiple reasons.

Generally, classes cannot be used directly in a file mapping, unless they are specifically designed for this, or they meet very restrictive requirements. Also, the elements of your array msut meet the same requirements.

I am not aware of any implementation that is ready-to-use.

If both sides can agree on a fixed or maximum size of the array, it is probably not very complicated to use a shared size, and a pointer to the data (wrapped in a nice class Wink | ;) )

We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
blog: TDD - the Aha! | Linkify!| FoldWithUs! | sighist


GeneralRe: CArray in File Mapping Pin
Joseph Marzbani16-Apr-08 10:59
Joseph Marzbani16-Apr-08 10:59 
GeneralRe: CArray in File Mapping Pin
peterchen16-Apr-08 12:43
peterchen16-Apr-08 12:43 
QuestionDoDataExchange doesn't like pointers ? Pin
cagespear16-Apr-08 5:33
cagespear16-Apr-08 5:33 
AnswerRe: DoDataExchange doesn't like pointers ? Pin
CPallini16-Apr-08 5:40
mveCPallini16-Apr-08 5:40 
AnswerRe: DoDataExchange doesn't like pointers ? Pin
David Crow16-Apr-08 10:20
David Crow16-Apr-08 10:20 
GeneralRe: DoDataExchange doesn't like pointers ? Pin
cagespear16-Apr-08 20:53
cagespear16-Apr-08 20:53 
QuestionRe: DoDataExchange doesn't like pointers ? Pin
David Crow17-Apr-08 2:55
David Crow17-Apr-08 2:55 
GeneralRe: DoDataExchange doesn't like pointers ? Pin
cagespear17-Apr-08 19:52
cagespear17-Apr-08 19:52 
GeneralRe: DoDataExchange doesn't like pointers ? Pin
David Crow18-Apr-08 3:24
David Crow18-Apr-08 3:24 
GeneralRe: DoDataExchange doesn't like pointers ? Pin
cagespear18-Apr-08 18:26
cagespear18-Apr-08 18:26 
AnswerRe: DoDataExchange doesn't like pointers ? Pin
Hamid_RT17-Apr-08 6:44
Hamid_RT17-Apr-08 6:44 
QuestionHow to run another object from another project Pin
kanekcwu16-Apr-08 5:15
kanekcwu16-Apr-08 5:15 
AnswerRe: How to run another object from another project Pin
CPallini16-Apr-08 5:42
mveCPallini16-Apr-08 5:42 
GeneralRe: How to run another object from another project Pin
kanekcwu16-Apr-08 15:33
kanekcwu16-Apr-08 15:33 
GeneralRe: How to run another object from another project Pin
Hamid_RT17-Apr-08 6:43
Hamid_RT17-Apr-08 6:43 
GeneralRe: How to run another object from another project Pin
David Crow18-Apr-08 3:26
David Crow18-Apr-08 3:26 
AnswerRe: How to run another object from another project Pin
Nathan Holt at EMOM16-Apr-08 10:30
Nathan Holt at EMOM16-Apr-08 10:30 

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.