Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Pothead

Unresolved external?

This topic is 5424 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Last night I wrote my own easy-to-use wrapper-class for directInput.. It works fine if I store the window handle in MyInput-class too like this :
quote:
UserInput.hWnd = m_hWnd; UserInput.Initialize();
But if I pass it as a parameter to Initialize-function:
quote:
UserInput.Initialize( m_hWnd );
linker just says : "[Linker Error] Unresolved external 'InputWrapper::Initialize(HWND__ *)' referenced from D:\DXCODE\ENGINE\ENGINE.OBJ" definition of this is..
quote:
class InputWrapper { ... public: HRESULT Initialize( HWND handle ); ... } HRESULT InputWrapper::Initialize( HWND handle) { ...
[edited by - Pothead on August 18, 2003 4:29:16 AM]

Share this post


Link to post
Share on other sites
Advertisement
IT WORKS!!
just defined Initialize as a virtual method and now it works fine..

class InputWrapper {
...
public:
virtual HRESULT Initialize( HWND handle );
...
}

HRESULT InputWrapper::Initialize( HWND handle) {
...

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!