5
Contributors
6
Replies
8
Views
6 Years
Discussion Span
Last Post by Ancient Dragon
0

I once crashed the entire Unix operating system with a one-line statement: int* ptr = malloc(sizeof(int) * (MAX_INT_SIZE+1)); MS-Windows operating system today is pretty stable and won't allow a single program to crash the entire os. I haven't seen such a crash in quite a few years.

Edited by Ancient Dragon: n/a

0

Hop in your time machine. Set the date for about 1999. Look into WindowsME, and earlier versions of Windows. After that, the NT kernel came into use from the server line, and that pretty much ended these kinds of shenanigans.

0

for the pointers you need just include <windows.h> There's nothing magical about it -- it's just the standard run-of-the-mill char pointer. Whether its char* or wchar_t* depends on whether you are compiling your program for UNICODE or not. If you don't need UNICODE for non-English languages then turn it off.

Edited by Ancient Dragon: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.