Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. Linking external library to ATL

Linking external library to ATL

Scheduled Pinned Locked Moved ATL / WTL / STL
c++question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ROWALI
    wrote on last edited by
    #1

    I have a win32 library with no interfaces , just only exported functions. e.g. One of those is .. bool getInfo (char *string, int counter); I created a ATL exe , inserted a simple object.No I want to link the above library to my ATL project. So in Project->settings->link, I gave the lib name and directory of the lib file. Now I want to use this function getInfo in my atl program. SO I added one method in my interface say CallLibFunction And in that method I want to call getInfo.. Are these steps ok? Please let me know, any other precaution or regarding data types??? Kindly let me know. Row

    M I 2 Replies Last reply
    0
    • R ROWALI

      I have a win32 library with no interfaces , just only exported functions. e.g. One of those is .. bool getInfo (char *string, int counter); I created a ATL exe , inserted a simple object.No I want to link the above library to my ATL project. So in Project->settings->link, I gave the lib name and directory of the lib file. Now I want to use this function getInfo in my atl program. SO I added one method in my interface say CallLibFunction And in that method I want to call getInfo.. Are these steps ok? Please let me know, any other precaution or regarding data types??? Kindly let me know. Row

      M Offline
      M Offline
      Milton Karimbekallil
      wrote on last edited by
      #2

      You may need to declare the getInfo signatrure to satisfy the compiler. bool getInfo (char *string, int counter); Implimentation will be taken from the .lib file. cheers...milton KB

      1 Reply Last reply
      0
      • R ROWALI

        I have a win32 library with no interfaces , just only exported functions. e.g. One of those is .. bool getInfo (char *string, int counter); I created a ATL exe , inserted a simple object.No I want to link the above library to my ATL project. So in Project->settings->link, I gave the lib name and directory of the lib file. Now I want to use this function getInfo in my atl program. SO I added one method in my interface say CallLibFunction And in that method I want to call getInfo.. Are these steps ok? Please let me know, any other precaution or regarding data types??? Kindly let me know. Row

        I Offline
        I Offline
        Igor Vigdorchik
        wrote on last edited by
        #3

        You need to include a header file that should be provided with the library.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups