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. DLL Concept Question

DLL Concept Question

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestiondesignjson
1 Posts 1 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.
  • L Offline
    L Offline
    LighthouseJ
    wrote on last edited by
    #1

    I've decided that the modular design of a DLL would be beneficial in a project I'm doing. I've read and followed the howto's and made the barebones DLL file and I've also read how to export data using __declspec (dllimport)/(dllexport). Like in the past, these howto's don't enhance my overall understanding, thus I am asking you, the reader. I've also read many different howto's to try and answer my own questions but each one seems to do things different from the rest so I don't have a clear picture of DLL's. I'd like to create a DLL that takes in some parameters like a username or password and a couple other things, possibly download information from the internet, process the information, then be available for queries on that information once processed. First, I don't see how I can "start the music" so to speak by initializing a class inside the DLL with data given to it. Second, can I run the processing using a thread inside the DLL? The information to process takes 30 seconds on average and I don't want to hang the main app while it works. If you can provide code examples even just as pseudocode, that would be much more informative than trying to explain it to me because I work best off of example.

    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