Yes! I tried that and it works. Once I set up a window to play it in with the MCIWnd functions the video plays in the window. Thanks alot!
Chris
Yes! I tried that and it works. Once I set up a window to play it in with the MCIWnd functions the video plays in the window. Thanks alot!
Chris
Hello all I have the following two lines of code to play an avi file:
mciSendString("open Res\\test.avi type avivideo alias myfile", NULL, 0, NULL);
mciSendString("play myfile", NULL, 0, NULL);
The problem is that it plays the audio but no video is displayed. I can play the video fine in any media player, but it wont show up in the program, but I know its getting to the file because I can hear the audio. Any suggestions as to what the problem could be? Thanks.
Chris
Hi, I am writing a C++ program and am trying to send an array of integers to a text file, however, when I open the text file, it looks like this: ⰸⰶⰰⰹⰲⰰⰰⰰⰰⰰⰰⰲⰴⰶ At an earlier part in the program, I sent an array of integers, but the file came out like I intended it to. I don't know why it doesn't come out correctly for the other piece of code. This is the code that doesn't work correctly: ofstream game(name.c_str()); if(game.is_open()) { for(int i = 0; i < 81; i++) { game << g_ivalues[i] << ","; } game.close(); }
Please note that all the variable listed are declared. This piece of code does work correctly for me though: ofstream profiles(name.c_str(), ios::out); if(profiles.is_open()) { for(int i = 0; i < 100; i++) { profiles << g_ipuzplayed[i] << ","; } } profiles.close();
Any thoughts on why they don't work the same? Thanks in advance!
Chris