Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

CS925

@CS925
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • mciSendString problem
    C CS925

    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

    C / C++ / MFC help question

  • mciSendString problem
    C CS925

    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

    C / C++ / MFC help question

  • ofstream problems
    C CS925

    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

    C / C++ / MFC c++ ios game-dev data-structures question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups