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. Visual Basic
  4. winsock error

winsock error

Scheduled Pinned Locked Moved Visual Basic
helpquestion
14 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.
  • D Dave Kreskowiak

    You don't have the MSWinsock .DLL on your computer and regsitered. It's on his machine because he developed the application with the reference to it. He needs to supply you with the .DLL file, most likely winsock.dll, he used and any other .DLL files in the bin directory he got the finshed .EXE from. You then need to copy that .DLL into your C:\WINNT\System32 or C:\WINDOWS\System32 folder (WinNT or better), register the .DLL using REGSVR32 and the remaining .DLL's into the folder with your .EXE. Then your app should work. Better yet! Tell him to make an Installer Project and add it his solution so you can install the application and any needed files. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

    G Offline
    G Offline
    GaryKoh
    wrote on last edited by
    #3

    is there any way that i can do it without his help? cause temporary now he is not around for me to contact him can i download or install this .dll file from anywhere? Gary

    D 1 Reply Last reply
    0
    • G GaryKoh

      is there any way that i can do it without his help? cause temporary now he is not around for me to contact him can i download or install this .dll file from anywhere? Gary

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #4

      Another Windows machine... The problem you're going to run into is that you MUST get the version that was used to build the application. It's kind of odd that you don't have this .DLL. The other part of the problem is that you probably don't have the Interop .DLL that was generated when the application was built. Without that, you could get the correct WinSock.DLL, but still be unable to use it. You might also have to have WSock32.DLL... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      G 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Another Windows machine... The problem you're going to run into is that you MUST get the version that was used to build the application. It's kind of odd that you don't have this .DLL. The other part of the problem is that you probably don't have the Interop .DLL that was generated when the application was built. Without that, you could get the correct WinSock.DLL, but still be unable to use it. You might also have to have WSock32.DLL... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        G Offline
        G Offline
        GaryKoh
        wrote on last edited by
        #5

        let me get this right each program i build have a specific .dll file this means that if i wish to move the program to test on other windows/computer, i must copy the .dll file together? which folder should i get the .dll file from? shouldn't VB.Net able to run all application? below is the coding that provide me with the error Friend WithEvents w1 As AxMSWinsockLib.AxWinsock( Me.w1 = New AxMSWinsockLib.AxWinsock() AxMSWinsockLib.DMSWinsockControlEvents_ConnectionRequestEvent AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent The referenced component 'AxMSWinsockLib' could not be found. Could not load the type library. Library not registered. The referenced component 'MSWinsockLib' could not be found. Could not load the type library. Library not registered. could this be the problem that i did not register after installation or during installation some of this file is not installed? or is it that i need to make some adjustment sorry to trouble you so much Dave but i really need this help thank you Gary

        D 1 Reply Last reply
        0
        • G GaryKoh

          let me get this right each program i build have a specific .dll file this means that if i wish to move the program to test on other windows/computer, i must copy the .dll file together? which folder should i get the .dll file from? shouldn't VB.Net able to run all application? below is the coding that provide me with the error Friend WithEvents w1 As AxMSWinsockLib.AxWinsock( Me.w1 = New AxMSWinsockLib.AxWinsock() AxMSWinsockLib.DMSWinsockControlEvents_ConnectionRequestEvent AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent The referenced component 'AxMSWinsockLib' could not be found. Could not load the type library. Library not registered. The referenced component 'MSWinsockLib' could not be found. Could not load the type library. Library not registered. could this be the problem that i did not register after installation or during installation some of this file is not installed? or is it that i need to make some adjustment sorry to trouble you so much Dave but i really need this help thank you Gary

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #6

          WHen the application was built, in the bin directory where the final .EXE file is found, you will find .DLL file(s) that start with Interop.whatever.dll. These files MUST be distributed with the application .EXE file. If you don't have these files AND the .OCX file that they reference, you will get the error that your describing. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          G 1 Reply Last reply
          0
          • D Dave Kreskowiak

            WHen the application was built, in the bin directory where the final .EXE file is found, you will find .DLL file(s) that start with Interop.whatever.dll. These files MUST be distributed with the application .EXE file. If you don't have these files AND the .OCX file that they reference, you will get the error that your describing. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            G Offline
            G Offline
            GaryKoh
            wrote on last edited by
            #7

            hello Dave i manage to get the wsock32.dll file which is not available in my computer anyway since you have mention that those two other .dll file is only available upon application development so is there any other way to recreate those two .dll file on my own? cause i manage to call up my friend cellphone and he told me that the program he give me is the only copy after he formated his computer then i search a few other computer that are available at my college but i have no luck in finding the .dll file so is it possible for me to recreate them? cause those two line is the example i need to complete my assignment so if i cant try the code i wont know how im going to apply it thank you for all your help and sorry to trouble you so much

            D 1 Reply Last reply
            0
            • G GaryKoh

              hello Dave i manage to get the wsock32.dll file which is not available in my computer anyway since you have mention that those two other .dll file is only available upon application development so is there any other way to recreate those two .dll file on my own? cause i manage to call up my friend cellphone and he told me that the program he give me is the only copy after he formated his computer then i search a few other computer that are available at my college but i have no luck in finding the .dll file so is it possible for me to recreate them? cause those two line is the example i need to complete my assignment so if i cant try the code i wont know how im going to apply it thank you for all your help and sorry to trouble you so much

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #8

              You would have to recreate the IDENTICAL references he made in his app. You could use TLBIMP on the .OCX and .DLL files that he used to recreate the missing Interop.*.DLL's. But you have to get that list from him. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

              G 1 Reply Last reply
              0
              • D Dave Kreskowiak

                You would have to recreate the IDENTICAL references he made in his app. You could use TLBIMP on the .OCX and .DLL files that he used to recreate the missing Interop.*.DLL's. But you have to get that list from him. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                G Offline
                G Offline
                GaryKoh
                wrote on last edited by
                #9

                today something odd have happen i try my application on 1 of my college computer and the missing winsock file pop-up i double check on my cd which the original program was and there is no winsock file in the bin but after i compile at that particular computer, it show up so Dave can i know why this happen and what file can i copy that can cause the 2 file to auto generate? my lecturer say may be is my windows problem or when i install the program some file is missing im getting blur on this i think this might the last time i'll disturb you on this matter thank you Gary

                D 2 Replies Last reply
                0
                • G GaryKoh

                  today something odd have happen i try my application on 1 of my college computer and the missing winsock file pop-up i double check on my cd which the original program was and there is no winsock file in the bin but after i compile at that particular computer, it show up so Dave can i know why this happen and what file can i copy that can cause the 2 file to auto generate? my lecturer say may be is my windows problem or when i install the program some file is missing im getting blur on this i think this might the last time i'll disturb you on this matter thank you Gary

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #10

                  It appeared in the bin folder because the compiler copied it there. The file is needed by your application because of the reference your created. If the 2 Interop.*.dll files are not there, it's because they are not needed... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                  1 Reply Last reply
                  0
                  • G GaryKoh

                    today something odd have happen i try my application on 1 of my college computer and the missing winsock file pop-up i double check on my cd which the original program was and there is no winsock file in the bin but after i compile at that particular computer, it show up so Dave can i know why this happen and what file can i copy that can cause the 2 file to auto generate? my lecturer say may be is my windows problem or when i install the program some file is missing im getting blur on this i think this might the last time i'll disturb you on this matter thank you Gary

                    D Offline
                    D Offline
                    Dave Kreskowiak
                    wrote on last edited by
                    #11

                    The file with the little yellow "!" next to it is the one that is missing. Without that file, you can't compiler the project. That's why it will only compile on one machine. That one machine has the file it needs to compile this thing. Go back to that machine and search for the file that the other machines put that "!" next to. Copy that file to the other machine, in the same folder that you found it in, then you should be able to compile the project. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                    G 1 Reply Last reply
                    0
                    • D Dave Kreskowiak

                      The file with the little yellow "!" next to it is the one that is missing. Without that file, you can't compiler the project. That's why it will only compile on one machine. That one machine has the file it needs to compile this thing. Go back to that machine and search for the file that the other machines put that "!" next to. Copy that file to the other machine, in the same folder that you found it in, then you should be able to compile the project. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                      G Offline
                      G Offline
                      GaryKoh
                      wrote on last edited by
                      #12

                      hello dave did you receive my mail? if not this is what im trying to tell you 1. i try copying a lot of folder and files but none of it work 2. thinking of changing the codings to a much simplier that wont cause any error as before 3. asking you for advise and suggestion on how to recode so it is similiar to those using winsock or should i just use the tutorial in MSDN website 4. if possible tell me which folder to copy 5. telling you that i am very thankful that you are willingly to help me thats all thank you Gary

                      D 1 Reply Last reply
                      0
                      • G GaryKoh

                        hello dave did you receive my mail? if not this is what im trying to tell you 1. i try copying a lot of folder and files but none of it work 2. thinking of changing the codings to a much simplier that wont cause any error as before 3. asking you for advise and suggestion on how to recode so it is similiar to those using winsock or should i just use the tutorial in MSDN website 4. if possible tell me which folder to copy 5. telling you that i am very thankful that you are willingly to help me thats all thank you Gary

                        D Offline
                        D Offline
                        Dave Kreskowiak
                        wrote on last edited by
                        #13

                        What mail? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                        G 1 Reply Last reply
                        0
                        • D Dave Kreskowiak

                          What mail? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                          G Offline
                          G Offline
                          GaryKoh
                          wrote on last edited by
                          #14

                          some sort like a thank you mail but anyway thanks for all your help:) Gary

                          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