Anyone know the MinGW equivilant of swprintf? I'm sure there's a different syntax for it -.-
swprintf(...); doesn't seem to be working in Dev-Cpp.
MinGW
-
monkeycracks
- Posts: 1029
- Joined: Thu Apr 06, 2006 12:45 am
- Location: Tennesee, USA
- Contact:
-
thephoenix
- Posts: 19
- Joined: Wed Jan 25, 2006 7:44 pm
http://www.die.net/doc/linux/man/man3/swprintf.3.html
(wchar.h declares swprintf)
(That is for GCC, but as MinGW uses GCC, that should be correct?)
EDIT: Yes, my MinGW knows that function...
(wchar.h declares swprintf)
(That is for GCC, but as MinGW uses GCC, that should be correct?)
EDIT: Yes, my MinGW knows that function...
Include that in some global header in your project:
Code: Select all
#ifdef __GNUWIN32__
#undef swprintf
#define swprintf _snwprintf
#endif
-
monkeycracks
- Posts: 1029
- Joined: Thu Apr 06, 2006 12:45 am
- Location: Tennesee, USA
- Contact: