Click here to Skip to main content
15,888,600 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCan't write files with large filenames onto CD/DVD Pin
vijay_aroli25-Sep-07 9:39
vijay_aroli25-Sep-07 9:39 
AnswerRe: Can't write files with large filenames onto CD/DVD Pin
Jeremy Falcon25-Sep-07 10:44
professionalJeremy Falcon25-Sep-07 10:44 
GeneralRe: Can't write files with large filenames onto CD/DVD Pin
vijay_aroli25-Sep-07 10:53
vijay_aroli25-Sep-07 10:53 
QuestionDLL export library ( .lib file) Pin
act_x25-Sep-07 5:35
act_x25-Sep-07 5:35 
AnswerRe: DLL export library ( .lib file) Pin
Jeremy Falcon25-Sep-07 5:44
professionalJeremy Falcon25-Sep-07 5:44 
AnswerRe: DLL export library ( .lib file) Pin
DevMentor.org25-Sep-07 6:57
DevMentor.org25-Sep-07 6:57 
AnswerRe: DLL export library ( .lib file) Pin
VonHagNDaz25-Sep-07 10:56
VonHagNDaz25-Sep-07 10:56 
QuestionDumping values.. Pin
Eytukan25-Sep-07 5:11
Eytukan25-Sep-07 5:11 
I'm dumping values from an array to a file,
like
<br />
typedef int** _2dArray;<br />
_2dArray pIntArray[10];<br />

I can traverse through all the pointers in 'pIntArray' and make a call like
<br />
loop<br />
{<br />
fwrite((void*)&pIntArray,sizeof..,fp);<br />
}<br />

this will write down all the values every pointer in pIntArray is pointing too.
That's fine.

I had to include some more values while dumping these integers. Without thinking about it twice, I implemented a struct all accross like,
<br />
struct mystruct<br />
{<br />
  int myval1;<br />
  int myval2;<br />
  _2dArray* arr2D;<br />
}<br />
mystruct myst;<br />
myst.myval1 =10;<br />
myst.myval2 =20;<br />
myst.arr2D = [another-pointer-to-intpointers.]<br />

And made a stupid implementation like,
<br />
fwrite((void*)&myst,sizeof..,fp);<br />

Crap! This wont work cuz it's a pointer! it wouldn't be dumped with it's content. .. can someone help me out to get away with this design and still manage to dump it's content? sounds stupid, ok tell me what'd be your way to implement it? But please note, with a single stretch, I should be able to fetch all these values with an fread()




Jemmy : Deadline? Pfft, a real programmer eats deadlines for breakfast. :P

Mark: I thought real programmers ignored deadlines Sigh | :sigh:



Best wishes to Rexx[^]

AnswerRe: Dumping values.. Pin
Jeremy Falcon25-Sep-07 5:42
professionalJeremy Falcon25-Sep-07 5:42 
GeneralRe: Dumping values.. Pin
Mark Salsbery25-Sep-07 5:44
Mark Salsbery25-Sep-07 5:44 
GeneralRe: Dumping values.. Pin
Jeremy Falcon25-Sep-07 5:45
professionalJeremy Falcon25-Sep-07 5:45 
GeneralRe: Dumping values.. Pin
Eytukan25-Sep-07 6:18
Eytukan25-Sep-07 6:18 
GeneralRe: Dumping values.. Pin
Eytukan25-Sep-07 6:09
Eytukan25-Sep-07 6:09 
GeneralRe: Dumping values.. Pin
Jeremy Falcon25-Sep-07 6:12
professionalJeremy Falcon25-Sep-07 6:12 
GeneralRe: Dumping values.. Pin
Eytukan25-Sep-07 6:17
Eytukan25-Sep-07 6:17 
GeneralRe: Dumping values.. Pin
Jeremy Falcon25-Sep-07 6:18
professionalJeremy Falcon25-Sep-07 6:18 
GeneralRe: Dumping values.. Pin
toxcct25-Sep-07 7:02
toxcct25-Sep-07 7:02 
QuestionRe: Dumping values.. Pin
David Crow25-Sep-07 7:43
David Crow25-Sep-07 7:43 
AnswerRe: Dumping values.. [modified] Pin
Eytukan25-Sep-07 8:29
Eytukan25-Sep-07 8:29 
QuestionStuctures Pin
Jelle De Vos25-Sep-07 4:22
Jelle De Vos25-Sep-07 4:22 
AnswerWot dya say ?? Pin
toxcct25-Sep-07 4:27
toxcct25-Sep-07 4:27 
QuestionRe: Stuctures Pin
David Crow25-Sep-07 4:38
David Crow25-Sep-07 4:38 
AnswerRe: Stuctures Pin
Jelle De Vos25-Sep-07 4:56
Jelle De Vos25-Sep-07 4:56 
GeneralRe: Stuctures Pin
Eytukan25-Sep-07 5:41
Eytukan25-Sep-07 5:41 
GeneralRe: Stuctures Pin
Jelle De Vos25-Sep-07 8:59
Jelle De Vos25-Sep-07 8:59 

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.