Click here to Skip to main content
11,490,282 members (37,918 online)

C / C++ / MFC

 
GeneralRe: Pointer to object doesn't point to any thing !!!!!! Pin
sarvanik4-May-13 6:03
membersarvanik4-May-13 6:03 
GeneralRe: Pointer to object doesn't point to any thing !!!!!! Pin
sarvanik4-May-13 6:35
membersarvanik4-May-13 6:35 
GeneralRe: Pointer to object doesn't point to any thing !!!!!! Pin
CPallini4-May-13 11:05
mvpCPallini4-May-13 11:05 
QuestionIs there any way a C/C++ program can crash before main()? [modified] Pin
mbatra312-May-13 23:26
membermbatra312-May-13 23:26 
AnswerRe: Any situation where a program will fail to compile before coming to main in C++.? Pin
yoaz2-May-13 23:47
memberyoaz2-May-13 23:47 
GeneralRe: Any situation where a program will fail to compile before coming to main in C++.? Pin
mbatra313-May-13 0:10
membermbatra313-May-13 0:10 
GeneralRe: Any situation where a program will fail to compile before coming to main in C++.? Pin
Richard MacCutchan3-May-13 1:54
mvpRichard MacCutchan3-May-13 1:54 
AnswerRe: Is there any way a C/C++ program can crash before main()? Pin
pasztorpisti3-May-13 5:25
memberpasztorpisti3-May-13 5:25 
AnswerRe: Is there any way a C/C++ program can crash before main()? Pin
Member 100095883-May-13 5:48
memberMember 100095883-May-13 5:48 
AnswerRe: Is there any way a C/C++ program can crash before main()? [modified] Pin
Amarnath S3-May-13 6:04
memberAmarnath S3-May-13 6:04 
AnswerRe: Is there any way a C/C++ program can crash before main()? Pin
Vijjuuu.7-May-13 3:33
memberVijjuuu.7-May-13 3:33 
QuestionQuerries about DXF file Pin
hrishtech2-May-13 20:29
memberhrishtech2-May-13 20:29 
AnswerRe: Querries about DXF file Pin
Jonathan Davies3-May-13 2:41
memberJonathan Davies3-May-13 2:41 
QuestionHow to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
yogeshs2-May-13 20:04
memberyogeshs2-May-13 20:04 
Hello Friends

I am drawing Owner Draw Menu Icons.
For that I want to use Toolbar bmp images as Menu Item icons.

I used LoadImage to Find the Icons from Resources Like this

hIcon = (HICON)::LoadImage(::AfxGetResourceHandle(), resName, IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR | LR_SHARED);
 
And it is working fine. But for this I need to Define All new Icons with same name as MenuItem in resources.
That's, why I want to Load it from Toolbar bmp resources inspite of Icon Resources.
How can I load Image in same manner by name from Toolbar bmp ?

