Click here to Skip to main content
15,889,909 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help getting this template to compile under VC++ 2003 Pin
Joaquín M López Muñoz27-Feb-05 0:41
Joaquín M López Muñoz27-Feb-05 0:41 
GeneralWinsock2 and getting IP address of a CONNECTING entity Pin
TheBurninator25-Feb-05 15:18
sussTheBurninator25-Feb-05 15:18 
GeneralRe: Winsock2 and getting IP address of a CONNECTING entity Pin
Ravi Bhavnani25-Feb-05 16:03
professionalRavi Bhavnani25-Feb-05 16:03 
GeneralRe: Winsock2 and getting IP address of a CONNECTING entity Pin
TheBurninator26-Feb-05 6:22
sussTheBurninator26-Feb-05 6:22 
GeneralRe: Winsock2 and getting IP address of a CONNECTING entity Pin
cmk27-Feb-05 10:29
cmk27-Feb-05 10:29 
GeneralRe: Winsock2 and getting IP address of a CONNECTING entity Pin
Theburninator1-Mar-05 10:05
sussTheburninator1-Mar-05 10:05 
GeneralRe: Winsock2 and getting IP address of a CONNECTING entity Pin
cmk1-Mar-05 10:37
cmk1-Mar-05 10:37 
GeneralRe: Winsock2 and getting IP address of a CONNECTING entity Pin
TheBurninator1-Mar-05 10:59
sussTheBurninator1-Mar-05 10:59 
I'm actually fairly green in terms of Programming with winsock, and using intermediate programming steps such as these. Basically, I'm not rightly sure how to set up the callback function, or ANY callback function....

I'm thinking I'm getting a little warmer, do I just add:

int CALLBACK EXPORT WSAAccept()::ConditionFunc(IN LPWSABUF lpCallerId,
IN LPWSABUF lpCallerData,
IN OUT LPQOS lpSQOS,
IN OUT LPQOS lpGQOS,
IN LPWSABUF lpCalleeId,
OUT LPWSABUF lpCalleeData,
OUT GROUP FAR *g,
IN DWORD_PTR dwCallbackData)
{
//condition code
}

And that should work? I basically add this just like a normal function right now...to the tail end of my code getting a few syntax errors:

error C2061: syntax error : identifier 'WSAAccept'
error C2059: syntax error : ';'
error C2059: syntax error : ':'

Again, Callback functions are a fairly new concept for me, as is about everything to do with winsock Sniff | :^)
GeneralRe: Winsock2 and getting IP address of a CONNECTING entity Pin
cmk1-Mar-05 11:13
cmk1-Mar-05 11:13 
GeneralRe: Winsock2 and getting IP address of a CONNECTING entity Pin
TheBurninator1-Mar-05 11:57
sussTheBurninator1-Mar-05 11:57 
GeneralRe: Winsock2 and getting IP address of a CONNECTING entity Pin
TheBurninator1-Mar-05 12:19
sussTheBurninator1-Mar-05 12:19 
GeneralRe: Winsock2 and getting IP address of a CONNECTING entity Pin
TheBurninator1-Mar-05 12:31
sussTheBurninator1-Mar-05 12:31 
GeneralRe: Winsock2 and getting IP address of a CONNECTING entity Pin
cmk1-Mar-05 17:05
cmk1-Mar-05 17:05 
GeneralHelp! how to alter the ScrollBar control's color Pin
kcynic25-Feb-05 15:09
kcynic25-Feb-05 15:09 
GeneralRe: Help! how to alter the ScrollBar control's color Pin
Branislav25-Feb-05 21:48
Branislav25-Feb-05 21:48 
GeneralRe: Help! how to alter the ScrollBar control's color Pin
kcynic28-Feb-05 14:29
kcynic28-Feb-05 14:29 
GeneralA little unicode question. Pin
Member 1219625225-Feb-05 14:02
Member 1219625225-Feb-05 14:02 
GeneralRe: A little unicode question. Pin
PJ Arends25-Feb-05 14:16
professionalPJ Arends25-Feb-05 14:16 
GeneralRe: A little unicode question. Pin
Member 1219625226-Feb-05 0:36
Member 1219625226-Feb-05 0:36 
Generalc++ bool variable Pin
tnvols25-Feb-05 12:46
tnvols25-Feb-05 12:46 
GeneralRe: c++ bool variable Pin
Maximilien25-Feb-05 14:50
Maximilien25-Feb-05 14:50 
GeneralRe: c++ bool variable Pin
tnvols25-Feb-05 16:04
tnvols25-Feb-05 16:04 
GeneralRe: c++ bool variable Pin
Ravi Bhavnani25-Feb-05 16:10
professionalRavi Bhavnani25-Feb-05 16:10 
GeneralRe: c++ bool variable Pin
tnvols25-Feb-05 16:32
tnvols25-Feb-05 16:32 
GeneralRe: c++ bool variable Pin
rbid25-Feb-05 20:01
rbid25-Feb-05 20:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.