简体   繁体   中英

How can I compile/debug Visual Studio 2012 Win32 project with Direct8 dlls

I'm new to Win32.

error LNK2019: unresolved external symbol _DirectDrawCreateEx@16 referenced in function "int __cdecl DD_Init(int,int,int)" (?DD_Init@@YAHHHH@Z)

showing when i trying to run a direct8 Win32 Project on Win7 VS2012(with directx 11 installed) , can i use direct8 dlls compile win32 project in vs2012?

The version of DirectX you are trying to use is very old. But I'm fairly sure it is still supported, I see DirectDrawCreateEx() still present in the latest Windows SDK, version 8 that is included with VS2012. Do avoid installing that old SDK as recommended in the other answer, it won't know anything about VS2012 and may deploy heavily outdated components that may flub your machine. DirectX was integrated in the Windows SDK a while ago.

Project > Properties > Linker > Input > Additional Dependencies setting. Add ddraw.lib

Make sure you have the DirectX 8 SDK installed and set the right Project Paths: http://msdn.microsoft.com/en-us/library/73f9s62w(v=vs.71).aspx You have to set the x86 lib directory for a win32 project. Good Luck

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM