| |

VerySource

 Forgot password?
 Register
Search
View: 737|Reply: 2

WSAStartup problem

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-14 09:30:01
| Show all posts |Read mode
Create Client class in WIN32 dynamic library, call WSAStartup function and WSACleanup in class constructor

The following problems occur:

Creating library Debug / ClientDll.lib and object Debug / ClientDll.exp
lient1.obj: error LNK2001: unresolved external symbol __imp__WSAStartup @ 8
lient1.obj: error LNK2001: unresolved external symbol __imp__WSACleanup @ 0

This class can be used in WIN32 console program and MFC program.
Reply

Use magic Report

0

Threads

10

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-4-12 17:15:01
| Show all posts
lib library
Reply

Use magic Report

0

Threads

70

Posts

42.00

Credits

Newbie

Rank: 1

Credits
42.00

 China

Post time: 2020-4-14 10:45:01
| Show all posts
Join in the program

#pragma comment (lib, "ws2_32.lib")
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list