Click here to Skip to main content
15,915,509 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with resizing the window at application startup Pin
MK7818-May-05 23:01
MK7818-May-05 23:01 
GeneralRe: Problem with resizing the window at application startup Pin
ledallam18-May-05 23:46
ledallam18-May-05 23:46 
GeneralRe: Problem with resizing the window at application startup Pin
Hans Ruck18-May-05 23:14
Hans Ruck18-May-05 23:14 
Generalweird registration problem Pin
LukeV18-May-05 16:07
LukeV18-May-05 16:07 
GeneralRe: weird registration problem Pin
usmanmir18-May-05 20:54
usmanmir18-May-05 20:54 
GeneralRe: weird registration problem Pin
User 58385219-May-05 4:53
User 58385219-May-05 4:53 
QuestionHow to use Unicode in Console Pin
boylangchoi18-May-05 14:51
boylangchoi18-May-05 14:51 
Generalplease help with link error LNK2005 (png.lib?) Pin
ryuki18-May-05 13:22
ryuki18-May-05 13:22 
Ok, VC++ tells me the same errors all the time:

MSVCRT.lib(MSVCRT.dll) : error LNK2005: _sprintf allready defined in LIBCD.lib(sprintf.obj)

As far as I understand it, it is a problem with incompatibel iostream librarys. VC++ chooses the right version itself but now there is a conflict since I build something in that requires different iostream versions.

I put some png reading code in my previous well working project. I used the same code in another project without any trouble. But last time it was an MFC application and now it is a simple VC++ win32 application project.

Maybe the way I linked the library caused some trouble too. I had to use that methode:

extern "C" <br />
{<br />
#include "png.h"<br />
#include "pngconf.h"<br />
}


other includes are

#include "ddraw.h"<br />
#include "windows.h"   <br />
#include "windowsx.h"<br />
#include "mmsystem.h"<br />
#include "iostream.h"<br />
#include "conio.h"<br />
#include "stdlib.h"<br />
#include "malloc.h"<br />
#include "memory.h"<br />
#include "string.h"<br />
#include "stdarg.h"<br />
#include "stdio.h"<br />
#include "math.h"<br />
#include "io.h"<br />
#include "fcntl.h"


How can I get rid of this annoying link errors? Every help is welcome.
GeneralRe: please help with link error LNK2005 (png.lib?) Pin
Chris Losinger18-May-05 14:31
professionalChris Losinger18-May-05 14:31 
GeneralRe: please help with link error LNK2005 (png.lib?) Pin
ryuki18-May-05 20:38
ryuki18-May-05 20:38 
GeneralRe: please help with link error LNK2005 (png.lib?) Pin
Stlan18-May-05 22:12
Stlan18-May-05 22:12 
GeneralSynchronization Pin
javi_jmc18-May-05 13:16
javi_jmc18-May-05 13:16 
GeneralRe: Synchronization Pin
Christian Graus18-May-05 16:26
protectorChristian Graus18-May-05 16:26 
Questionwhat is command.com ? Pin
includeh1018-May-05 10:46
includeh1018-May-05 10:46 
AnswerRe: what is command.com ? Pin
Robert Buldoc18-May-05 11:14
Robert Buldoc18-May-05 11:14 
AnswerRe: what is command.com ? Pin
Anonymous18-May-05 12:13
Anonymous18-May-05 12:13 
GeneralRe: what is command.com ? Pin
Jörgen Sigvardsson18-May-05 12:30
Jörgen Sigvardsson18-May-05 12:30 
Generalshared data segment on x64 Pin
charles200118-May-05 10:39
charles200118-May-05 10:39 
GeneralRe: shared data segment on x64 Pin
Blake Miller18-May-05 11:44
Blake Miller18-May-05 11:44 
GeneralRe: shared data segment on x64 Pin
Ryan Binns18-May-05 18:40
Ryan Binns18-May-05 18:40 
GeneralShell_NotifyIcon sometimes fails at startup Pin
LukeV18-May-05 9:46
LukeV18-May-05 9:46 
GeneralRe: Shell_NotifyIcon sometimes fails at startup Pin
BlackDice18-May-05 11:27
BlackDice18-May-05 11:27 
GeneralRe: Shell_NotifyIcon sometimes fails at startup Pin
Ryan Binns18-May-05 18:43
Ryan Binns18-May-05 18:43 
GeneralCArchive and CFileDialog Pin
Gagnon Claude18-May-05 9:39
Gagnon Claude18-May-05 9:39 
GeneralWMI Pin
Alex_Y18-May-05 9:34
Alex_Y18-May-05 9:34 

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.