<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>WinPcap can be used within a C++ application without any
problem, you don't need extern "C" or similar stuff. </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>What is the exact linking error you are
encountering?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Have a nice day</FONT></DIV>
<DIV><FONT size=2>GV</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=gslockwood@gmail.com href="mailto:gslockwood@gmail.com">George S.
Lockwood</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=Tom@redtile.com
href="mailto:Tom@redtile.com">Tom@redtile.com</A> ; <A
title=winpcap-users@winpcap.org
href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, August 05, 2006 11:28
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Winpcap-users] Entry Point
in a DLL</DIV>
<DIV><FONT size=2></FONT><BR></DIV>
<DIV>Hello Thomas,<BR><BR>I think I'm trying to do something similar but with
a standard library I (think) am statically linking. I'm getting link
errors about unresolved externals. I am try to build the wpa_cli into a
class. <BR><BR>I think my problem is about a class (cpp) file not
understanding a lib build from straight "C" and thereby not finding a c style
functions.<BR><BR>Either I'm getting forgetful (very possible), or involved
with .net too much too recently to remember (also possible) that I'm forgeting
the way to link C-style functions into a cpp module and call those external
functions. <BR><BR>What am I forgetting?? Or am I forgetting that it is
impossible. I thought I needed to declare the externals with something
like __decl or with "C" inside the cpp file???????<BR></DIV>
<DIV><FONT size=2></FONT> </DIV><FONT size=2></FONT></BLOCKQUOTE>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><BR><BR>thanks for any of your ideas, <BR><BR>george<BR><BR></DIV>
<DIV><SPAN class=gmail_quote>On 8/3/06, <B class=gmail_sendername>Thomas
O'Hare</B> <<A href="mailto:Tom@redtile.com">Tom@redtile.com</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hello
All!<BR><BR>I am using Dev-C++ in C++ mode to try and create an entry point
into my<BR>own DLL's based on the WinPCap Libraries. I need to
export several of<BR>my own functions to languages that do not inherently
support C typed <BR>structures.<BR><BR>I am looking for the cleanest, fasted
way to create an entry point for<BR>my functions so I can use the DLL as a
true library for the programming<BR>languages lacking native structure
support.<BR><BR>I can open DLL's in these languages and call functions, but
especially<BR>"chained" (Next) structures are very very tricky to work with
in any<BR>language that does not have native support for C typed structures.
<BR><BR>Any docs, resources, suggestions, etc, are
welcome.<BR>--<BR><BR>Thanks,<BR>~ Thomas O'Hare ~<BR>President, RedTile,
Inc. - DBA: RedTile Software<BR>Web, Wireless, Network, Database &
Systems Software<BR>+1.407.295.9148 ; +49.8651.717950 ; <A
href="http://www.RedTile.Com/">http://www.RedTile.Com/</A><BR>Operations
Manager; Virtual FoxPro User Group<BR><A
href="mailto:Tom@VFUG.Org">Tom@VFUG.Org</A> ; <A
href="http://www.VFUG.Org/">http://www.VFUG.Org/</A><BR>_______________________________________________<BR>Winpcap-users
mailing list<BR><A
href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</A><BR><A
href="https://www.winpcap.org/mailman/listinfo/winpcap-users">https://www.winpcap.org/mailman/listinfo/winpcap-users</A><BR></BLOCKQUOTE></DIV><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>Winpcap-users
mailing
list<BR>Winpcap-users@winpcap.org<BR>https://www.winpcap.org/mailman/listinfo/winpcap-users<BR></BLOCKQUOTE></BODY></HTML>