Any Help will be Appreciated.
Regards
Yogesh
AnswerRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
Coder Block2-May-13 20:31
memberCoder Block2-May-13 20:31 
GeneralRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
yogeshs2-May-13 20:45
memberyogeshs2-May-13 20:45 
GeneralRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
Coder Block2-May-13 20:51
memberCoder Block2-May-13 20:51 
GeneralRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
yogeshs2-May-13 21:38
memberyogeshs2-May-13 21:38 
AnswerRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
«_Superman_»2-May-13 20:53
member«_Superman_»2-May-13 20:53 
GeneralRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
yogeshs2-May-13 21:34
memberyogeshs2-May-13 21:34 
AnswerRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
Flaviu22-May-13 21:19
memberFlaviu22-May-13 21:19 
GeneralRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
yogeshs2-May-13 21:36
memberyogeshs2-May-13 21:36 
QuestionResizing dialog doesn't work if display changes Pin
Donguy19762-May-13 12:16
memberDonguy19762-May-13 12:16 
AnswerRe: Resizing dialog doesn't work if display changes Pin
«_Superman_»2-May-13 20:00
member«_Superman_»2-May-13 20:00 
GeneralRe: Resizing dialog doesn't work if display changes Pin
Donguy19763-May-13 5:13
memberDonguy19763-May-13 5:13 
GeneralRe: Resizing dialog doesn't work if display changes Pin
«_Superman_»5-May-13 20:50
member«_Superman_»5-May-13 20:50 
QuestionMFC: DIALOG_WIDE question Pin
econy2-May-13 7:52
memberecony2-May-13 7:52 
GeneralRe: MFC: DIALOG_WIDE question Pin
DavidCrow2-May-13 9:07
memberDavidCrow2-May-13 9:07 
QuestionStore pointers into CListCtrl [modified] Pin
Flaviu22-May-13 3:33
memberFlaviu22-May-13 3:33 
AnswerRe: Store pointers into CListCtrl Pin
DavidCrow2-May-13 4:06
memberDavidCrow2-May-13 4:06 
AnswerRe: Store pointers into CListCtrl Pin
«_Superman_»2-May-13 20:05
member«_Superman_»2-May-13 20:05 
GeneralRe: Store pointers into CListCtrl Pin
Flaviu22-May-13 21:23
memberFlaviu22-May-13 21:23 
QuestionRe: Store pointers into CListCtrl Pin
DavidCrow3-May-13 6:02
memberDavidCrow3-May-13 6:02 
AnswerRe: Store pointers into CListCtrl Pin
Flaviu27-May-13 20:31
memberFlaviu27-May-13 20:31 
GeneralRe: Store pointers into CListCtrl Pin
Flaviu23-May-13 3:27
memberFlaviu23-May-13 3:27 
QuestionMESSAGE MAP error Pin
mallews2-May-13 0:39
membermallews2-May-13 0:39 
AnswerRe: MESSAGE MAP error Pin
Jochen Arndt2-May-13 1:25
professionalJochen Arndt2-May-13 1:25 
GeneralRe: MESSAGE MAP error Pin
mallews2-May-13 2:27
membermallews2-May-13 2:27 
GeneralRe: MESSAGE MAP error Pin
Jochen Arndt2-May-13 2:39
professionalJochen Arndt2-May-13 2:39 
AnswerRe: MESSAGE MAP error Pin
Richard MacCutchan2-May-13 2:02
mvpRichard MacCutchan2-May-13 2:02 
GeneralExtending the C using preprocessor and other goodies - how do they interact? Pin
Vaclav_Sal1-May-13 6:34
memberVaclav_Sal1-May-13 6:34 
GeneralRe: Extending the C using preprocessor and other goodies - how do they interact? Pin
Richard MacCutchan1-May-13 7:02
mvpRichard MacCutchan1-May-13 7:02 
GeneralRe: Extending the C using preprocessor and other goodies - how do they interact? Pin
Vaclav_Sal1-May-13 10:13
memberVaclav_Sal1-May-13 10:13 
GeneralRe: Extending the C using preprocessor and other goodies - how do they interact? Pin
Richard MacCutchan1-May-13 22:00
mvpRichard MacCutchan1-May-13 22:00 
GeneralRe: Extending the C using preprocessor and other goodies - how do they interact? Pin
CDP18022-May-13 20:27
memberCDP18022-May-13 20:27 
GeneralRe: Extending the C using preprocessor and other goodies - how do they interact? Pin
Richard MacCutchan2-May-13 22:26
mvpRichard MacCutchan2-May-13 22:26 
GeneralRe: Extending the C using preprocessor and other goodies - how do they interact? Pin
H.Brydon1-May-13 7:34
memberH.Brydon1-May-13 7:34 
GeneralRe: Extending the C using preprocessor and other goodies - how do they interact? Pin
Vaclav_Sal1-May-13 10:04
memberVaclav_Sal1-May-13 10:04 
GeneralRe: Extending the C using preprocessor and other goodies - how do they interact? Pin
jschell1-May-13 9:39
memberjschell1-May-13 9:39 
GeneralRe: Extending the C using preprocessor and other goodies - how do they interact? Pin
Vaclav_Sal1-May-13 10:03
memberVaclav_Sal1-May-13 10:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 27 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid