I'm getting an error, I really don't kow what to do with it.
Don't know what to do with that error? Here's a few options:
1. Read the error
2. Google the error
3. Copy and paste the exact error here and indicate which line in your code this error is relevant to.
It's true I didn't specified the error my bad sorry
It's not on a line it's a kind of general error the code compile evrythings run but i'm getting an error of type : buffer overrun so I,m realy confuse and I don't know what to do
A buffer overrun has occurred in Game.exe which has corrupted the program's internal state. Press Break to debug the program or Continue to terminate the program.
For more details please see Help topic 'How to debug Buffer Overrun Issues'.
STATUS_STACK_BUFFER_OVERRUN encountered
Game.exe has triggered a breakpoint.
The program '[9168] Game.exe' has exited with code -1073740791 (0xc0000409).
I don't think the error is occurring within the code you posted. Can you put debug print statements throughout your code to see exactly where it stops on the error?
Also, out << *lpszName << "\n";
This only prints the first character, not the whole string.
1. I didn't understand your question?
2. No need to bump like that, you can edit your posts, there is a Edit button on the bottom-right of a post
3. Uhm, no, April Fools' joke, no HL3.