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

C / C++ / MFC

 
AnswerRe: Hi!Development Operating System Pin
ThatsAlok21-May-09 18:25
ThatsAlok21-May-09 18:25 
Question_RecordSetPtr is not accessible Pin
pandit8421-May-09 6:49
pandit8421-May-09 6:49 
AnswerRe: _RecordSetPtr is not accessible Pin
Stuart Dootson21-May-09 8:38
professionalStuart Dootson21-May-09 8:38 
GeneralRe: _RecordSetPtr is not accessible Pin
led mike21-May-09 10:11
led mike21-May-09 10:11 
GeneralRe: _RecordSetPtr is not accessible Pin
Stuart Dootson21-May-09 10:21
professionalStuart Dootson21-May-09 10:21 
GeneralRe: _RecordSetPtr is not accessible Pin
led mike21-May-09 12:06
led mike21-May-09 12:06 
GeneralRe: _RecordSetPtr is not accessible Pin
pandit8421-May-09 20:37
pandit8421-May-09 20:37 
QuestionHow to get size in memory of STL <map> for use with memcpy ? Pin
Mike the Red21-May-09 4:22
Mike the Red21-May-09 4:22 
I'm trying to copy a STL to a memory mapped file, but I can't figure out how to get the actual size of the map to know how many bytes to copy. map::size only returns the number of items in the map, and the sizeof operator returns an impossibly small number.

I'm not sure it'll help, but my map is defined thusly:
struct struct_XFer {
	char		name[MAX_PATH];	// filename
	double		size;		// filesize
	double		transferred;	// bytes transferred
	COleDateTime	created;		// time the transfer record was created
	COleDateTime	modified;		// time the transfer record was last modified
};
map <int, struct_XFer> theMap;
typedef pair <int, struct_XFer>	XFer_Pair;

Confused | :confused: I've been struggling with this for several days... any help would be greatly appreciated!

-MZR
AnswerRe: How to get size in memory of STL &lt;map&gt; for use with memcpy ? Pin
CPallini21-May-09 4:39
mveCPallini21-May-09 4:39 
AnswerRe: How to get size in memory of STL &lt;map&gt; for use with memcpy ? Pin
Stuart Dootson21-May-09 4:39
professionalStuart Dootson21-May-09 4:39 
JokeThanks for the quick replies Pallini, Stuart... looks like I've got more work to do... -nt- Pin
Mike the Red21-May-09 5:07
Mike the Red21-May-09 5:07 
GeneralRe: Thanks for the quick replies Pallini, Stuart... looks like I've got more work to do... -nt- Pin
ThatsAlok21-May-09 18:27
ThatsAlok21-May-09 18:27 
Questionineed a source code before this friday Pin
senam200621-May-09 2:55
senam200621-May-09 2:55 
AnswerRe: ineed a source code before this friday Pin
Maximilien21-May-09 3:16
Maximilien21-May-09 3:16 
GeneralRe: ineed a source code before this friday Pin
senam200621-May-09 3:20
senam200621-May-09 3:20 
GeneralRe: ineed a source code before this friday Pin
Maximilien21-May-09 4:01
Maximilien21-May-09 4:01 
QuestionRe: ineed a source code before this friday Pin
David Crow21-May-09 3:22
David Crow21-May-09 3:22 
JokeRe: ineed a source code before this friday Pin
CPallini21-May-09 3:36
mveCPallini21-May-09 3:36 
JokeRe: ineed a source code before this friday Pin
Rajesh R Subramanian21-May-09 3:39
professionalRajesh R Subramanian21-May-09 3:39 
AnswerRe: ineed a source code before this friday Pin
led mike21-May-09 4:43
led mike21-May-09 4:43 
AnswerRe: ineed a source code before this friday Pin
jeron121-May-09 4:21
jeron121-May-09 4:21 
GeneralRe: ineed a source code before this friday Pin
molesworth21-May-09 4:31
molesworth21-May-09 4:31 
GeneralRe: ineed a source code before this friday Pin
jeron121-May-09 4:50
jeron121-May-09 4:50 
GeneralRe: ineed a source code before this friday Pin
CPallini21-May-09 7:04
mveCPallini21-May-09 7:04 
GeneralRe: ineed a source code before this friday Pin
bulg21-May-09 11:41
bulg21-May-09 11:41 

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.