Hi, That is close to what I am doing, except I am trying to incorporate the capture library, winpcap, into my Windows Forms C++ program. Now the problem is that pcap.h does no define the pcap structures, pcap-int.h does. So I fixed that problem. However, pcap_dumper is not really a structure, so I get a TypeLoadException. To fix this, I had to go into pcap.h and change pcap_dumper and pcap_dumper_t definitions to FILE, which is what these structures really are. So I fixed the problem by taking pcap_dumper and pcap_dumper_t totally out of the header file. Then in my program, I changed the pcap_dumper_t structure to FILE. It is a little convoluted, but that is all I could do.
Terry Braun wrote: > > 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] > ================================================================== ================================================================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/ To unsubscribe use mailto: [EMAIL PROTECTED] ==================================================================
