301
Technical forum / Re:PROBLEM WITH VIDEOS
« on: October 27, 2003, 11:45:30 AM »
Thanks Jan!!
BTW: No problem about the missed post
BTW: No problem about the missed post

For WME related articles and tutorials visit WME Resource Center.
#include <windows.h>
#include <fstream>
#include <iostream>
#include <string>
using namespace std;
extern "C" __declspec(dllexport) void write_file(char* fileName, char* text)
{
string texto(text);
ofstream file(fileName);
file << texto << endl;
file.close();
}
extern "C" __declspec(dllexport) char* read_file(char* fileName)
{
string m, aux;
ifstream read(fileName);
if(!read.fail())
{
while(read)
{
getline(read, aux, '\n');
m = m + aux + "\n";
}
}
else cerr << "Error opening the file: Maybe the file doesn't exist or has a different name";
read.close();
char* k;
k = new char[m.length()];
strcpy(k, m.c_str());
return k;
}
23:58: ********** DEBUG LOG OPENED 15-10-2003 (Release Build) *****************
23:58: DEAD:CODE Games Framework ver 1.01 (Build 35), Compiled on Sep 16 2003, 22:26:50
23:58: Platform: Windows XP Service Pack 1 (Build 2600)
23:58: DirectX version: 9.0
23:58: BugslayerUtil.dll is bound
23:58:
23:58: Scanning packages...
23:58: Registered 0 files in 0 package(s)
23:58: Initializing scripting engine...
23:58: Script compiler 'dcscomp.dll' bound successfuly
23:58: Scanning packages...
23:58: Registered 0 files in 0 package(s)
23:58: Enumerating Direct3D devices...
23:58: Enumerating DirectSound devices...
23:58: Available video devices:
23:58: RADEON 9800 PRO (accelerated)
23:58: Available audio devices:
23:58: Controlador primario de sonido
23:58: SoundMAX Digital Audio
23:58: [no sound]
23:58: Auto selecting devices for windowed mode:
23:58: Video: RADEON 9800 PRO (accelerated)
23:58: Windowed:yes Colors:16bit T&L:no Multisample:0
23:58: Audio: Controlador primario de sonido
23:58: Maximum texture size: 2048x2048
23:58: ----- Open file: 'C:\Documents and Settings\Manolo\Mis documentos\Otros Archivos\Notas\Notas.wpr' -----
23:58: Scanning packages...
23:58: Registered 0 files in 0 package(s)
23:59:
23:59: Shutting down...
23:59: Shutting down scripting engine
23:59: ********** DEBUG LOG CLOSED ********************************************
23:59: ********** DEBUG LOG OPENED 15-10-2003 (Release Build) *****************
23:59: DEAD:CODE Games Framework ver 1.01 (Build 35), Compiled on Sep 16 2003, 22:26:50
23:59: Platform: Windows XP Service Pack 1 (Build 2600)
23:59: DirectX version: 9.0
23:59: BugslayerUtil.dll is bound
23:59:
23:59: Scanning packages...
23:59: Registered 0 files in 0 package(s)
23:59: Initializing scripting engine...
23:59: Script compiler 'dcscomp.dll' bound successfuly
23:59: Loading string table...
23:59: 23 strings loaded
23:59: Enumerating Direct3D devices...
23:59: Enumerating DirectDraw devices...
23:59: Enumerating DirectSound devices...
23:59: Available video devices:
23:59: RADEON 9800 PRO (accelerated)
23:59: RADEON 9800 PRO (non accelerated)
23:59: Available audio devices:
23:59: Controlador primario de sonido
23:59: SoundMAX Digital Audio
23:59: [sin sonido]
23:59:
23:59: User selected:
23:59: Video: RADEON 9800 PRO (accelerated)
23:59: Windowed:no Colors:32bit T&L:no Multisample:0
23:59: Audio: Controlador primario de sonido
23:59: Maximum texture size: 2048x2048
23:59: Data initialized in 32 ms
23:59:
23:59: Shutting down...
23:59: Shutting down scripting engine
23:59: ********** DEBUG LOG CLOSED ********************************************