Click here to Skip to main content
15,891,951 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Generalvec[0] vs. vec.front() Pin
Johann Gerell29-Aug-04 23:36
Johann Gerell29-Aug-04 23:36 
GeneralRe: vec[0] vs. vec.front() Pin
Joaquín M López Muñoz29-Aug-04 23:54
Joaquín M López Muñoz29-Aug-04 23:54 
QuestionCan SCROLLBAR be superclassed? Pin
retinoscopy26-Aug-04 16:23
retinoscopy26-Aug-04 16:23 
AnswerRe: Can SCROLLBAR be superclassed? Pin
Jörgen Sigvardsson27-Aug-04 11:05
Jörgen Sigvardsson27-Aug-04 11:05 
GeneralRe: Can SCROLLBAR be superclassed? Pin
retinoscopy29-Aug-04 14:46
retinoscopy29-Aug-04 14:46 
GeneralRe: Can SCROLLBAR be superclassed? Pin
retinoscopy29-Aug-04 15:11
retinoscopy29-Aug-04 15:11 
GeneralRe: Can SCROLLBAR be superclassed? Pin
Jörgen Sigvardsson29-Aug-04 21:12
Jörgen Sigvardsson29-Aug-04 21:12 
GeneralC++ Class using STL - File IO Pin
AssemblySoft26-Aug-04 2:49
AssemblySoft26-Aug-04 2:49 
Hi I've basically created a Class called a Session which uses the STL <vector> container to Add 'Jobs objects'. The Job objects add further record objects.

The class as it stands is working fine.

What i want is to write the Session object to a file.
then the next time the app starts i want to read back in the class data from the file.

What i've tried:
1:
I've played with File Mapping, and it seems fine with structures but when i try it with my class using STL, it falls over.
2:
ofstream using the binary flag. - this seems to write it away ok but i have real trouble reading it back in.

Have you had any experience writing a class object to a file that uses the STL?D'Oh! | :doh:

thanks in advance

Carl



Assemblysoft.com
GeneralRe: C++ Class using STL - File IO Pin
Nitron26-Aug-04 5:04
Nitron26-Aug-04 5:04 
GeneralRe: C++ Class using STL - File IO Pin
AssemblySoft26-Aug-04 5:23
AssemblySoft26-Aug-04 5:23 
GeneralRe: C++ Class using STL - File IO Pin
Nitron26-Aug-04 5:28
Nitron26-Aug-04 5:28 
GeneralRe: C++ Class using STL - File IO Pin
AssemblySoft26-Aug-04 5:43
AssemblySoft26-Aug-04 5:43 
GeneralRe: C++ Class using STL - File IO Pin
Nitron26-Aug-04 5:45
Nitron26-Aug-04 5:45 
GeneralRe: C++ Class using STL - File IO Pin
AssemblySoft26-Aug-04 5:51
AssemblySoft26-Aug-04 5:51 
GeneralRe: C++ Class using STL - File IO Pin
Nitron26-Aug-04 5:54
Nitron26-Aug-04 5:54 
GeneralRe: C++ Class using STL - File IO Pin
AssemblySoft26-Aug-04 6:10
AssemblySoft26-Aug-04 6:10 
GeneralRe: C++ Class using STL - File IO Pin
Todd Smith7-Sep-04 12:18
Todd Smith7-Sep-04 12:18 
GeneralRe: C++ Class using STL - File IO Pin
AssemblySoft7-Sep-04 23:28
AssemblySoft7-Sep-04 23:28 
Generalcreate client side cookie from .exe (atl code) Pin
sas222225-Aug-04 10:35
sas222225-Aug-04 10:35 
GeneralRe: create client side cookie from .exe (atl code) Pin
Michael Dunn25-Aug-04 10:55
sitebuilderMichael Dunn25-Aug-04 10:55 
GeneralRe: create client side cookie from .exe (atl code) Pin
sas222225-Aug-04 11:00
sas222225-Aug-04 11:00 
GeneralDesign question (working with ATL OLE DB classes) Pin
CherezZaboro25-Aug-04 7:36
CherezZaboro25-Aug-04 7:36 
GeneralNeed help... Can the Dialog based MFC application be converted into an ATL application Pin
zubairyounas24-Aug-04 23:11
zubairyounas24-Aug-04 23:11 
GeneralHeads up: WTL 7.1 CImageList Pin
Jörgen Sigvardsson23-Aug-04 9:15
Jörgen Sigvardsson23-Aug-04 9:15 
GeneralRe: Heads up: WTL 7.1 CImageList Pin
Stuart Dootson23-Aug-04 14:18
professionalStuart Dootson23-Aug-04 14:18 

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.