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. Dlls:Could you help me ? (I come from china .)

Dlls:Could you help me ? (I come from china .)

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

    Hi, How can I export a Func ,object and so on in Dlls .I want to create a Dll for PB .i think it's very easy to you,but it's very hard to me ,because i come from china ,my mother lauguage is chinese . can anybody help me ? give me an example .:confused: Thanks Hellin

    H 3 Replies Last reply
    0
    • H Hellin

      Hi, How can I export a Func ,object and so on in Dlls .I want to create a Dll for PB .i think it's very easy to you,but it's very hard to me ,because i come from china ,my mother lauguage is chinese . can anybody help me ? give me an example .:confused: Thanks Hellin

      H Offline
      H Offline
      Hellin
      wrote on last edited by
      #2

      Could anyone help me ? I really really come from china.:suss:

      K 1 Reply Last reply
      0
      • H Hellin

        Could anyone help me ? I really really come from china.:suss:

        K Offline
        K Offline
        Kyudos
        wrote on last edited by
        #3

        Try something like... (This comes from a wrapper around the NetUserAdd function) Declare your function / routine like this... extern "C" int __declspec(dllexport) AddUserAccount( LPSTR domain, const char *acct, const char *pass, const char * comment)

        1 Reply Last reply
        0
        • H Hellin

          Hi, How can I export a Func ,object and so on in Dlls .I want to create a Dll for PB .i think it's very easy to you,but it's very hard to me ,because i come from china ,my mother lauguage is chinese . can anybody help me ? give me an example .:confused: Thanks Hellin

          H Offline
          H Offline
          Hellin
          wrote on last edited by
          #4

          Hi ,Judd Thanks a lot .What is the "__stdcall" different from the "__declspec" .I am trying ...I think my enlish is very bad .are you American? Good luck:~ Hellin

          K 1 Reply Last reply
          0
          • H Hellin

            Hi ,Judd Thanks a lot .What is the "__stdcall" different from the "__declspec" .I am trying ...I think my enlish is very bad .are you American? Good luck:~ Hellin

            K Offline
            K Offline
            Kyudos
            wrote on last edited by
            #5

            No problem, "__stdcall" and "__declspec" are calling conventions, and effect how argumetns are passed (e.g. by ref or by val) and also how they are 'decorated' when externalised. You might find some use reading here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/\_core\_adjusting\_naming\_conventions.asp (I'm actually English and since you are talking about __stdcall are you doing mixed language with FORTRAN by any chance?)

            H 1 Reply Last reply
            0
            • K Kyudos

              No problem, "__stdcall" and "__declspec" are calling conventions, and effect how argumetns are passed (e.g. by ref or by val) and also how they are 'decorated' when externalised. You might find some use reading here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/\_core\_adjusting\_naming\_conventions.asp (I'm actually English and since you are talking about __stdcall are you doing mixed language with FORTRAN by any chance?)

              H Offline
              H Offline
              Hellin
              wrote on last edited by
              #6

              Hi, buddy That all right .a Func of DLLs for PB must be de Declared like this "__stdcall" .Others don't work .do you understand me ? My craft brother. Thank you very much . Hellin:omg:

              1 Reply Last reply
              0
              • H Hellin

                Hi, How can I export a Func ,object and so on in Dlls .I want to create a Dll for PB .i think it's very easy to you,but it's very hard to me ,because i come from china ,my mother lauguage is chinese . can anybody help me ? give me an example .:confused: Thanks Hellin

                H Offline
                H Offline
                Hellin
                wrote on last edited by
                #7

                Hi,buddy Sorry ,i will go to the class.I must leave . see you bye hellin

                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