Use sprintf and wsprintf togheter

i am using sprintf and wsprintf (i set the settings to multibytes)
i get following error by compiling:

error LNK2001: Nicht aufgelöstes externes Symbol ""int __cdecl wsprintfWInternal(wchar_t *,wchar_t const *,...)" (?wsprintfWInternal@@YAHPA_WPB_WZZ)".

What library/header i have to include?

Besides, someone know what i have to add to define following one (strmbase.lib is already linked):
error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual long __stdcall CBaseFilter::QueryVendorInfo(wchar_t * *)" (?QueryVendorInfo@CBaseFilter@@UAGJPAPA_W@Z)". ....\DShowTextures.obj
Last edited on
#include <stdio.h>
It doesnt affect (i use precompiled header)

This shows the need for wchar.h as well.

I found this on Google - why couldn't you have done that? Always look up documentation for functions you use.

You are using windows though aren't you?
Why i couln't? it did! and i tried including both header already before, without success.

Thanks for your time, i guess it was related by DirectShow
Last edited on
OK, if you have both files included, then you might need to specify more at link time.

I don't know the details of how that works sorry - I don't use windows OS.
Topic archived. No new replies allowed.