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. exporting classes using regular dll

exporting classes using regular dll

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 Posts 4 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
    Shailesh Ha
    wrote on last edited by
    #1

    how do i export classes using regular dll? because i donot want to use an extension DLL to export classes. regards Shailesh

    N T E 3 Replies Last reply
    0
    • S Shailesh Ha

      how do i export classes using regular dll? because i donot want to use an extension DLL to export classes. regards Shailesh

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      Shailesh Halankar wrote:

      how do i export classes using regular dll?

      #define DllExport __declspec( dllexport )

      class DllExport C
      {
      int i;
      virtual int func( void )
      { return 1; }
      };


      Nibu thomas A Developer Programming tips[^]  My site[^]

      S 1 Reply Last reply
      0
      • S Shailesh Ha

        how do i export classes using regular dll? because i donot want to use an extension DLL to export classes. regards Shailesh

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        Shailesh Halankar wrote:

        how do i export classes using regular dll? because i donot want to use an extension DLL to export classes.

        In continuation with Nibu, you have to include the lib and header file in your project!

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

        1 Reply Last reply
        0
        • N Nibu babu thomas

          Shailesh Halankar wrote:

          how do i export classes using regular dll?

          #define DllExport __declspec( dllexport )

          class DllExport C
          {
          int i;
          virtual int func( void )
          { return 1; }
          };


          Nibu thomas A Developer Programming tips[^]  My site[^]

          S Offline
          S Offline
          Shailesh Ha
          wrote on last edited by
          #4

          Thanks for the INFO how will the client import the exported class i.e wher should the __declspec( dllimport ) statement be used?

          N 1 Reply Last reply
          0
          • S Shailesh Ha

            how do i export classes using regular dll? because i donot want to use an extension DLL to export classes. regards Shailesh

            E Offline
            E Offline
            Eric Dahlvang
            wrote on last edited by
            #5

            http://www.codeproject.com/dll/RegDLL.asp[^] ---------- Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peters

            1 Reply Last reply
            0
            • S Shailesh Ha

              Thanks for the INFO how will the client import the exported class i.e wher should the __declspec( dllimport ) statement be used?

              N Offline
              N Offline
              Nibu babu thomas
              wrote on last edited by
              #6

              Shailesh Halankar wrote:

              wher should the __declspec( dllimport ) statement be used?

              Replace dllexport by dllimport. Rest is the same.


              Nibu thomas A Developer Programming tips[^]  My site[^]

              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