主题:请教VC++6.0 项目转成 VC++.net 项目问题
原本在vc++6.0中编译通过的项目,在转成vc++.net 后编译没通过.请教高手,
问题:
#include <dinput.h>
...
...
BOOL CDirectInput::Create( HINSTANCE hInst, HWND hWnd )
{
HRESULT hr;
// Create DirectInput object
hr = DirectInputCreate(hInst, DIRECTINPUT_VERSION, &m_pDI, NULL);
if( FAILED(hr) )
return FALSE;
...
...
}
出现错误:
error C3861:'DirectInputCreate':identifier not found, even with argument-dependent lookup
已在 Project->Properties->Linker->Input->Additional Dependencies 里添加了
dxguid.lib
ddraw.lib
dinput.lib
dsound.lib
另directx 版本是9.0c
Thanks a lot!
问题:
#include <dinput.h>
...
...
BOOL CDirectInput::Create( HINSTANCE hInst, HWND hWnd )
{
HRESULT hr;
// Create DirectInput object
hr = DirectInputCreate(hInst, DIRECTINPUT_VERSION, &m_pDI, NULL);
if( FAILED(hr) )
return FALSE;
...
...
}
出现错误:
error C3861:'DirectInputCreate':identifier not found, even with argument-dependent lookup
已在 Project->Properties->Linker->Input->Additional Dependencies 里添加了
dxguid.lib
ddraw.lib
dinput.lib
dsound.lib
另directx 版本是9.0c
Thanks a lot!