for some reason i've gotten a "unresolved external symbol" error and I just can't figure out why..
It complains about "__snprintf", "__sprintf" and "__vsnprintf" even though I am not even using those..
Picture of compiler:
As you can see I am using d3dx9.lib and these are my includes & libraries:
#include <Windows.h>
#include <iostream>
#include <stdio.h>
#include "d3d9.h"
#include "d3dx9.h"
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "d3dx9.lib")
The only code I use printf in:
void v_DrawText(int X, int Y, D3DCOLOR Color, ID3DXFont *font, const char* sText, ...)
{
char sText_[1024] = "";
va_list ap;
if (!sText || *sText == '\0')
return;
va_start(ap, sText);
_snprintf_s(sText_, 1024, 1023, sText, ap);
va_end(ap);
RECT Position = { X, Y, X + 500, Y + 50 };
font->DrawText(NULL, sText_, -1, &Position, DT_LEFT | DT_WORDBREAK, Color);
}
I have already tried rebuilding the solution from ground, redownloading the library, adding it to the linker directly.. but no. Just won't work..
Project Configuration (as requested):