Re: [WinPcap-users] Using wpdpack with managed C++
THanks, But now I get the same error for pcap_dumper? (TypeLoadException) And this is Managed C++. Shouldn't pcap-int.h have that definition too? Roshan Guy Harris wrote: Gianluca Varenni wrote: 1. Include pcap-int.h instead of pcap.h. This include the actual definition for the type struct pcap ...but be aware that the layout of this structure is subject to change from release to release. == This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/ To unsubscribe use mailto: [EMAIL PROTECTED] == == This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/ To unsubscribe use mailto: [EMAIL PROTECTED] ==
Re: [WinPcap-users] Using wpdpack with managed C++
It was not clear from your mail exactly what you are trying to do, so this may not be helpful. Itt appears that you are trying to mix managed and unmanaged C++ so here is an example of someone doing that: http://www.codeguru.com/Cpp/Cpp/cpp_managed/interop/article.php/c6867/ There is a significant bug when producing a mixed C++ dll however: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vcconMixedDLLLoadingProblem.asp and http://www.codeguru.com/columns/Kate/article.php/c3643/ If this does not help, perhaps you could explain some of what you are trying to do. Terry Punnoose Roshan wrote: Hi, I want to use Windows Forms in Visual Studio .NET 2003 with wpdpack, but I get the error: TypeLoadException, Could not load type pcap from assembly. Is there any way that this can be bypassed? Thanks. Roshan == This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/ To unsubscribe use mailto: [EMAIL PROTECTED] == == This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/ To unsubscribe use mailto: [EMAIL PROTECTED] ==
Re: [WinPcap-users] Using wpdpack with managed C++
On Oct 15, 2004, at 6:56 AM, Punnoose Roshan wrote: Now I get the same TypeLoadException error for pcap_dumper. I found out that this is not a real structure, so I converted all my pcap_dumper_t definitions to FILE, Note also that the fact that pcap_dumper_t happens to be the same as FILE is also subject to change from release to release. == This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/ To unsubscribe use mailto: [EMAIL PROTECTED] ==
Re: [WinPcap-users] Using wpdpack with managed C++
- Original Message - From: Punnoose Roshan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 4:26 PM Subject: [WinPcap-users] Using wpdpack with managed C++ Hi, I want to use Windows Forms in Visual Studio .NET 2003 with wpdpack, but I get the error: TypeLoadException, Could not load type pcap from assembly. Is there any way that this can be bypassed? Thanks. Hi. I think that you are encountering a TypeLoadException in module Unknown. The problem is due to the fact that the standard winpcap include file pcap.h contains only a forward declaration of struct pcap, but not the actual definition of it. As a consequence, the managed c++ compiler does not emit any metadata for that type, since there's no definition for it. There are two solutions to the problem: 1. Include pcap-int.h instead of pcap.h. This include the actual definition for the type struct pcap 2. add a fake definition of struct pcap. The simplest one is struct pcap{};. Have a nice day GV Roshan == This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/ To unsubscribe use mailto: [EMAIL PROTECTED] == == This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/ To unsubscribe use mailto: [EMAIL PROTECTED] ==