Click here to Skip to main content
15,893,564 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: help Pin
_AnsHUMAN_ 9-May-06 21:57
_AnsHUMAN_ 9-May-06 21:57 
AnswerRe: help Pin
LittleYellowBird9-May-06 22:00
LittleYellowBird9-May-06 22:00 
GeneralRe: help Pin
subikchya19-May-06 6:47
subikchya19-May-06 6:47 
AnswerRe: help Pin
Aqueel9-May-06 22:34
Aqueel9-May-06 22:34 
AnswerRe: help Pin
Maxwell Chen9-May-06 22:51
Maxwell Chen9-May-06 22:51 
GeneralRe: help Pin
Hamid_RT9-May-06 23:54
Hamid_RT9-May-06 23:54 
GeneralRe: help Pin
Maxwell Chen10-May-06 0:13
Maxwell Chen10-May-06 0:13 
QuestionSymbol Already defined... Pin
Polite Programmer9-May-06 20:50
Polite Programmer9-May-06 20:50 
I am new to VC++ and MFC and not very much strong on it... I am having this problem.
I have a dialog application which contains a ListView control. I want to have the column names in Urdu. so here what I do.

TCHAR szCol7[] = {0x6A9, 0x644, 0x20, 0x646, 0x642, 0x637, 0x6C1, 0x20, 0x62C, 0x627, 0x62A} ;


As my Dialog class, UrduAppDlg contains the ListView contorl, what I do is that place the above mentioned defination of Unicode string in UrduAppDlg.h file before the clas defination... Right? So far so good... But when I build the solution, I get the following error



UrduTextAnalyzer error LNK2005: "wchar_t * szCol7" (?szCol7@@3PA_WA) already defined in UrduTextAnalyzer.obj


But placing the same defination in UrduTextDlg.cpp does not create any problems and I get my job done... Please tell me what this phenomen is and why? Where should I put such data like col names? I cannot use resource compiler I think becuase Its not Unicode compatible I think... Please guide me in this regard.

Mohsin




Polite Programmer


More Object Oriented then C#
AnswerRe: Symbol Already defined... Pin
Nibu babu thomas9-May-06 20:56
Nibu babu thomas9-May-06 20:56 
AnswerRe: Symbol Already defined... Pin
Stephen Hewitt9-May-06 21:02
Stephen Hewitt9-May-06 21:02 
AnswerRe: Symbol Already defined... Pin
Hamid_RT9-May-06 21:09
Hamid_RT9-May-06 21:09 
GeneralRe: Symbol Already defined... Pin
Stephen Hewitt9-May-06 21:19
Stephen Hewitt9-May-06 21:19 
GeneralRe: Symbol Already defined... Pin
Hamid_RT9-May-06 22:05
Hamid_RT9-May-06 22:05 
GeneralRe: Symbol Already defined... Pin
Polite Programmer10-May-06 0:39
Polite Programmer10-May-06 0:39 
GeneralRe: Symbol Already defined... Pin
Justin Tay10-May-06 16:09
Justin Tay10-May-06 16:09 
GeneralRe: Symbol Already defined... Pin
Stephen Hewitt10-May-06 21:50
Stephen Hewitt10-May-06 21:50 
QuestionDiable Restore Button Pin
vinod.sankuthodi9-May-06 20:46
vinod.sankuthodi9-May-06 20:46 
AnswerRe: Disable Restore Button Pin
Nibu babu thomas9-May-06 21:14
Nibu babu thomas9-May-06 21:14 
QuestionOPC connection Pin
Anu_Bala9-May-06 20:41
Anu_Bala9-May-06 20:41 
QuestionAtlAdvise with IE hangs Pin
rana749-May-06 20:38
rana749-May-06 20:38 
AnswerRe: Accessing global address book from outlook using c# Pin
Cedric Moonen9-May-06 20:33
Cedric Moonen9-May-06 20:33 
QuestionStyle in Splitter Pin
RockyJames9-May-06 19:50
RockyJames9-May-06 19:50 
Question2 process Pin
VinayCool9-May-06 19:25
VinayCool9-May-06 19:25 
AnswerRe: 2 process Pin
Ganesh_T9-May-06 19:35
Ganesh_T9-May-06 19:35 
GeneralRe: 2 process Pin
VinayCool9-May-06 19:38
VinayCool9-May-06 19:38 

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.