using external dll

Discussion in 'Programming General' started by MayhemMadness, Nov 18, 2009.

using external dll
  1. Unread #1 - Nov 18, 2009 at 5:45 PM
  2. MayhemMadness
    Joined:
    Nov 18, 2009
    Posts:
    5
    Referrals:
    0
    Sythe Gold:
    0

    MayhemMadness Newcomer

    using external dll

    I need to use an external dll by including the library for it. I then go call the function in the DLL thats defined in a header file ive included. But I get this error.

    1>DllMain.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl CallHTTPScript(char const *,char const *,char const *,char const *,int &)" (__imp_?CallHTTPScript@@YAHPBD000AAH@Z) fatal error LNK1120: 1 unresolved externals

    Im not sure what Im missing, both the library and header file are included.
     
  3. Unread #2 - Nov 23, 2009 at 12:41 PM
  4. Govind
    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    using external dll

    Do you have the line #pragma comment(lib, "libname.lib")?
     
  5. Unread #3 - Nov 23, 2009 at 1:42 PM
  6. super_
    Joined:
    Dec 20, 2008
    Posts:
    91
    Referrals:
    0
    Sythe Gold:
    0

    super_ Member

    using external dll

    are you linking to it
     
< Runescape autominer pro | C++ My first script (Loginprompt) >

Users viewing this thread
1 guest


 
 
Adblock breaks this site