Thread: Api not accessible

  1. #1
    Registered User
    Join Date
    Feb 2012
    Posts
    347

    Api not accessible

    It is little bit difficult for me to explain this scenario. I have a project developed by manufacturers and i downloaded and it compiles with their project environment. They provide some API which i can use within that project in other source files by calling the Api. They have not provided the source code for the same. I dont find the object file also. It is accessible only for price. Now my question is i create a new project can i use those Api ? I tried but it is not compiling. Is it possible to hide like that, i mean to say you can hide obj file also ? Or i am missing something ? Please advise.

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,731
    Well, if the only thing you have is the DLL file, then you may have to load the library manually.
    Using Run-Time Dynamic Linking | Microsoft Docs
    Devoted my life to programming...

  3. #3
    Registered User
    Join Date
    Feb 2012
    Posts
    347
    It is an embedded project for micro controllers i am not sure if DLL files will be available for them.

  4. #4
    Registered User
    Join Date
    May 2009
    Posts
    3,880
    Look for a static library.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  5. #5
    Registered User
    Join Date
    Feb 2012
    Posts
    347
    Yes the static library did the job. Thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to make my class globally accessible
    By baxy in forum C++ Programming
    Replies: 7
    Last Post: 08-08-2013, 10:13 PM
  2. variables in 1 header, accessible to different c files
    By dayalsoap in forum C Programming
    Replies: 3
    Last Post: 07-10-2012, 01:42 PM
  3. const elements of struct / class not accessible?
    By talz13 in forum C# Programming
    Replies: 2
    Last Post: 03-24-2006, 05:05 PM

Tags for this Thread