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

C / C++ / MFC

 
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 
AnswerRe: Message for CASynsocket::OnConnect Pin
Albert Holguin3-Feb-12 11:20
professionalAlbert Holguin3-Feb-12 11:20 
QuestionUpdating the color of child Window Pin
cpp_prgmer3-Feb-12 9:39
cpp_prgmer3-Feb-12 9:39 
AnswerRe: Updating the color of child Window Pin
Albert Holguin3-Feb-12 10:41
professionalAlbert Holguin3-Feb-12 10:41 
AnswerRe: Updating the color of child Window Pin
«_Superman_»3-Feb-12 15:32
professional«_Superman_»3-Feb-12 15:32 
QuestionHow to use DeviceIoControl to access an external USB device from MFC Pin
StefanKittel3-Feb-12 5:37
StefanKittel3-Feb-12 5:37 
AnswerRe: How to use DeviceIoControl to access an external USB device from MFC Pin
Erudite_Eric3-Feb-12 6:29
Erudite_Eric3-Feb-12 6:29 
GeneralRe: How to use DeviceIoControl to access an external USB device from MFC Pin
StefanKittel3-Feb-12 6:46
StefanKittel3-Feb-12 6:46 
GeneralRe: How to use DeviceIoControl to access an external USB device from MFC Pin
Erudite_Eric4-Feb-12 4:32
Erudite_Eric4-Feb-12 4:32 
GeneralRe: How to use DeviceIoControl to access an external USB device from MFC Pin
StefanKittel4-Feb-12 4:49
StefanKittel4-Feb-12 4:49 
GeneralRe: How to use DeviceIoControl to access an external USB device from MFC Pin
Erudite_Eric4-Feb-12 22:42
Erudite_Eric4-Feb-12 22:42 
GeneralRe: How to use DeviceIoControl to access an external USB device from MFC Pin
StefanKittel5-Feb-12 10:20
StefanKittel5-Feb-12 10:20 
SuggestionRe: How to use DeviceIoControl to access an external USB device from MFC Pin
David Crow5-Feb-12 17:02
David Crow5-Feb-12 17:02 
Question"InvalidateRect" leaves dirty on screen Pin
transoft3-Feb-12 3:59
transoft3-Feb-12 3:59 
AnswerRe: "InvalidateRect" leaves dirty on screen Pin
Richard MacCutchan3-Feb-12 4:02
mveRichard MacCutchan3-Feb-12 4:02 

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.