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?
Actually it's my thinking.I am using currently both XP and Linux.But as my exeperience says that WindowsXP is a homw of viruses and Linux not.And cracking Linux login password is much more difficult than Windows.and more...
I am developing an application using VC6.
My application uses MCIWnd to play videos.
I am now trying support FLV and MP4 videos.
I go with a codec.
After install K-lite codec, I rename the MP4 and FLV videos into .wmv files. They work.
However, when I play these videos with their own file names (in MP4 and FLV extensions), I get an error "The specified file cannot be played on the specified MCI device..."
It happens when I call the MCIWndOpen function.
I understand that this function considers the file names instead of video headers to determine video formats.
Of course naming all FLV and MP4 videos into .wmv should not be a choice.
i need to create an array with a certain size, the value is stored in an integer (not constant) but for some reason i am unable to initialize an array with the following code:
int size = someclass.somefunction.somevalue;
The EXE is not completely loaded into the memory.
Only portions that are currently executing and are likely to execute later are stored.
So it will depend on the amount of memory you have and the nature of the executing program.
«_Superman_» I love work. It gives me something to do between weekends.
I want to send binary file through Sockets in WindowsXP from server to client.My code is-
hFile=CreateFileA(path, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL);
if (hFile == NULL || hFile == INVALID_HANDLE_VALUE)
hFile = NULL;
for (i=0 ; ; )
j=recv(sock, buf, sizeof(buf), 0);
printf("\n\treceiving file...plz wait.");
if (j <= 0)
i += j;
WriteFile(hFile, buf, j, &dw, 0);
printf("\n\tfile received sucessfully");
printf("\ncann't open file");
for (i=0, endoffile=0 ; ; )
j = fread(buf, 1, sizeof(buf), fp);
if (j < 0)
if (j == 0)
endoffile = 1;
j=send(TheClient, buf, j, 0);
The code is compiled properly but when i want to receive any file.the file received sucessfully.I was thinking that it should be printed on client computer "file received sucessfully" but it is printed only when i close my server.When the server is executing at the receving time it is printed "receiving file...plz wait." yet the file already sucessfully received on client side.
When the server is executing at the receving time it is printed "receiving file...plz wait." yet the file already sucessfully received on client side.
The client side code will continue to attempt to receive data even after the end of the file, as you do not tell the client that there is no more data. As long as the socket remains open the client will try and read from it. You need to send a message from the server to indicate EOF and then the client and server should both close their connections.