Click here to Skip to main content
15,910,210 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++: How to declare constant array of pointers of TCHAR Pin
toxcct12-Aug-08 5:12
toxcct12-Aug-08 5:12 
GeneralRe: C++: How to declare constant array of pointers of TCHAR Pin
David Crow12-Aug-08 5:30
David Crow12-Aug-08 5:30 
QuestionAppilication hang during DB down Pin
krishnan.s12-Aug-08 3:32
krishnan.s12-Aug-08 3:32 
QuestionSemi-transparent drawing Pin
Nuri Ismail12-Aug-08 3:28
Nuri Ismail12-Aug-08 3:28 
AnswerRe: Semi-transparent drawing Pin
Mark Salsbery12-Aug-08 4:41
Mark Salsbery12-Aug-08 4:41 
GeneralRe: Semi-transparent drawing Pin
Nuri Ismail12-Aug-08 4:49
Nuri Ismail12-Aug-08 4:49 
AnswerRe: Semi-transparent drawing Pin
vikas amin12-Aug-08 5:00
vikas amin12-Aug-08 5:00 
QuestionWSAStartup generates unhandled exception Pin
jimjim73312-Aug-08 2:51
jimjim73312-Aug-08 2:51 
I have just added this section of code to the initinstance of my app.

WSADATA wsaData;
int iResult = WSAStartup(MAKEWORD(2,2),&wsaData);
if (iResult != NO_ERROR) {
OutputDebugString("Error at WSAStartup()\r\n");
}

just before this line

int nResponse = dlg.DoModal();

when this is run an unhandled exception occurs
the message reads

"Unhandled Exception in MyApp.exe: 0xC0000005: Access Violation"

When I click 'OK' the code breaks at this line
size_type size() const
{return (_First == 0 ? 0 : _Last - _First); }
which is line 114 in the VECTOR.h file from the VC98\include directory.

Anyone have any ideas, I am using VC6.

Cheers

Jim Confused | :confused:
AnswerRe: WSAStartup generates unhandled exception Pin
Jijo.Raj12-Aug-08 3:14
Jijo.Raj12-Aug-08 3:14 
AnswerRe: WSAStartup generates unhandled exception Pin
David Crow12-Aug-08 3:58
David Crow12-Aug-08 3:58 
GeneralRe: WSAStartup generates unhandled exception Pin
jimjim73312-Aug-08 4:07
jimjim73312-Aug-08 4:07 
QuestionRe: WSAStartup generates unhandled exception Pin
Mark Salsbery12-Aug-08 4:51
Mark Salsbery12-Aug-08 4:51 
QuestionRe: WSAStartup generates unhandled exception Pin
jimjim73312-Aug-08 4:59
jimjim73312-Aug-08 4:59 
AnswerRe: WSAStartup generates unhandled exception Pin
Mark Salsbery12-Aug-08 5:11
Mark Salsbery12-Aug-08 5:11 
GeneralRe: WSAStartup generates unhandled exception Pin
jimjim73312-Aug-08 5:25
jimjim73312-Aug-08 5:25 
GeneralRe: WSAStartup generates unhandled exception Pin
Mark Salsbery12-Aug-08 5:36
Mark Salsbery12-Aug-08 5:36 
GeneralRe: WSAStartup generates unhandled exception Pin
jimjim73312-Aug-08 5:44
jimjim73312-Aug-08 5:44 
GeneralRe: WSAStartup generates unhandled exception Pin
Mark Salsbery12-Aug-08 6:09
Mark Salsbery12-Aug-08 6:09 
GeneralRe: WSAStartup generates unhandled exception Pin
jimjim73312-Aug-08 8:39
jimjim73312-Aug-08 8:39 
QuestionRe: WSAStartup generates unhandled exception Pin
David Crow12-Aug-08 5:27
David Crow12-Aug-08 5:27 
AnswerRe: WSAStartup generates unhandled exception Pin
jimjim73312-Aug-08 5:45
jimjim73312-Aug-08 5:45 
GeneralRe: WSAStartup generates unhandled exception Pin
David Crow12-Aug-08 5:48
David Crow12-Aug-08 5:48 
GeneralRe: WSAStartup generates unhandled exception Pin
Roger Stoltz12-Aug-08 6:16
Roger Stoltz12-Aug-08 6:16 
GeneralRe: WSAStartup generates unhandled exception Pin
jimjim73312-Aug-08 8:41
jimjim73312-Aug-08 8:41 
QuestionRe: WSAStartup generates unhandled exception Pin
jimjim73312-Aug-08 10:34
jimjim73312-Aug-08 10:34 

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.