-
Hello, I'm using SharpPcap version 6.3.0 for a VB.NET Visual Studio 2022 application, and I'm having a problem with the "PacketCapture" structure, which is obsolete. Code: PacketCapture Structure End Structure and Private Sub device_OnPacketArrival(sender As Object, e As PacketCapture) Dim rawPacket = e.header If anyone can help me, THANK YOU |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
@xeron333 PacketCapture is not obsolete, I can't read the code you posted, please format it properly using markdown syntax. |
Beta Was this translation helpful? Give feedback.
-
Hello thank you for your response,I'm new to git ub. Now do you understand my code? PacketCapture Structure End Structure Dim rawPacket = e.header` |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your help. I'm trying to create a class in C and reuse it in VB, but apparently it doesn't work either. |
Beta Was this translation helpful? Give feedback.
PacketCapture
is defined asref struct
, seems this is not supported by VB.NET, see dotnet/vblang#297