Results 1 to 4 of 4

Thread: unresolved Externals in a dll

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    UK
    Posts
    222

    Question unresolved Externals in a dll

    Well again I don't have a clue.

    I'm trying to export some functions from a dll into my app, but I am getting these errors:

    key32.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __stdcall InitHooksDll(struct HWND__ *,int)" (__imp_?InitHooksDll@@YGHPAUHWND__@@H@Z)
    key32.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __stdcall PaintHooksDll(struct HDC__ *)" (__imp_?PaintHooksDll@@YGHPAUHDC__@@@Z)
    key32.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __stdcall InstallFilter(int,int)" (__imp_?InstallFilter@@YGHHH@Z)

    could somebody explain why i get them and how to solve them?! I'm pretty lost to tell the truth! and the help provided by msdn and the likes is not the greatest for a beginer like myself!

    I've enclosed my code, you have to run it from the d:\development\key32\ directory as there are includes with path statements!! (is there anyway round this type of include statement? i.e. #include "d:\development....\key32.h"

    Cheers in advance

    Andy
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width