|
-
March 19th, 2007, 09:02 AM
#1
Argument of type void
Hi folks...
Can anyone make sense of this error message?!
Code:
argument of type ‘void (packet_analysis::)(u_char*, const pcap_pkthdr*, const u_char*)’
does not match ‘void (*)(u_char*, const pcap_pkthdr*, const u_char*)’
I originally had this function in main, but after a re-jig i put it in the constructor of the class 'packet_analysis'.
How can i make it match!!
Thanks,
Dom
-
March 19th, 2007, 09:09 AM
#2
Re: Argument of type void
It looks like you're passing a function pointer, whose types aren't a perfect match. Let's see the code you've written.
-
March 19th, 2007, 09:32 AM
#3
Re: Argument of type void
More exactly, you are trying to pass a pointer to member function, where pointer to global function is expected. This does not work. For more info, read following: http://parashift.com/c++-faq-lite/po....html#faq-33.2
Cheers
B+!
'There is no cat' - A. Einstein
Use [code] [/code] tags!
Did YOU share your photo with us at CG Members photo gallery ?
-
March 19th, 2007, 09:36 AM
#4
Re: Argument of type void
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|