Click here to Skip to main content
14,842,507 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Do you still develop by Visual C++ 6.0? Pin
bobi_zcl26-Jan-05 19:52
Memberbobi_zcl26-Jan-05 19:52 
AnswerRe: Do you still develop by Visual C++ 6.0? Pin
22491726-Jan-05 18:15
Member22491726-Jan-05 18:15 
AnswerRe: Do you still develop by Visual C++ 6.0? Pin
rwestgraham26-Jan-05 20:26
Memberrwestgraham26-Jan-05 20:26 
GeneralRe: Do you still develop by Visual C++ 6.0? Pin
bobi_zcl26-Jan-05 21:11
Memberbobi_zcl26-Jan-05 21:11 
GeneralRe: Do you still develop by Visual C++ 6.0? Pin
rwestgraham26-Jan-05 22:37
Memberrwestgraham26-Jan-05 22:37 
GeneralPS: Pin
rwestgraham26-Jan-05 22:59
Memberrwestgraham26-Jan-05 22:59 
Generallittle OLE DB question Pin
lisoft26-Jan-05 15:47
Memberlisoft26-Jan-05 15:47 
GeneralCString Problem - Should Be Simple Pin
JKallen26-Jan-05 12:35
MemberJKallen26-Jan-05 12:35 
I have been programming for years and thought I know my stuff. Apparently Not. this is a simple CString operation. I have done this many times and never had a problem. The following makes no sense.

//..............

CString asset_class;
CString asset_sub_class;
Object my_object;

asset_class = "Garden Tools";
asset_sub_class = my_object.GetName();
//The GetName function returns a CString containing "Power Tools"
//I know this because I have it on my watch list

m_header_1.SetWindowText("Category: " + asset_class);
m_header_2.SetWindowText("Sub Category: " + asset_sub_class);
m_header_3.SetWindowText(my_object.GetName());

//.........................

the control m_header_1 prints "Category: Garden Tools"
the control m_header_2 prints "Sub Category: "
the control m_header_3 prints "Garden Tools"

The m_header_2 control is not printing "Sub Category: Power tools"
Does anyone have any ideas why?

GeneralRe: CString Problem - Should Be Simple Pin
peter271326-Jan-05 13:01
Memberpeter271326-Jan-05 13:01 
GeneralRe: CString Problem - Should Be Simple Pin
JKallen26-Jan-05 13:04
MemberJKallen26-Jan-05 13:04 
GeneralRe: CString Problem - Should Be Simple Pin
Michael Dunn26-Jan-05 13:37
sitebuilderMichael Dunn26-Jan-05 13:37 
GeneralFriend Classes Pin
Ken Mazaika26-Jan-05 12:24
MemberKen Mazaika26-Jan-05 12:24 
GeneralRe: Friend Classes Pin
Christian Graus26-Jan-05 12:40
protectorChristian Graus26-Jan-05 12:40 
GeneralData Exchanges (and more) Pin
LighthouseJ26-Jan-05 11:35
MemberLighthouseJ26-Jan-05 11:35 
GeneralRe: Data Exchanges (and more) Pin
JKallen26-Jan-05 13:19
MemberJKallen26-Jan-05 13:19 
GeneralRe: Data Exchanges (and more) Pin
LighthouseJ26-Jan-05 16:51
MemberLighthouseJ26-Jan-05 16:51 
GeneralBitmap on Menu Bar Pin
DNFSB26-Jan-05 10:43
MemberDNFSB26-Jan-05 10:43 
GeneralRe: Bitmap on Menu Bar Pin
Michael Dunn26-Jan-05 13:40
sitebuilderMichael Dunn26-Jan-05 13:40 
GeneralRe: Bitmap on Menu Bar Pin
bobi_zcl26-Jan-05 22:11
Memberbobi_zcl26-Jan-05 22:11 
GeneralRe: Bitmap on Menu Bar Pin
DNFSB27-Jan-05 10:11
MemberDNFSB27-Jan-05 10:11 
Generalusing AfxMessageBox Pin
act_x26-Jan-05 9:53
Memberact_x26-Jan-05 9:53 
GeneralRe: using AfxMessageBox Pin
Tom Wright26-Jan-05 10:08
MemberTom Wright26-Jan-05 10:08 
GeneralRe: using AfxMessageBox Pin
rbid26-Jan-05 10:13
Memberrbid26-Jan-05 10:13 
GeneralRe: using AfxMessageBox Pin
David Crow26-Jan-05 10:23
MemberDavid Crow26-Jan-05 10:23 
GeneralRe: using AfxMessageBox Pin
act_x26-Jan-05 10:28
Memberact_x26-Jan-05 10:28 

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.