Click here to Skip to main content
14,695,112 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
QuestionCalling python function from c++ Pin
Shohel hasan5-May-19 0:24
MemberShohel hasan5-May-19 0:24 
AnswerRe: Calling python function from c++ Pin
Victor Nijegorodov5-May-19 1:35
MemberVictor Nijegorodov5-May-19 1:35 
AnswerRe: Calling python function from c++ Pin
Richard MacCutchan5-May-19 2:49
mveRichard MacCutchan5-May-19 2:49 
AnswerRe: Calling python function from c++ Pin
CPallini5-May-19 10:54
mveCPallini5-May-19 10:54 
QuestionHas C++ ever considered XML style namespaces? Pin
david321729-Apr-19 20:51
Memberdavid321729-Apr-19 20:51 
AnswerRe: Has C++ ever considered XML style namespaces? Pin
Joe Woodbury29-Apr-19 21:12
professionalJoe Woodbury29-Apr-19 21:12 
AnswerRe: Has C++ ever considered XML style namespaces? Pin
Stefan_Lang2-May-19 3:10
mveStefan_Lang2-May-19 3:10 
GeneralRe: Has C++ ever considered XML style namespaces? Pin
CPallini3-May-19 1:05
mveCPallini3-May-19 1:05 
GeneralRe: Has C++ ever considered XML style namespaces? Pin
Stefan_Lang3-May-19 4:58
mveStefan_Lang3-May-19 4:58 
GeneralRe: Has C++ ever considered XML style namespaces? Pin
CPallini3-May-19 5:23
mveCPallini3-May-19 5:23 
GeneralRe: Has C++ ever considered XML style namespaces? Pin
Victor Nijegorodov3-May-19 5:54
MemberVictor Nijegorodov3-May-19 5:54 
GeneralRe: Has C++ ever considered XML style namespaces? Pin
CPallini3-May-19 6:15
mveCPallini3-May-19 6:15 
GeneralRe: Has C++ ever considered XML style namespaces? Pin
Victor Nijegorodov3-May-19 9:11
MemberVictor Nijegorodov3-May-19 9:11 
GeneralRe: Has C++ ever considered XML style namespaces? Pin
Stefan_Lang6-May-19 5:41
mveStefan_Lang6-May-19 5:41 
QuestionMFC Top Level menu position. Pin
Maximilien29-Apr-19 8:50
MemberMaximilien29-Apr-19 8:50 
AnswerRe: MFC Top Level menu position. Pin
leon de boer1-May-19 1:13
Memberleon de boer1-May-19 1:13 
QuestionImage display problem in listcontrol Pin
tianzhili439925-Apr-19 17:50
Membertianzhili439925-Apr-19 17:50 
The code can correctly display the bmp image that comes with the IDE, but can't display the image I added.

The IDE is visual studio 2012 and I use mfc to display bmp pictures.

This is the first piece of code in OnInitDialog():

static CImageList imgList;
imgList.Create(48,48,ILC_COLOR32,1,1);
imgList.Add(AfxGetApp()->LoadIcon(IDR_MAINFRAME));
m_List.SetImageList(&imgList,LVSIL_NORMAL);

m_List.InsertItem(0,_T("1th Test item"));


and the result of debug ——able to display the picture

while the second piece of code in OnInitDialog():

static CImageList imgList;
imgList.Create(40,48,ILC_COLOR32,1,1);
imgList.Add(AfxGetApp()->LoadIcon(IDB_BITMAP1));
m_List.SetImageList(&imgList,LVSIL_NORMAL);

m_List.InsertItem(0,_T("1th Test item"));


and the result of debug ——unable to display the picture,only blanks are displayed.

I am really sorry that I am a new man here and I do not know how to stick debug screenshots here.
AnswerRe: Image display problem in listcontrol Pin
Victor Nijegorodov25-Apr-19 22:07
MemberVictor Nijegorodov25-Apr-19 22:07 
GeneralRe: Image display problem in listcontrol Pin
tianzhili439925-Apr-19 23:29
Membertianzhili439925-Apr-19 23:29 
GeneralRe: Image display problem in listcontrol Pin
Victor Nijegorodov26-Apr-19 3:03
MemberVictor Nijegorodov26-Apr-19 3:03 
QuestionConversion from- C++ to C-language < free(): invalid size > Pin
zak10025-Apr-19 10:14
Memberzak10025-Apr-19 10:14 
AnswerRe: Conversion from- C++ to C-language < free(): invalid size > Pin
k505425-Apr-19 11:05
mvek505425-Apr-19 11:05 
AnswerRe: Conversion from- C++ to C-language < free(): invalid size > Pin
John R. Shaw26-Apr-19 10:19
MemberJohn R. Shaw26-Apr-19 10:19 
GeneralRe: Conversion from- C++ to C-language < free(): invalid size > Pin
zak10026-Apr-19 11:22
Memberzak10026-Apr-19 11:22 
GeneralRe: Conversion from- C++ to C-language < free(): invalid size > Pin
John R. Shaw26-Apr-19 13:31
MemberJohn R. Shaw26-Apr-19 13:31 

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.