Click here to Skip to main content
15,918,108 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help Pin
KarstenK29-Jan-08 3:06
mveKarstenK29-Jan-08 3:06 
Generalgetchar() help Pin
gentleguy28-Jan-08 15:04
gentleguy28-Jan-08 15:04 
QuestionRe: getchar() help Pin
David Crow28-Jan-08 15:56
David Crow28-Jan-08 15:56 
GeneralGetForegroundWindow() Pin
dellthinker28-Jan-08 8:12
dellthinker28-Jan-08 8:12 
GeneralRe: GetForegroundWindow() Pin
David Crow28-Jan-08 8:20
David Crow28-Jan-08 8:20 
GeneralRe: GetForegroundWindow() Pin
dellthinker28-Jan-08 13:20
dellthinker28-Jan-08 13:20 
GeneralRe: GetForegroundWindow() Pin
Mark Salsbery28-Jan-08 13:47
Mark Salsbery28-Jan-08 13:47 
GeneralRe: GetForegroundWindow() Pin
dellthinker28-Jan-08 14:48
dellthinker28-Jan-08 14:48 
AnswerRe: GetForegroundWindow() Pin
fd012900228-Jan-08 13:51
fd012900228-Jan-08 13:51 
Generaltest Pin
Member 462175228-Jan-08 7:44
Member 462175228-Jan-08 7:44 
GeneralRe: test Pin
CPallini28-Jan-08 7:56
mveCPallini28-Jan-08 7:56 
GeneralRe: test Pin
Hamid_RT28-Jan-08 19:16
Hamid_RT28-Jan-08 19:16 
GeneralGDI+ NOISE problem Pin
followait28-Jan-08 5:32
followait28-Jan-08 5:32 
GeneralRe: GDI+ NOISE problem Pin
Iain Clarke, Warrior Programmer28-Jan-08 5:34
Iain Clarke, Warrior Programmer28-Jan-08 5:34 
GeneralRe: GDI+ NOISE problem Pin
followait28-Jan-08 5:46
followait28-Jan-08 5:46 
GeneralQuestion regarding exported C++ symbols/objects Pin
Lea Hayes28-Jan-08 4:24
Lea Hayes28-Jan-08 4:24 
GeneralSmart Card Service Problem Pin
Federico Milano28-Jan-08 2:28
Federico Milano28-Jan-08 2:28 
GeneralRe: Smart Card Service Problem Pin
Maxwell Chen28-Jan-08 3:25
Maxwell Chen28-Jan-08 3:25 
GeneralRe: Smart Card Service Problem Pin
Federico Milano28-Jan-08 3:39
Federico Milano28-Jan-08 3:39 
GeneralRe: Smart Card Service Problem Pin
Maxwell Chen28-Jan-08 4:13
Maxwell Chen28-Jan-08 4:13 
GeneralLinker Error 2005 Pin
quastman28-Jan-08 1:29
quastman28-Jan-08 1:29 
Hi,

while compiling an old VC6 project to VC2005 (and also upgrading to the latest Ultimate Grid Version), I got the following messages:

1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::SetDefaultInfo(void)" (?SetDefaultInfo@CUGCell@@QAEHXZ) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::AddCellInfo(class CUGCell *,class CUGCell *)" (?AddCellInfo@CUGCell@@QAEHPAV1@0@Z) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::SetText(char const *)" (?SetText@CUGCell@@QAEHPBD@Z) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::AppendText(char const *)" (?AppendText@CUGCell@@QAEHPBD@Z) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::GetTextLength(void)" (?GetTextLength@CUGCell@@QAEHXZ) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::SetMask(char const *)" (?SetMask@CUGCell@@QAEHPBD@Z) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::GetMask(class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > *)" (?GetMask@CUGCell@@QAEHPAV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: char const * __thiscall CUGCell::GetMask(void)" (?GetMask@CUGCell@@QAEPBDXZ) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::SetLabelText(char const *)" (?SetLabelText@CUGCell@@QAEHPBD@Z) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::GetLabelText(class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > *)" (?GetLabelText@CUGCell@@QAEHPAV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: char const * __thiscall CUGCell::GetLabelText(void)" (?GetLabelText@CUGCell@@QAEPBDXZ) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::SetBool(int)" (?SetBool@CUGCell@@QAEHH@Z) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::SetNumber(double)" (?SetNumber@CUGCell@@QAEHN@Z) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::SetNumberDecimals(int)" (?SetNumberDecimals@CUGCell@@QAEHH@Z) is already defined in UGCell.obj.
1>ugrndm.lib(UGCell.obj) : error LNK2005: "public: int __thiscall CUGCell::GetNumberDecimals(void)" (?GetNumberDecimals@CUGCell@@QAEHXZ) is already defined in UGCell.obj.

(.. and another 661 lines!)

I added '#include "uglibsel.h" ' to my stdafx.h , and also created the ugdndm.lib (and udrndm.lib for release versions).
It looks like that I have defined them twice, but where?

Any help is appreciated.


quastman
QuestionRe: Linker Error 2005 Pin
CPallini28-Jan-08 1:50
mveCPallini28-Jan-08 1:50 
GeneralRe: Linker Error 2005 Pin
quastman28-Jan-08 2:19
quastman28-Jan-08 2:19 
GeneralRe: Linker Error 2005 Pin
CPallini28-Jan-08 2:32
mveCPallini28-Jan-08 2:32 
GeneralRe: Linker Error 2005 Pin
quastman28-Jan-08 3:10
quastman28-Jan-08 3:10 

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.