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. About Dll Export and Import

About Dll Export and Import

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
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.
  • S Offline
    S Offline
    siddharthsan
    wrote on last edited by
    #1

    Hi, I have to export a class and it's function from a dll(this dll is already exists) then i have to import that class in to my application??? So,I did as, In that dll defined a macro as DLLExport: #ifdef DllExport #define DllExport __declspec( dllexport ) #endif In the class declaration gave as, class DllExport ATL_NO_VTABLE CShockwaveFlash: What i have to do after this??? Thanks and Regards, Siddharth

    T E 2 Replies Last reply
    0
    • S siddharthsan

      Hi, I have to export a class and it's function from a dll(this dll is already exists) then i have to import that class in to my application??? So,I did as, In that dll defined a macro as DLLExport: #ifdef DllExport #define DllExport __declspec( dllexport ) #endif In the class declaration gave as, class DllExport ATL_NO_VTABLE CShockwaveFlash: What i have to do after this??? Thanks and Regards, Siddharth

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

      please read this[^]


      [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

      S 1 Reply Last reply
      0
      • S siddharthsan

        Hi, I have to export a class and it's function from a dll(this dll is already exists) then i have to import that class in to my application??? So,I did as, In that dll defined a macro as DLLExport: #ifdef DllExport #define DllExport __declspec( dllexport ) #endif In the class declaration gave as, class DllExport ATL_NO_VTABLE CShockwaveFlash: What i have to do after this??? Thanks and Regards, Siddharth

        E Offline
        E Offline
        Eytukan
        wrote on last edited by
        #3

        Can you explain it better?


        Press: 1500 to 2,200 messages in just 6 days? How's that possible sir? **Dr.Brad :**Well,I just replied to everything Graus did and then argued with Negus for a bit.

        S 1 Reply Last reply
        0
        • T toxcct

          please read this[^]


          [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

          S Offline
          S Offline
          siddharthsan
          wrote on last edited by
          #4

          Thank you Actually,Dll which I am using is an exising dll.So I exported and imported the class and changed the project settings according to the tutorials. Now I included the header file in my sample application ,but it is not recognizing the file??? please help me... Siddharth

          1 Reply Last reply
          0
          • E Eytukan

            Can you explain it better?


            Press: 1500 to 2,200 messages in just 6 days? How's that possible sir? **Dr.Brad :**Well,I just replied to everything Graus did and then argued with Negus for a bit.

            S Offline
            S Offline
            siddharthsan
            wrote on last edited by
            #5

            I am using an existing dll and I want to export class from it.And I created a sample application(mfc) to import that particular class... So I used the steps above.But how I can check whether the class is exported or not ???

            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