Click here to Skip to main content
15,891,431 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GDI+ Problem! Pin
KingsGambit22-Feb-10 22:18
KingsGambit22-Feb-10 22:18 
QuestionVC++ 2005, Creating checkboxes from an array Pin
Steven Foxton22-Feb-10 11:37
Steven Foxton22-Feb-10 11:37 
AnswerRe: VC++ 2005, Creating checkboxes from an array Pin
LunaticFringe22-Feb-10 13:50
LunaticFringe22-Feb-10 13:50 
AnswerRe: VC++ 2005, Creating checkboxes from an array Pin
Richard Andrew x6422-Feb-10 13:53
professionalRichard Andrew x6422-Feb-10 13:53 
GeneralRe: VC++ 2005, Creating checkboxes from an array Pin
Steven Foxton22-Feb-10 22:55
Steven Foxton22-Feb-10 22:55 
QuestionRe: VC++ 2005, Creating checkboxes from an array Pin
David Crow23-Feb-10 3:20
David Crow23-Feb-10 3:20 
AnswerRe: VC++ 2005, Creating checkboxes from an array Pin
LunaticFringe23-Feb-10 4:09
LunaticFringe23-Feb-10 4:09 
GeneralRe: VC++ 2005, Creating checkboxes from an array Pin
Steven Foxton23-Feb-10 6:59
Steven Foxton23-Feb-10 6:59 
Trying your answer out now LunaticFringe.
Having an bit of difficulty in declaring the array in the header file though.

getting the below error
CPropertyDialog.obj : error LNK2005: "class ATL::CSimpleArray<class ATL::CStringT<char,class ATL::StrTraitATL<char,class ATL::ChTraitsCRT<char> > >,class ATL::CSimpleArrayEqualHelper<class ATL::CStringT<char,class ATL::StrTraitATL<char,class ATL::ChTraitsCRT<char> > > > > sPorts2" (?sPorts2@@3V?$CSimpleArray@V?$CStringT@DV?$StrTraitATL@DV?$ChTraitsCRT@D@ATL@@@ATL@@@ATL@@V?$CSimpleArrayEqualHelper@V?$CStringT@DV?$StrTraitATL@DV?$ChTraitsCRT@D@ATL@@@ATL@@@ATL@@@2@@ATL@@A) already defined in USBGlowLight.obj
1>   Creating library C:\Users\sfoxton\Documents\Visual Studio 2005\Projects\USBGlowLight\Debug\USBGlowLight.lib and object C:\Users\sfoxton\Documents\Visual Studio 2005\Projects\USBGlowLight\Debug\USBGlowLight.exp
1>C:\Users\sfoxton\Documents\Visual Studio 2005\Projects\USBGlowLight\Debug\USBGlowLight.dll : fatal error LNK1169: one or more multiply defined symbols found


you can have an look at the header if you like
http://www.4shared.com/file/228257607/9cf3e5f/USBGlowLight.html

Problem seems to be the declaration on Line 14
CSimpleArray<CString> sPorts2;



Idea is to declare the array in the header file, have the .cpp file create the checkboxes. Then in my main Viz .cpp it can read the array values
GeneralRe: VC++ 2005, Creating checkboxes from an array Pin
Steven Foxton23-Feb-10 12:01
Steven Foxton23-Feb-10 12:01 
GeneralRe: VC++ 2005, Creating checkboxes from an array Pin
LunaticFringe23-Feb-10 14:34
LunaticFringe23-Feb-10 14:34 
QuestionDebuging in VC++ 6.0 Pin
Anderson Jogie22-Feb-10 8:33
Anderson Jogie22-Feb-10 8:33 
AnswerRe: Debuging in VC++ 6.0 Pin
Maximilien22-Feb-10 8:47
Maximilien22-Feb-10 8:47 
GeneralRe: Debuging in VC++ 6.0 Pin
Anderson Jogie22-Feb-10 11:09
Anderson Jogie22-Feb-10 11:09 
GeneralRe: Debuging in VC++ 6.0 Pin
Nelek22-Feb-10 21:51
protectorNelek22-Feb-10 21:51 
Questionwinsock recv() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 [modified] Pin
Jayapal Chandran22-Feb-10 6:17
Jayapal Chandran22-Feb-10 6:17 
AnswerRe: winsock recv() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 Pin
Graham Breach22-Feb-10 7:35
Graham Breach22-Feb-10 7:35 
GeneralRe: winsock recv() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 Pin
Jayapal Chandran22-Feb-10 8:01
Jayapal Chandran22-Feb-10 8:01 
Questionadd image Pin
ashit_niit22-Feb-10 3:09
ashit_niit22-Feb-10 3:09 
QuestionRe: add image Pin
Maximilien22-Feb-10 3:13
Maximilien22-Feb-10 3:13 
AnswerRe: add image Pin
KarstenK22-Feb-10 3:46
mveKarstenK22-Feb-10 3:46 
QuestionOLE Drag & Drop Pin
vkpMark22-Feb-10 1:52
vkpMark22-Feb-10 1:52 
AnswerRe: OLE Drag & Drop Pin
Eugen Podsypalnikov22-Feb-10 2:24
Eugen Podsypalnikov22-Feb-10 2:24 
AnswerRe: OLE Drag & Drop Pin
Chris Losinger22-Feb-10 4:22
professionalChris Losinger22-Feb-10 4:22 
Questionhow should i change "digit substitution" in mfc? Pin
mochenoo22-Feb-10 1:17
mochenoo22-Feb-10 1:17 
AnswerRe: how should i change "digit substitution" in mfc? Pin
ehsan mokhtary22-Feb-10 8:09
ehsan mokhtary22-Feb-10 8:09 

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.