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. help regarding dll

help regarding dll

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
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.
  • U Offline
    U Offline
    Usman Arif
    wrote on last edited by
    #1

    Hi all! I m using a dll into my dialog based application. Now, in the next step, i want to access a class from my dialog based application into that dll. Is it possible? If yes, then how? Regards Usman Arif Usman Arif

    C 1 Reply Last reply
    0
    • U Usman Arif

      Hi all! I m using a dll into my dialog based application. Now, in the next step, i want to access a class from my dialog based application into that dll. Is it possible? If yes, then how? Regards Usman Arif Usman Arif

      C Offline
      C Offline
      CodeBeetle
      wrote on last edited by
      #2

      Here's an example. This is in your header file. You will need to change the obvious defines etc to suit your own app. #ifdef MYCLASS_EXPORTS #define MYCLASSDDLL __declspec(dllexport) #else #define MYCLASSDDLL __declspec(dllimport) #ifdef _DEBUG //linkage #pragma comment (lib, "myclass_db.lib") #else #pragma comment (lib, "myclass.lib") #endif #endif // // class definition // class MYCLASSDLL CMyClass { }


      CodeBeetle.Com


      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