Pelles C forum
C language => Windows questions => Topic started by: themaster on October 16, 2013, 02:55:16 PM
-
Created a simply DLL project and it worked fine. Then I needed to output some debug info in message box and wanted to use Microsoft C++ CRT function swprintf. IDE highlited it for me, so I was very disappointed when saw warning message:
"d:\Docs\Pelles C Projects\Hook dll\dllmain.c(128): warning #2018: Undeclared function 'swprintf'; assuming 'extern' returning 'int'."
Some search in forum topics showed than CRT functions must link by default. What should I check to prove it? How to "relink" it if they are not linked?
-
swprintf() is defined in <wchar.h>
You can use wsprintf() instead and that comes from user32.dll .