Page 1 of 1

can't use swprintf when audiere.h is included in project

Posted: Tue Feb 10, 2004 2:38 am
by thesmileman
I have been using Irricht for about a week and already done some really neat stuff. I am working on a project and I wanted to include some audio. After including Audiere's "audiere.h" when I try to compile Dev-C++ gives me an error saying there is an invalid conversion from int to const wchar_t .the same thing happens with any of the swprintf code from the tutorials.

anyone know what is the problem?

Does audiere also have a function called swprintf?

Thanks!

Posted: Tue Feb 10, 2004 12:32 pm
by saigumi
I don't use swprintf's.

But if you don't find an answer here, there may be one in the actual Audiere forum.

Posted: Tue Feb 10, 2004 7:29 pm
by thesmileman
could you suggest something different to use for the same purpose as swprintf?

Posted: Fri Feb 13, 2004 1:17 pm
by Saalen

Posted: Sat Feb 14, 2004 11:41 am
by obi
Maybe its a problem with the namespaces.
If you have 'using namespace ...' directives in your code, delete them and use fully quallified names (especially in .h files).

Thanks!

Posted: Sun Feb 15, 2004 9:24 pm
by thesmileman
using tchar.h and the _snwprintf function worked perfectly. By the way audiere is really really really easy to use. I got the hand of it in under 10 minutes and got most of what I needed done in no time!

Posted: Sun Feb 15, 2004 9:26 pm
by thesmileman
Also I do not think it was a namespace problem because I had already tried fully qualifiing the namespaces and still got the same problem.