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. Is DLLMain required?

Is DLLMain required?

Scheduled Pinned Locked Moved C / C++ / MFC
csharpquestion
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.
  • J Offline
    J Offline
    Jawache
    wrote on last edited by
    #1

    I'm trying to convert some static libraries we have to DLLs. I'm trying to keep the code as portable as possible so I really would not like to use any windows headers. 1) Can I just leave out the Dllmain function and just use delspec(dllimport/export) etc... for the class declarations. 2) Is it possible to just change some project settings to covert a project from a static library to a dll? (I remember in my makefile/*nix days all i had to do was change a flag). Cheers Asim Hussain e: asim@jawache.net w: www.jawache.net

    P 1 Reply Last reply
    0
    • J Jawache

      I'm trying to convert some static libraries we have to DLLs. I'm trying to keep the code as portable as possible so I really would not like to use any windows headers. 1) Can I just leave out the Dllmain function and just use delspec(dllimport/export) etc... for the class declarations. 2) Is it possible to just change some project settings to covert a project from a static library to a dll? (I remember in my makefile/*nix days all i had to do was change a flag). Cheers Asim Hussain e: asim@jawache.net w: www.jawache.net

      P Offline
      P Offline
      Paul Lyons
      wrote on last edited by
      #2

      Have a look at this. It's a pretty decent overview of your DLL options from within VS. http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=617[^]

      Paul Lyons, CCPL
      Certified Code Project Lurker


      What a lon

      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