Click here to Skip to main content
16,011,711 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Richeditctrl Pin
Hamid_RT9-Sep-06 0:31
Hamid_RT9-Sep-06 0:31 
GeneralRe: Richeditctrl [modified] Pin
muravi9-Sep-06 1:38
muravi9-Sep-06 1:38 
GeneralRe: Richeditctrl Pin
Hamid_RT11-Sep-06 6:15
Hamid_RT11-Sep-06 6:15 
Questionhow to detect mouse clicks in the child window created by MDI ? Pin
bengz8-Sep-06 23:00
bengz8-Sep-06 23:00 
AnswerRe: how to detect mouse clicks in the child window created by MDI ? Pin
prasad_som8-Sep-06 23:08
prasad_som8-Sep-06 23:08 
GeneralRe: how to detect mouse clicks in the child window created by MDI ? Pin
bengz9-Sep-06 1:32
bengz9-Sep-06 1:32 
GeneralRe: how to detect mouse clicks in the child window created by MDI ? Pin
bengz9-Sep-06 3:19
bengz9-Sep-06 3:19 
QuestionResource in VC++ (fatal error when adding new resource) Pin
sawerr8-Sep-06 22:30
sawerr8-Sep-06 22:30 
Hi Please look at this my VS 2005 screenshot.
I am trying to learn resource in VC++.
http://img109.imageshack.us/img109/8540/resourcevh8.jpg

Resources are in VC++ differnet than C#.I see that it includes GUI tools.So i want to see that resources are loaded by
 <br />
wcex.lpszMenuName	= MAKEINTRESOURCE(IDR_MENU1);<br />
or<br />
wcex.hIconSm		= LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL));<br />

So i think that if i include my new resorces files to my project i can select what i want.I added header files.
<br />
#include "resource.h"<br />
#include "resource1.h" <br />
#include "resource2.h"<br />


I hope i don't make mistake yet.

But VC++ gives same names to resources.For example(in screenshot)
i added as.rc and Name.rc
It gives same name to my resources. for example IDR_MENU1 are same same both as and name.

So how can i add resource to my solution that i can select whatever i want and hasn't got same name.What is wrong here?How can VC++ understand which one i include
for example i write
wcex.lpszMenuName = MAKEINTRESOURCE(IDR_MENU1);
Is IDR_MENU1 belongs to Name.rc or as.rc?SOmething wrong here but ı don't understand and confused about adding new resources and using it.

Compiler's error is :
CVTRES : fatal error CVT1100: duplicate resource. type:ICON, name:1, language:0x041F
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

I am looking for your answers.
Thanks
AnswerRe: Resource in VC++ (fatal error when adding new resource) Pin
Waldermort8-Sep-06 22:50
Waldermort8-Sep-06 22:50 
GeneralRe: Resource in VC++ (fatal error when adding new resource) Pin
sawerr8-Sep-06 23:25
sawerr8-Sep-06 23:25 
QuestionBaloon ToolTips in Task Basr Pin
zubair_ahmed8-Sep-06 22:06
zubair_ahmed8-Sep-06 22:06 
AnswerRe: Baloon ToolTips in Task Basr Pin
Hamid_RT8-Sep-06 22:41
Hamid_RT8-Sep-06 22:41 
GeneralRe: Baloon ToolTips in Task Basr Pin
zubair_ahmed8-Sep-06 23:44
zubair_ahmed8-Sep-06 23:44 
GeneralRe: Baloon ToolTips in Task Basr Pin
Hamid_RT9-Sep-06 0:39
Hamid_RT9-Sep-06 0:39 
AnswerRe: Baloon ToolTips in Task Basr Pin
Waldermort8-Sep-06 23:03
Waldermort8-Sep-06 23:03 
GeneralRe: Baloon ToolTips in Task Basr Pin
zubair_ahmed8-Sep-06 23:40
zubair_ahmed8-Sep-06 23:40 
GeneralRe: Baloon ToolTips in Task Basr Pin
Waldermort9-Sep-06 1:38
Waldermort9-Sep-06 1:38 
QuestionError in message box. Pin
Anu_Bala8-Sep-06 21:44
Anu_Bala8-Sep-06 21:44 
AnswerRe: Error in message box. Pin
Hamid_RT8-Sep-06 22:41
Hamid_RT8-Sep-06 22:41 
GeneralRe: Error in message box. Pin
Anu_Bala10-Sep-06 18:50
Anu_Bala10-Sep-06 18:50 
GeneralRe: Error in message box. Pin
Hamid_RT10-Sep-06 20:20
Hamid_RT10-Sep-06 20:20 
AnswerRe: Error in message box. Pin
Waldermort8-Sep-06 22:55
Waldermort8-Sep-06 22:55 
QuestionHelp about CComboBox Pin
kcynic8-Sep-06 21:37
kcynic8-Sep-06 21:37 
AnswerRe: Help about CComboBox Pin
Hamid_RT8-Sep-06 22:57
Hamid_RT8-Sep-06 22:57 
GeneralRe: Help about CComboBox Pin
kcynic9-Sep-06 17:48
kcynic9-Sep-06 17:48 

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.