Click here to Skip to main content
15,899,314 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: A very hard question? friend function again! Pin
CPallini8-Nov-09 5:13
mveCPallini8-Nov-09 5:13 
AnswerRe: A very hard question? friend function again! Pin
N a v a n e e t h8-Nov-09 6:07
N a v a n e e t h8-Nov-09 6:07 
GeneralRe: A very hard question? friend function again! Pin
wanchao5078-Nov-09 16:29
wanchao5078-Nov-09 16:29 
GeneralRe: A very hard question? friend function again! Pin
N a v a n e e t h8-Nov-09 19:37
N a v a n e e t h8-Nov-09 19:37 
AnswerRe: A very hard question? friend function again! Pin
wanchao5078-Nov-09 16:10
wanchao5078-Nov-09 16:10 
QuestionStatic variable Pin
kumar sanghvi8-Nov-09 1:39
kumar sanghvi8-Nov-09 1:39 
AnswerRe: Static variable Pin
Richard MacCutchan8-Nov-09 2:13
mveRichard MacCutchan8-Nov-09 2:13 
QuestionWeird situation with WinSock Pin
hxhl957-Nov-09 19:19
hxhl957-Nov-09 19:19 
Alright, I've ran into a problem that I'm really confused over:

I'm writing a simple mail client. It runs fine on my computer (Windows XP, SP2). However, when ran on a Vista machine, it crashes. Not as in BSOD-crash, it's more like the whole system just freezes over. A friend of mine, who was testing it on her vista machine, she says that everything just freezes (including the mouse) and the few times she had music on,

*the last few times
*i had musci on
*but not this time
*and it like..
*Stutters
*in that spot

I managed to trace it down to here:
MessageBox(NULL,"got here 1","okay",MB_OK);

closesocket(hSocket);
hSocket = NULL;

MessageBox(NULL,"got here 3","okay",MB_OK);

The first msgbox shows, but the second doesn't. (friend of mine isn't exactly computer-savvy, so I put the messageboxs in there so she could test the app).

I'm really stumped by this, because it works fine on XP. What does Vista change that doesn't allow the proper disconnection and closing of a socket?

If it changes anything, this is all happening in a seperate thread, started by a call to AfxBeginThread inside a WH_KEYBOARD_LL callback function. But that shouldn't make a difference, should it?

If any more info is needed, just ask. It's a rather large piece of code, so it's hard for me to describe everything that's going on.

Thanks in advance. Smile | :)
AnswerRe: Weird situation with WinSock Pin
Code-o-mat8-Nov-09 0:01
Code-o-mat8-Nov-09 0:01 
GeneralRe: Weird situation with WinSock Pin
hxhl958-Nov-09 6:41
hxhl958-Nov-09 6:41 
AnswerRe: Weird situation with WinSock Pin
David Crow9-Nov-09 3:20
David Crow9-Nov-09 3:20 
Questionwin32 prog Pin
himmi20097-Nov-09 16:40
himmi20097-Nov-09 16:40 
GeneralRe: win32 prog Pin
himmi20097-Nov-09 16:41
himmi20097-Nov-09 16:41 
AnswerRe: win32 prog Pin
«_Superman_»7-Nov-09 18:38
professional«_Superman_»7-Nov-09 18:38 
AnswerRe: win32 prog Pin
himmi20098-Nov-09 4:17
himmi20098-Nov-09 4:17 
GeneralRe: win32 prog Pin
«_Superman_»8-Nov-09 6:13
professional«_Superman_»8-Nov-09 6:13 
QuestionRe: win32 prog Pin
David Crow9-Nov-09 3:23
David Crow9-Nov-09 3:23 
QuestionSerialization from a CPropertypage class behaves differently [modified] Pin
al25007-Nov-09 14:18
al25007-Nov-09 14:18 
AnswerRe: Serialization from a CPropertypage class behaves differently Pin
«_Superman_»7-Nov-09 18:41
professional«_Superman_»7-Nov-09 18:41 
GeneralRe: Serialization from a CPropertypage class behaves differently [modified] Pin
al25008-Nov-09 8:04
al25008-Nov-09 8:04 
QuestionBeginner question using headers Pin
Jacob Dixon7-Nov-09 10:49
Jacob Dixon7-Nov-09 10:49 
AnswerRe: Beginner question using headers Pin
Jacob Dixon7-Nov-09 10:53
Jacob Dixon7-Nov-09 10:53 
GeneralRe: Beginner question using headers Pin
«_Superman_»7-Nov-09 10:57
professional«_Superman_»7-Nov-09 10:57 
AnswerRe: Beginner question using headers Pin
«_Superman_»7-Nov-09 10:56
professional«_Superman_»7-Nov-09 10:56 
GeneralRe: Beginner question using headers Pin
Jacob Dixon7-Nov-09 11:30
Jacob Dixon7-Nov-09 11:30 

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.