Environment: VS2005
Code:
#include “stdafx.h”// Add include {
cout< <” argc=”< < argc< < endl;
for(int i=0; i< argc; I++)
{
wcout< <” argv[0]=”< < argv[0]< < endl;
}
cin.get();
return 0;
}
br> <>>
>
Unhandled exception: 0xC0000005: Access conflict occurred while reading position 0x00000000
Code:
#include “stdafx.h”// Add include
cout< <” argc=”< < argc< < endl;
for(int i=0; i< argc; I++)
{
wcout< <” argv[0]=”< < argv[0]< < endl;
}
cin.get();
return 0;
}
br> <>>
>
Unhandled exception: 0xC0000005: Access conflict occurred while reading position 0x00000000