If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
REE
Posts: 2 Joined: Sun Nov 23, 2003 3:55 am
Post
by REE » Sun Nov 23, 2003 3:57 am
Where can i find the wchar.h file for this engine? I need it to compile the examples, and i do not have it.
Thanks
niko
Site Admin
Posts: 1759 Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:
Post
by niko » Sun Nov 23, 2003 8:18 am
It should come with your compiler.
But with the new versions of the engine (I think since 0.4) you don't need to use that header. You should be able to delete the line #include<whar.h>
REE
Posts: 2 Joined: Sun Nov 23, 2003 3:55 am
Post
by REE » Sun Nov 23, 2003 5:41 pm
Ok i deleted that line, but now i get an error when compiling, saying the swprintf is undeclared.
I'm attempting to compile the special fx example....
Thanks
Saalen
Posts: 51 Joined: Thu Sep 04, 2003 7:49 am
Location: Germany
Contact:
Post
by Saalen » Mon Nov 24, 2003 8:38 am
REE wrote: Ok i deleted that line, but now i get an error when compiling, saying the swprintf is undeclared.
I'm attempting to compile the special fx example....
Thanks
I had this issue, too. You need to use another function, but I don't remember its name right now. I'll check at home
Saalen
Posts: 51 Joined: Thu Sep 04, 2003 7:49 am
Location: Germany
Contact:
Post
by Saalen » Tue Nov 25, 2003 6:53 am
I assume you use DevC++:
Code: Select all
#include <tchar.h>
...
wchar_t tmp[10];
if (attachedWeapon){
_snwprintf(tmp, 10, L"Ammo: %d", attachedWeapon->getAmmo());
}