Click here to Skip to main content
16,018,114 members

Comments by cnu reddy (Top 3 by date)

cnu reddy 6-Oct-14 11:36am View    
thanks for understanding my problem .
but how to create this temp file (should i use fopen() and create normal text file).
How to save it to disk(using serialization).

I want to save it to disk like some mdi document file(not like simple .txt file).


show me some sample code if possible.

cnu reddy 23-Sep-14 4:25am View    
thank u.

i know about CArchive, that it is used to serialize.
my doc file have serialize function .It is getting called during load and save .

I am storing data in linked list temporarily and passing it to CArchive's write() during save document.
But the size of the data i receive is not constant .So,i am using linked list to store data till data logging stopped.

while saving document i am passing linked list pointer to write() function .

As I am using dynamic memory allocation there is possibility of consuming all heap memory .

how to avoid this situation.Is there any other alternative method to store data during application running?

what is this .tmp file being generated in %tmp% folder,is this solution to my problem?
cnu reddy 31-Oct-12 10:04am View    
K.thank u.
I know how to add PropertyPages in PropertySheet.
I know how to add controls to PropertyPages of a PropertySheet.
But i want to add controls to propertysheet,and those controls should be common for all propertyPages of propertySheet,like OK APPLY and CANCEL.