The Game Creators
The Game Creators Home Online Shop Click to Login
  Hot: Christmas CompetitionNovember NewsletterModel Pack 36DB Pro Pack 2009DGS BonanzaCharacter PackFPS Creator Bonanza;
The Game Creators
Dark GDK / Playing animations on Dark GDK

Go to the first page of this board Return to the Forum Menu Post Message
2 Messages - Page   of 1   
Bookmark and Share Search the Forum

Author Message
darbiter

User


Joined: Tue Oct 27th 2009
Location: Cyberspace
Posted: 6th Nov 2009 20:16           | link | toggle

I've read it has been removed.

How could I use it? With an older version?
I Found all the commands on the help that comes with the standard version, and the commands are on the help, and I get no error at all on the compiler when using them, but it just don't play.
Back to top
Report this message as abusive
Google Ad
Back to top
 
Hassan

User


Joined: Mon May 4th 2009
Location: in my home
Posted: 7th Nov 2009 07:34     Edited: 7th Nov 2009 07:36     | link | toggle

This function will work
+ Code Snippet
#pragma comment ( lib, "winmm.lib" )
#pragma comment ( lib, "vfw32.lib" )
#include <windows.h>
#include <vfw.h>
HWND		hwnd_MCIWnd;       				// MCIWnd window handle

void PlayVideo (HWND hwnd_ParentWindow, LPSTR lpstr, int OriginX, int OriginY, int Width, int Height) 
{	
	DWORD dwMCIWndStyle = WS_CHILD |     	// child window
                WS_VISIBLE |     			// visible
                MCIWNDF_NOTIFYMODE |		// notifies of mode changes
                MCIWNDF_NOPLAYBAR; 			// hides toolbar

	hwnd_MCIWnd = MCIWndCreate(hwnd_ParentWindow, GetModuleHandle(NULL), dwMCIWndStyle, NULL);

    MCIWndOpen(hwnd_MCIWnd, lpstr, NULL);   // new device in window
	SetWindowPos(hwnd_MCIWnd,NULL,OriginX,OriginY,Width,Height,SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);

    MCIWndPlay(hwnd_MCIWnd);                // plays device
}

//called like:
PlayVideo ( g_pGlob->hWnd, "vidpath.wmv", 0, 0, 800, 600 );


you gotta give a huge thanks for sydbod for this function, he gave me it few weeks ago

even tho it's not very powerful, but i think it does the job

Back to top
Report this message as abusive

Go to the first page of this board Return to the Forum Menu Post Message
2 Messages - Page   of 1   
Search the Forum

You must be logged-in to post messages to this forum. You can register an account for free. Or click here to login.
Forum Search

Enter a word or phrase to search our Forum for:

Thread Subject Search
Search Phrase:
Search Scope: Entire forum
Just this board
 
Google Forum Search
Search Phrase:
 
Apollo v2.02


Dark Game Studio
Privacy Policy AUP Top of Page