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. Shared Library o DLL?

Shared Library o DLL?

Scheduled Pinned Locked Moved C / C++ / MFC
c++questioncsharpwinformshardware
2 Posts 2 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
    Andy202
    wrote on last edited by
    #1

    For an item of hardware I have written a Shared library to make it easy to use the API for this hardware. The library sets up data structures and handles, buffers etc for simple program use. For example to arrange data to be transmitted I call routines like:-

    UINT16 TransmitData( UINT unit, UINT addr, TXBUFFER * tx_buffer );

    However in VS2008 I used C++ in a MFC dialog application, which all worked well. Having moved to VS2010, I now see that the intellisence does not work with this product for C++. So my thoughts were to use C# for the Windows forms and link in the Shared Library. My question is do I need to general a DLL rather than a Shared Library so that I can use C++, C# and perhaps VB. Is this correct and what are the procedures to follow. The libray is built using C. I include the API.lib and API.h along with the DLL that came with the API s/w environment. Many thanks, Andy

    A 1 Reply Last reply
    0
    • A Andy202

      For an item of hardware I have written a Shared library to make it easy to use the API for this hardware. The library sets up data structures and handles, buffers etc for simple program use. For example to arrange data to be transmitted I call routines like:-

      UINT16 TransmitData( UINT unit, UINT addr, TXBUFFER * tx_buffer );

      However in VS2008 I used C++ in a MFC dialog application, which all worked well. Having moved to VS2010, I now see that the intellisence does not work with this product for C++. So my thoughts were to use C# for the Windows forms and link in the Shared Library. My question is do I need to general a DLL rather than a Shared Library so that I can use C++, C# and perhaps VB. Is this correct and what are the procedures to follow. The libray is built using C. I include the API.lib and API.h along with the DLL that came with the API s/w environment. Many thanks, Andy

      A Offline
      A Offline
      Albert Holguin
      wrote on last edited by
      #2

      Intellisense should still work, look at this to see if it helps clear up the problem: http://www.codeproject.com/Tips/180150/Including-stdafx-h-in-a-non-default-location.aspx[^]

      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