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

C / C++ / MFC

 
GeneralRe: UNICODE woes Pin
toxcct30-Aug-05 5:13
toxcct30-Aug-05 5:13 
GeneralThanks all, Pin
TheGroinalRampager30-Aug-05 21:45
TheGroinalRampager30-Aug-05 21:45 
Questionloading images in memory Pin
a_david12329-Aug-05 23:13
a_david12329-Aug-05 23:13 
AnswerRe: loading images in memory Pin
Nishad S29-Aug-05 23:32
Nishad S29-Aug-05 23:32 
AnswerRe: loading images in memory Pin
John R. Shaw30-Aug-05 13:52
John R. Shaw30-Aug-05 13:52 
QuestionHow to specify a sound card in windows media player Pin
JaniceA29-Aug-05 23:07
JaniceA29-Aug-05 23:07 
QuestionSSL Socket Pin
sunit529-Aug-05 22:43
sunit529-Aug-05 22:43 
QuestionLinking an object with Win32 API Pin
alireza_shokoie29-Aug-05 22:42
alireza_shokoie29-Aug-05 22:42 
Hi I will link an object of C module with a simple Win32 console application,
but became link errors. For example i have written a "void SomeFunc()" function in C module and declare it in testMain.cpp(Win32 API cpp module)as:
extern void SomeFunct(void);.
When i link this object, the result is:
1- SomeObject.obj : error LNK2005: _SomeFunc already defined in SomeObject.obj
2- testMain.obj : error LNK2001: unresolved external symbol "void __cdecl SomeFunc(void)" (?SomeFunc@@YAXXZ)
3- Debug/testMain.exe : fatal error LNK1120: 1 unresolved externals
Therefore, i try to declare it as:
extern "C" void SomeFunc(void);
When i link this object, the result is:
1- SomeObject.obj : error LNK2005: _SomeFunc already defined in SomeObject.obj
2- Debug/testMain.exe : fatal error LNK1169: one or more multiply defined symbols found

I don't know why? I will be thankful, when everybody can help me.
Best regards, Alireza
AnswerRe: Linking an object with Win32 API Pin
Jose Lamas Rios30-Aug-05 2:44
Jose Lamas Rios30-Aug-05 2:44 
QuestionReports in VC++ Pin
Jeeva Mary Varghese29-Aug-05 22:12
Jeeva Mary Varghese29-Aug-05 22:12 
QuestionC++ .NET tutorial Pin
Dario Solera29-Aug-05 21:59
Dario Solera29-Aug-05 21:59 
AnswerRe: C++ .NET tutorial Pin
toxcct29-Aug-05 22:07
toxcct29-Aug-05 22:07 
GeneralRe: C++ .NET tutorial Pin
Dario Solera29-Aug-05 22:15
Dario Solera29-Aug-05 22:15 
QuestionReading file backwards... Pin
Raza568029-Aug-05 21:58
Raza568029-Aug-05 21:58 
AnswerRe: Reading file backwards... Pin
Achim Klein29-Aug-05 22:42
Achim Klein29-Aug-05 22:42 
GeneralRe: Reading file backwards... Pin
Raza568030-Aug-05 3:46
Raza568030-Aug-05 3:46 
GeneralRe: Reading file backwards... Pin
Achim Klein30-Aug-05 5:33
Achim Klein30-Aug-05 5:33 
Questionhide standard toolbar and create new button Pin
sarliza29-Aug-05 21:58
sarliza29-Aug-05 21:58 
Questionpassing structure as parameter in ActiveX control Pin
rajesh_kapure29-Aug-05 21:50
rajesh_kapure29-Aug-05 21:50 
QuestionHow can I shutdown my computer in my VC++ program? Pin
pantao55129-Aug-05 21:36
pantao55129-Aug-05 21:36 
AnswerRe: How can I shutdown my computer in my VC++ program? Pin
Barm29-Aug-05 22:24
Barm29-Aug-05 22:24 
AnswerRe: How can I shutdown my computer in my VC++ program? Pin
Marc Soleda29-Aug-05 22:27
Marc Soleda29-Aug-05 22:27 
AnswerRe: How can I shutdown my computer in my VC++ program? Pin
sunit530-Aug-05 1:57
sunit530-Aug-05 1:57 
QuestionCommand for executing files..... Pin
Ravi Sankar S29-Aug-05 21:25
Ravi Sankar S29-Aug-05 21:25 
AnswerRe: Command for executing files..... Pin
toxcct29-Aug-05 22:05
toxcct29-Aug-05 22:05 

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.