Adblock breaks this site

using external dll

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

  1. MayhemMadness

    MayhemMadness Newcomer

    Joined:
    Nov 18, 2009
    Posts:
    5
    Referrals:
    0
    Sythe Gold:
    0
    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.
     
  2. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    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
    using external dll

    Do you have the line #pragma comment(lib, "libname.lib")?
     
  3. super_

    super_ Member

    Joined:
    Dec 20, 2008
    Posts:
    91
    Referrals:
    0
    Sythe Gold:
    0
    using external dll

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


 
 
Adblock breaks this site