Click here to Skip to main content
15,916,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: TCP/IP problems Pin
Albert Holguin5-Feb-12 8:42
professionalAlbert Holguin5-Feb-12 8:42 
GeneralRe: TCP/IP problems Pin
ForNow5-Feb-12 12:14
ForNow5-Feb-12 12:14 
GeneralRe: TCP/IP problems Pin
Albert Holguin5-Feb-12 13:46
professionalAlbert Holguin5-Feb-12 13:46 
GeneralRe: TCP/IP problems Pin
ForNow5-Feb-12 16:05
ForNow5-Feb-12 16:05 
Questionsystem phisycal drive Pin
RomTibi4-Feb-12 6:15
RomTibi4-Feb-12 6:15 
AnswerRe: system phisycal drive Pin
Rajesh R Subramanian4-Feb-12 8:15
professionalRajesh R Subramanian4-Feb-12 8:15 
GeneralRe: system phisycal drive Pin
RomTibi5-Feb-12 2:04
RomTibi5-Feb-12 2:04 
GeneralRe: system phisycal drive Pin
Jochen Arndt5-Feb-12 3:00
professionalJochen Arndt5-Feb-12 3:00 
GeneralRe: system phisycal drive Pin
RomTibi5-Feb-12 3:12
RomTibi5-Feb-12 3:12 
GeneralRe: system phisycal drive Pin
Jochen Arndt5-Feb-12 3:25
professionalJochen Arndt5-Feb-12 3:25 
GeneralRe: system phisycal drive Pin
RomTibi5-Feb-12 4:31
RomTibi5-Feb-12 4:31 
GeneralRe: system phisycal drive Pin
parths5-Feb-12 20:01
parths5-Feb-12 20:01 
GeneralRe: system phisycal drive Pin
Jochen Arndt5-Feb-12 22:43
professionalJochen Arndt5-Feb-12 22:43 
AnswerRe: system phisycal drive Pin
«_Superman_»4-Feb-12 17:20
professional«_Superman_»4-Feb-12 17:20 
AnswerRe: system phisycal drive Pin
RomTibi14-Feb-12 17:57
RomTibi14-Feb-12 17:57 
QuestionSet window position Pin
_Flaviu4-Feb-12 5:34
_Flaviu4-Feb-12 5:34 
AnswerRe: Set window position Pin
Richard Andrew x644-Feb-12 10:57
professionalRichard Andrew x644-Feb-12 10:57 
GeneralRe: Set window position Pin
_Flaviu4-Feb-12 21:33
_Flaviu4-Feb-12 21:33 
AnswerRe: Set window position Pin
Chuck O'Toole5-Feb-12 4:57
Chuck O'Toole5-Feb-12 4:57 
GeneralRe: Set window position Pin
_Flaviu5-Feb-12 20:30
_Flaviu5-Feb-12 20:30 
QuestionGetter and setter style class implementation in VC++ Pin
Member 78851053-Feb-12 19:23
Member 78851053-Feb-12 19:23 
AnswerRe: Getter and setter style class implementation in VC++ Pin
Albert Holguin3-Feb-12 21:17
professionalAlbert Holguin3-Feb-12 21:17 
The problem is that you're making the objects of class saveclass as stack variables, meaning they will be deleted when they're out of scope (i.e. at the end of the function where you called them).

You have a couple options:
0. If those two classes are controlled from a single place, you can place your saveclass object there and just pass the pointer to it to the classes that use it. This allows you to have multiple saveclass objects independent of one another.
1. You can make the saveclass storage variables be static, meaning they're independent of instance. If you do this, you can use your calls as you have them in your code, you'll just have to initialize your static variables outside of the class methods.
GeneralRe: Getter and setter style class implementation in VC++ Pin
Member 78851053-Feb-12 22:19
Member 78851053-Feb-12 22:19 
AnswerRe: Getter and setter style class implementation in VC++ Pin
Albert Holguin4-Feb-12 8:08
professionalAlbert Holguin4-Feb-12 8:08 
QuestionMessage for CASynsocket::OnConnect Pin
ForNow3-Feb-12 10:55
ForNow3-Feb-12 10:55 

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.