There is the situation:
at run-time an exception occur: let's say memcpy with negative pozition in destination buffer. e.g. memcpy(&buff[negative_index], ...)
off-course, __except will catch this and run exceptionhandler function
in this function is a call for GetModuleFileName() and OS at this point report that is unable to process call because of heap corruption!
I'm moved this call to main application, making an global variable, but in second try, same heppens but in call of CreateFile(), but this function must be right there to open exception log file for writing.
My question is: which functions are preferred or allowed in exception handling. These two functions are system ones. exception handler haven't problem with memcpy, strcat etc to prepare exception log file name. But CreateFile() (or some sort of fopen) is essential part of any exception logging.
I am unable to reproduce your problem, I have no problem calling GetModuleFileName() or CreateFile() from within my exception handler. Avoid C runtime library[^] functions and call only system functions, e.g. Kernel32.lib User32.lib.
I want to store info into Mysql and retrieve back into console application and display it to the user. Iam new to MySql what are the settings that i have to do and any samples related to it please help me regarding it.
Maybe the extra characters at the end of the string is CR and LF? I think you need to use the CRYPT_STRING_NOCR and CRYPT_STRING_NOCRLF to disable appending the newline characters when using the CryptBinaryToString Function[^]. Or you could just remove them as I did in this example:
I am sure everyone has noticed whenever you are watching a program on the major TV networks after every commercial break when the program resumes they have another pop-up advertisement. These advertisements take up the bottom third of the screen. I find this annoying. I have just seen a commercial, now I want to see the program not another advertisement.
Has anyone thought of making a software program that would block these stupid advertisements that come up during the first few seconds during the continuation or start of a program?
I would happily pay for such an application for my cable box.
I discussed this with my cable provider they said it is generated from the network nad they can't do anything about it. I think it is another signal piggybacked onto their primary one. I would think that this signal could easily be filter out.
TV content providers would be "clueless" if they have split signals for normal shows and advertisement to be sent to a customer's cablebox/receiver; and I'm certain a advertiser would not be happy about that either.
The cable box probably receive the full content, advertisement and show in one nice package.
Either they are "clueless" or greedy. Let us face a simple fact. My internet browser lets me block pop-ups and it is done using some type of software. It should be simple to block a piggybacked signal.
If this keeps up I will start watching all my programs over the internet. This offers me two benefits: 1 - Limited commercials. 2 - No pop-up advertisements at the start or continuation of a program.
I am using WindowsXP.I want to send integer no. through sockets.Actually to send an array through sockets we have to use send(socket_name,array,sizeof(array),flag).But i don't know whats the case when integer comes?