S
S
Sunsh1ne2016-10-05 21:42:00
C++ / C#
Sunsh1ne, 2016-10-05 21:42:00

How to correctly connect the library to a new project?

Hello.
I created a project in VS with the SharpPcap
library. It works fine on the local computer, but when I transfer the project to another machine, it swears that it cannot connect libraries (DLLNotFoundException).
Tell me how to properly build a program from scratch by including this library. I have been writing in C# in VS for a month, so it is desirable without terms and step by step.

Необработанное исключение: System.DllNotFoundException: Не удается загрузить DLL
 "wpcap": Не найден указанный модуль. (Исключение из HRESULT: 0x8007007E)
   в SharpPcap.WinPcap.SafeNativeMethods.pcap_findalldevs_ex(String source, IntP
tr auth, IntPtr& alldevs, StringBuilder errbuf)
   в SharpPcap.WinPcap.WinPcapDeviceList.Devices(String rpcapString, RemoteAuthe
ntication remoteAuthentication) в C:\Users\user\Documents\С#,C++ projects\sniffer
\sharppcap-master\SharpPcap\WinPcap\WinPcapDeviceList.cs:строка 123
   в SharpPcap.WinPcap.WinPcapDeviceList.GetDevices() в C:\Users\user\Documents\С
#,C++ projects\sniffer\sharppcap-master\SharpPcap\WinPcap\WinPcapDeviceList.cs:с
трока 170
   в SharpPcap.WinPcap.WinPcapDeviceList.Refresh() в C:\Users\user\Documents\С#,C
++ projects\sniffer\sharppcap-master\SharpPcap\WinPcap\WinPcapDeviceList.cs:стро
ка 181
   в SharpPcap.WinPcap.WinPcapDeviceList..ctor() в C:\Users\user\Documents\С#,C++
 projects\sniffer\sharppcap-master\SharpPcap\WinPcap\WinPcapDeviceList.cs:строка
 77
   в SharpPcap.WinPcap.WinPcapDeviceList.get_Instance() в C:\Users\user\Documents
\С#,C++ projects\sniffer\sharppcap-master\SharpPcap\WinPcap\WinPcapDeviceList.cs
:строка 51
   в SharpPcap.CaptureDeviceList..ctor() в C:\Users\user\Documents\С#,C++ project
s\sniffer\sharppcap-master\SharpPcap\CaptureDeviceList.cs:строка 97
   в SharpPcap.CaptureDeviceList.get_Instance() в C:\Users\user\Documents\С#,C++
projects\sniffer\sharppcap-master\SharpPcap\CaptureDeviceList.cs:строка 49
   в Class.project_name.Main(String[] args) в C:\Users\днс\Documents\Visual Studi
o 2015\Projects\path...\project_name.cs:строка 37

VS 2015, Russified.
thanks for the help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VoidVolker, 2016-10-05
@VoidVolker

This means that when transferring the project to another PC, the library file was not transferred, i. the project was only partially rescheduled. You need to find where the file of the connected library is located locally and transfer this file to another PC.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question