springfield said:The SDK comes with a tons of examples, look in the installation folder. <directx sdk path>\Samples\C++\Direct3D\Text3D.
float fCurRanking = abs( float( displayMode.RefreshRate.Numerator ) / fDenom1 -
float( refreshRateMatch.Numerator ) / fDenom2 );
0x32789 said:or maybe try the tutorials of directx which comes with sdk
C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Samples\C++\Direct3D\Tutorials (default directory)
whoonga said:Now I only need to fix that error like I mentioned earlier in this thread.
whoonga said:Yeah, you're right, but when i try to compile the sampe, i get this error:
https://msdn.microsoft.com/de-de/library/da60x087.aspx
springfield said:whoonga said:Now I only need to fix that error like I mentioned earlier in this thread.
But you linked the MSDN error page youself. Have you read it?
whoonga said:Yeah, you're right, but when i try to compile the sampe, i get this error:
https://msdn.microsoft.com/de-de/library/da60x087.aspx
It's really simple, it means there's no overload function for abs that takes/returns a float, so just cast to whatever abs takes, usually double. Or use alternatives like fabs.
Fehler LNK2019 Verweis auf nicht aufgelöstes externes Symbol "_vsnwprintf" in Funktion ""long __cdecl StringVPrintfWorkerW(unsigned short *,unsigned __int64,unsigned __int64 *,unsigned short const *,char *)" (?StringVPrintfWorkerW@@YAJPEAG_KPEA_KPEBGPEAD@Z)".
anyone got a clue what i could do next?
Bugman said:anyone got a clue what i could do next?
first lern c++
Bugman said:you should not start with these things,
first read a book about DirectX or try C++ basics
i saw your topics, why the fuck u start with read/write memory? copy pasta
u cant understand the code
hf
monday said:learning DirectX/C++ from books just because you want to play around with samp mods as a hobby is like buying 2 years supply of condoms just because some lady smiled at you. It may turn out as a good investment but the chances are small.
whoonga said:Code:Fehler LNK2019 Verweis auf nicht aufgelöstes externes Symbol "_vsnwprintf" in Funktion ""long __cdecl StringVPrintfWorkerW(unsigned short *,unsigned __int64,unsigned __int64 *,unsigned short const *,char *)" (?StringVPrintfWorkerW@@YAJPEAG_KPEA_KPEBGPEAD@Z)".
I've googled that problem and on some sites they say, that i need to pragma comment the D3dx9.lib and/or the D3d9.lib, neither works.
Also removing or adding the dxerr.lib/D3dx9.lib/D3d9.lib from the additional dependencies makes no difference.
anyone got a clue what i could do next?