wchar.h

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.
Post Reply
REE
Posts: 2
Joined: Sun Nov 23, 2003 3:55 am

wchar.h

Post by REE »

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 »

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 »

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 »

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 »

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());

 }

Post Reply