Click here to Skip to main content
15,906,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionabout dialog color? Pin
vividtang24-Jun-04 9:19
vividtang24-Jun-04 9:19 
AnswerRe: about dialog color? Pin
Arman S.26-Apr-07 2:45
Arman S.26-Apr-07 2:45 
Questionabout dialog color? Pin
vividtang24-Jun-04 9:10
vividtang24-Jun-04 9:10 
AnswerRe: about dialog color? Pin
User 665824-Jun-04 9:12
User 665824-Jun-04 9:12 
Questionhow to cast cstring into long? Pin
vividtang24-Jun-04 9:09
vividtang24-Jun-04 9:09 
AnswerRe: how to cast cstring into long? Pin
User 665824-Jun-04 9:10
User 665824-Jun-04 9:10 
AnswerRe: how to cast cstring into long? Pin
Michael Dunn24-Jun-04 12:35
sitebuilderMichael Dunn24-Jun-04 12:35 
GeneralNewbee: VC++6 and WinXP Problem Pin
otrcomm24-Jun-04 7:46
otrcomm24-Jun-04 7:46 
Hello,

I am very new to VC++6 and have a problem that is driving me crazy.

I have class defined as so:

#define True 1
#define False 0

#ifndef CLASSIFER_H_INCLUDED__
#define CLASSIFER_H_INCLUDED__

class CClassifier
{
public:

//--------------------------------------------------------------------------
// constructor
//--------------------------------------------------------------------------
CClassifier
(
LPCTSTR szCommand,
CEdit *pEdit,
LPCTSTR szCurrentDirectory = NULL
);

//--------------------------------------------------------------------------
// destructor
//--------------------------------------------------------------------------
virtual ~CClassifier();

//--------------------------------------------------------------------------
// public member functions
//--------------------------------------------------------------------------
// virtual void Run();
virtual void Run(CString& cfn);
virtual void Stop();
...

I do some processing in the Run function, and eventually have a CString variable called 'classification' that gets assigned to 'cfn' before I return.

Now, the problem is in WinXP, when I try to use an AfxMessageBox to have a debug look at the value of 'classification' inside CClassifier.Run, i.e.,

text.Format(_T("Inside Classifier.Run\nclassification = %s"),classification);
AfxMessageBox(text);

the message box fires, but 'text' has no value. Under Win2k, it works fine, just not undet WinXP.

I call the Run function like so:

m_pClassify = new CClassifier((LPTSTR)(LPCTSTR)FileBuf, &m_EditOutput);

m_pClassify->Run(classified);

where FileBuf is a CString.

The return value 'classified' does not get a value under WinXP, but it does under Win2K.

This is driving me crazy and holding up progress on my project, so I really would appreciate some help with this.


Thanks,
Murrah Boswell
GeneralRe: Newbee: VC++6 and WinXP Problem Pin
Erik Funkenbusch24-Jun-04 13:39
Erik Funkenbusch24-Jun-04 13:39 
GeneralRe: Newbee: VC++6 and WinXP Problem Pin
otrcomm24-Jun-04 18:06
otrcomm24-Jun-04 18:06 
GeneralRe: Newbee: VC++6 and WinXP Problem Pin
Erik Funkenbusch24-Jun-04 19:04
Erik Funkenbusch24-Jun-04 19:04 
Generalopen new ViewForm Pin
JabraJabra24-Jun-04 7:40
JabraJabra24-Jun-04 7:40 
Questionwhat is the relationship? Pin
Lyndonguo24-Jun-04 7:12
Lyndonguo24-Jun-04 7:12 
AnswerRe: what is the relationship? Pin
David Crow24-Jun-04 10:30
David Crow24-Jun-04 10:30 
GeneralRe: what is the relationship? Pin
Lyndonguo24-Jun-04 16:27
Lyndonguo24-Jun-04 16:27 
GeneralThe safest and best Encryption Algorithmus Pin
Anonymous24-Jun-04 6:22
Anonymous24-Jun-04 6:22 
GeneralRe: The safest and best Encryption Algorithmus Pin
David Crow24-Jun-04 6:41
David Crow24-Jun-04 6:41 
GeneralRe: The safest and best Encryption Algorithmus Pin
Henry miller24-Jun-04 8:51
Henry miller24-Jun-04 8:51 
GeneralMFC Appwizard problem Pin
JabraJabra24-Jun-04 6:02
JabraJabra24-Jun-04 6:02 
GeneralRe: MFC Appwizard problem Pin
David Crow24-Jun-04 6:39
David Crow24-Jun-04 6:39 
GeneralRe: MFC Appwizard problem Pin
JabraJabra24-Jun-04 6:46
JabraJabra24-Jun-04 6:46 
GeneralHelp on closesocket() Pin
KellyR24-Jun-04 5:39
KellyR24-Jun-04 5:39 
GeneralRe: Help on closesocket() Pin
David Crow24-Jun-04 6:00
David Crow24-Jun-04 6:00 
GeneralRe: Help on closesocket() Pin
gamitech24-Jun-04 10:27
gamitech24-Jun-04 10:27 
GeneralRe: Help on closesocket() Pin
palbano24-Jun-04 11:45
palbano24-Jun-04 11:45 

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.