Click here to Skip to main content
15,918,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Where is classwizard in Visual C++.NET ? Pin
Wizard_0116-Jan-02 3:00
Wizard_0116-Jan-02 3:00 
GeneralSysmenu Pin
Rickard Andersson2016-Jan-02 2:05
Rickard Andersson2016-Jan-02 2:05 
QuestionHow to send files through winsock Pin
Kuniva16-Jan-02 1:26
Kuniva16-Jan-02 1:26 
AnswerRe: How to send files through winsock Pin
Joao Vaz16-Jan-02 4:04
Joao Vaz16-Jan-02 4:04 
GeneralURGENT Help Required Pin
James Spibey16-Jan-02 1:19
James Spibey16-Jan-02 1:19 
GeneralRe: URGENT Help Required Pin
Phil.Benson16-Jan-02 1:31
professionalPhil.Benson16-Jan-02 1:31 
GeneralRe: URGENT Help Required Pin
James Spibey16-Jan-02 1:36
James Spibey16-Jan-02 1:36 
GeneralRe: URGENT Help Required Pin
Matt Gullett16-Jan-02 2:05
Matt Gullett16-Jan-02 2:05 
The best way is to have a method of your class expose the variable (ie. Set/Get).

Also, it could well be that you are corrupting your memory in an unexpected way. I would place a DWORD value around the BOOL value like below.

DWORD dwTest1;
BOOL bValue;
DWORD dwTest2;

Then when I initialized the bValue I would also initialize the dwTest1 and dwTest2 to some unlikely value.

bValue = TRUE;
dwTest1 = 0xfefe;
dwTest2 = 0xfefe;

The other thing you can do is add 2 data members to the class one static and one not static.

static int iStartingPoint;
int iPointOfStart;

Initialize iStartingPoint to zero.
Then in your constructor, set iPointOfStart = iStartingPoint and increment iStartingPoint.

When you check the value of bValue you will 1) know if memory is getting overwritten by checking dwTest1 and dwTest2 and you will know if you are working with the same object you were working with before (check iPointOfStart}

Just my $0.02.

Thanks,

Matt Gullett

GeneralRe: URGENT Help Required Pin
James Spibey16-Jan-02 2:54
James Spibey16-Jan-02 2:54 
GeneralFIXED WOO-HOO Pin
James Spibey16-Jan-02 3:03
James Spibey16-Jan-02 3:03 
GeneralRe: FIXED WOO-HOO Pin
Matt Gullett16-Jan-02 3:33
Matt Gullett16-Jan-02 3:33 
GeneralRe: URGENT Help Required Pin
Tim Smith16-Jan-02 2:13
Tim Smith16-Jan-02 2:13 
GeneralRe: URGENT Help Required Pin
James Spibey16-Jan-02 2:26
James Spibey16-Jan-02 2:26 
GeneralSetting Control Focus Within Property Sheet Pin
John Clump16-Jan-02 0:09
John Clump16-Jan-02 0:09 
GeneralRe: Setting Control Focus Within Property Sheet Pin
Fred D.16-Jan-02 0:34
Fred D.16-Jan-02 0:34 
GeneralRe: Setting Control Focus Within Property Sheet Pin
Roger Allen16-Jan-02 3:17
Roger Allen16-Jan-02 3:17 
GeneralEnumerating All Visible Printers Pin
jerry0davis15-Jan-02 23:43
jerry0davis15-Jan-02 23:43 
GeneralRe: Enumerating All Visible Printers Pin
567890123416-Jan-02 0:51
567890123416-Jan-02 0:51 
GeneralRe: Enumerating All Visible Printers Pin
jerry0davis16-Jan-02 3:34
jerry0davis16-Jan-02 3:34 
GeneralRe: Enumerating All Visible Printers Pin
l a u r e n16-Jan-02 2:29
l a u r e n16-Jan-02 2:29 
GeneralRe: Enumerating All Visible Printers Pin
jerry0davis16-Jan-02 2:35
jerry0davis16-Jan-02 2:35 
QuestionMs Word Automation, is this possible or expecting too much from Automation ? Pin
Braulio Dez15-Jan-02 23:29
Braulio Dez15-Jan-02 23:29 
QuestionMP3 Playlist format (*.pls) ?? Pin
Phil.Benson15-Jan-02 23:13
professionalPhil.Benson15-Jan-02 23:13 
AnswerRe: MP3 Playlist format (*.pls) ?? Pin
Fred D.15-Jan-02 23:58
Fred D.15-Jan-02 23:58 
GeneralRe: MP3 Playlist format (*.pls) ?? Pin
Phil.Benson16-Jan-02 1:00
professionalPhil.Benson16-Jan-02 1:00 

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.