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. C / C++ / MFC
  4. .lib Files

.lib Files

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++hardwarehelpquestion
5 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.
  • A Offline
    A Offline
    Andre Trollip
    wrote on last edited by
    #1

    Hi Everyone, I am faced with a bit of a problem. I suspect it is a problem only because of my non-existant knowledge of c/c++. I need to use a third party SDK to be able to control and/or monitor some telephony hardware from a popular vendor. My problem is that I have to do this from a .Net environment (C#) but the SDK file are .lib files. It is said that it is dynamically compiled (what that means I have no idea). Can anyone possibly tell me how I could use it from C# and if it's impossible, how I can wrap it in normal dll's (so I can use Dllimport) as normal. Thanks and Regards, Phi?

    B 1 Reply Last reply
    0
    • A Andre Trollip

      Hi Everyone, I am faced with a bit of a problem. I suspect it is a problem only because of my non-existant knowledge of c/c++. I need to use a third party SDK to be able to control and/or monitor some telephony hardware from a popular vendor. My problem is that I have to do this from a .Net environment (C#) but the SDK file are .lib files. It is said that it is dynamically compiled (what that means I have no idea). Can anyone possibly tell me how I could use it from C# and if it's impossible, how I can wrap it in normal dll's (so I can use Dllimport) as normal. Thanks and Regards, Phi?

      B Offline
      B Offline
      Bob Stanneveld
      wrote on last edited by
      #2

      Hello, I assume that you have the C++ header files for the libraries. You can do / try the following:* Set up a new project for a DLL. Here you write new headers that export the functions from the library. You create a DLL from here.

      • You write a managed wrapper for the library and create a .NET assembly for that. Hope this helps :) Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]
      A 1 Reply Last reply
      0
      • B Bob Stanneveld

        Hello, I assume that you have the C++ header files for the libraries. You can do / try the following:* Set up a new project for a DLL. Here you write new headers that export the functions from the library. You create a DLL from here.

        • You write a managed wrapper for the library and create a .NET assembly for that. Hope this helps :) Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]
        A Offline
        A Offline
        Andre Trollip
        wrote on last edited by
        #3

        Thanks for your reply. Yes I do have the header files. So am I right in saying that I would need some C/C++ skills for this? I feared that as I have very limited skills in that area and the header files' code seems very complex for me. Regards, Phi? -- modified at 8:52 Monday 31st October, 2005

        T B 2 Replies Last reply
        0
        • A Andre Trollip

          Thanks for your reply. Yes I do have the header files. So am I right in saying that I would need some C/C++ skills for this? I feared that as I have very limited skills in that area and the header files' code seems very complex for me. Regards, Phi? -- modified at 8:52 Monday 31st October, 2005

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          André Trollip wrote:

          I feared that as I have very limited skills in that area and the header files' code seems very complex for me.

          don't worry André, headers are - most of the time - only declarations. what can obfuscate the understanding (especially with a dll header) can be function pointers. i suggest you so having a look at the msdn on that topic, of search the web for it (but just tell you it's not so hard and everything will be ok :D ).


          TOXCCT >>> GEII power
          [toxcct][VisualCalc]

          1 Reply Last reply
          0
          • A Andre Trollip

            Thanks for your reply. Yes I do have the header files. So am I right in saying that I would need some C/C++ skills for this? I feared that as I have very limited skills in that area and the header files' code seems very complex for me. Regards, Phi? -- modified at 8:52 Monday 31st October, 2005

            B Offline
            B Offline
            Bob Stanneveld
            wrote on last edited by
            #5

            André Trollip wrote:

            So am I right in saying that I would need some C/C++ skills for this?

            You don't need 'skills' as in n years experience. You do need to know a little bit about the topic. Search google or CP for writing DLL's. There are some articles here about the topic. Maybe you should try to call the vendor if they can build the library for you. This wouldn't be a crazy request since you paid for the API anyway. Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

            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