Ohm at first thank you for your fast reply but I've already downloaded the redist.
The only thing I want to do is to realize a small animation only with lines. The thing is I would know
how to do that with Bitmaps because there are many tutorials about that. But with lines or rectangles or something... I don't know
Doesn't has to be GDI+. Could be everything else. Only requirements are drawing, moving, scaling, rotating shapes. I have considered DirectX or OpenGl but it sounds a bit too complicated for only doing such easy things...
There are 3 possible return values for recv: The number of bytes received, 0 if the connection has been closed gracefully, and SOCKET_ERROR if something went wrong. In the last case, you would call WSAGetLastError to obtain the error information. recv will NOT return WSACONNRESET, so you shouldn't check for it. A slightly modified loop might work better for you:
int bytesRecv = 0;
bytesRecv = recv(ConnectSocket, recvbuf, 32, 0);
if (0 == bytesRecv)
} while (SOCKET_ERROR != bytesRecv);
if (SOCKET_ERROR == bytesRecv)
printf("Socket Error: %08X\n", WSAGetLastError());
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
* I have created a MFC DLL
* I added a dialog box into it and create the class for that dialog box
* I have a function that call DoModal for that dialog
* But that function failed and returns an error "1812(The specified image file did not contain a resource section.)"
*Can any one help me in that regards
When i see your reply i think you have problem with mci functions but now that i see your reply it seems that you have a problem with CAnimateCtrl well first you dont need to use create you can insert this control from toolbox.
You said that path is correct well if you use from example clock.avi that is in windows whats happen?
are you getting same error or not,check this file and answer to me,please
When I run the file clock.avi , every thing is OK
But When I use the same program with my own avi file ie: day1.avi , the program does not work.
Is there a problem with my avi file? I can run it with microsoft window media player , no problem.
Hi Mr alex_kenobe
Well i dont know whats your avi file?you have a avi file or you create a avi file in a program like 3dmax and now you want to open it
but if you can open this file with media player and you sure that path is correct in your program i can say one suggestion to you.Used from mci
if you use from mci functions you can open avi,mp3,mpg and.... whit it because you can open clock.avi so your code doesnt any problem and problem is path or avi
but i guess if you can open it with medai player you can open your file with mci.
I hope its helpful for you but if you have questions if i can i help to you.
Tanks for your help, I read from msdn that CAnimateCtrl can only play non-compressed avi file.
I got the avi file from the internet and I donnot know if it is compressed. I am now trying mci and vfw hopefully can get some result.
Do you have any suggestions of how to use mci or vfw?
I am trying to use mciSendString to display the video , how do I postion the vido display in relative to my dialogBased application? , or If I can you other mci commoand which allows me to position the video display.