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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. I want created a file DLL by ATL ?

I want created a file DLL by ATL ?

Scheduled Pinned Locked Moved ATL / WTL / STL
c++sysadmindebugginghelptutorial
5 Posts 2 Posters 1 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.
  • T Offline
    T Offline
    Thangnc
    wrote on last edited by
    #1

    I created project Client/Server by ATL export file Adsoft.DLL. But Build to appear any error. MySocket.obj : error LNK2001: unresolved external symbol __imp__socket@12 Debug/AdSoftClientDLL.dll : fatal error LNK1120: 1 unresolved externals //Adsoft.idl [id(1), helpstring("method Get")] HRESULT SetPort(); //Adsoft.cpp STDMETHODIMP CMySocket::SetPort() { // TODO: Add your implementation code here SOCKET m_str; m_str=socket(AF_INET,SOCK_STREAM,0);// error when to call function a here if(!m_str)Messabox(NULL,"ERROR !!!","?????",MB_OK) return S_OK; } if can you send back to give me a example Thanks All !

    S 1 Reply Last reply
    0
    • T Thangnc

      I created project Client/Server by ATL export file Adsoft.DLL. But Build to appear any error. MySocket.obj : error LNK2001: unresolved external symbol __imp__socket@12 Debug/AdSoftClientDLL.dll : fatal error LNK1120: 1 unresolved externals //Adsoft.idl [id(1), helpstring("method Get")] HRESULT SetPort(); //Adsoft.cpp STDMETHODIMP CMySocket::SetPort() { // TODO: Add your implementation code here SOCKET m_str; m_str=socket(AF_INET,SOCK_STREAM,0);// error when to call function a here if(!m_str)Messabox(NULL,"ERROR !!!","?????",MB_OK) return S_OK; } if can you send back to give me a example Thanks All !

      S Offline
      S Offline
      Steve S
      wrote on last edited by
      #2

      Have you called the initialisation function for the sockets library? Steve S Developer for hire!

      T 1 Reply Last reply
      0
      • S Steve S

        Have you called the initialisation function for the sockets library? Steve S Developer for hire!

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

        I write all idem.I unused direction for use function this You can help me? I am in urgent need of project Thanks Steve S!

        S 1 Reply Last reply
        0
        • T Thangnc

          I write all idem.I unused direction for use function this You can help me? I am in urgent need of project Thanks Steve S!

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

          Now I've read the question properly... You aren't linking with the WinSock library. You need to add either wsock32.lib or ws2_32.lib to the options for the linker, depending on whether you're using Winsock 1.x or 2.x You do this from the project property pages, specifically the Input property page in the Linker folder. Steve S Developer for hire!

          T 1 Reply Last reply
          0
          • S Steve S

            Now I've read the question properly... You aren't linking with the WinSock library. You need to add either wsock32.lib or ws2_32.lib to the options for the linker, depending on whether you're using Winsock 1.x or 2.x You do this from the project property pages, specifically the Input property page in the Linker folder. Steve S Developer for hire!

            T Offline
            T Offline
            Thangnc
            wrote on last edited by
            #5

            To succeed beyond one's expectations . Thank you very much !

            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