Didnt work.
Quote: "1>------ Build started: Project: Welcome Screen, Configuration: Debug Win32 ------
1>Compiling...
1>Main.cpp
1>c:\users\rei\documents\visual studio 2008\projects\welcome screen\welcome screen\start.h(23) : error C2664: 'SplashScreen' : cannot convert parameter 1 from 'std::string' to 'char *'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>Build log was saved at "file://c:\Users\Rei\Documents\Visual Studio 2008\Projects\Welcome Screen\Welcome Screen\Debug\BuildLog.htm"
1>Welcome Screen - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped =========="
#ifndef START
#define START
#include <string>
#include "DarkGDK.h"
#include <iostream>
using namespace std;
//Declarations
void SetDisplay();
void SetBasicsAndLoad(bool fullscreen, string introtext);
void SplashScreen(char* introText);
void Start(bool fullscreen, string introText)
{
std::string;
SetDisplay();
SetBasicsAndLoad(fullscreen, introText);
SplashScreen(introText);
//Set Sync Rate
dbSyncOn ( );
dbSyncRate ( 60 );
}
void SetDisplay()
{
if (dbCheckDisplayMode ( 1680, 1050, 32 ))
{
dbSetDisplayMode ( 1680, 1050, 32 );
}
else if (dbCheckDisplayMode ( 1600, 1024, 32 ))
{
dbSetDisplayMode ( 1600, 1024, 32 );
}
else if (dbCheckDisplayMode ( 1440, 900, 32 ))
{
dbSetDisplayMode ( 1440, 900, 32 );
}
else if (dbCheckDisplayMode ( 1400, 1050, 32 ))
{
dbSetDisplayMode ( 1400, 1050, 32 );
}
else if (dbCheckDisplayMode ( 1280, 1024, 32 ))
{
dbSetDisplayMode ( 1280, 1024, 32 );
}
else if (dbCheckDisplayMode ( 1280, 960, 32 ))
{
dbSetDisplayMode ( 1280, 960, 32 );
}
else if (dbCheckDisplayMode ( 1280, 800, 32 ))
{
dbSetDisplayMode ( 800, 600, 32 );
}
else if (dbCheckDisplayMode ( 1280, 720, 32 ))
{
dbSetDisplayMode ( 1280, 720, 32 );
}
else if (dbCheckDisplayMode ( 1152, 864, 32 ))
{
dbSetDisplayMode ( 1152, 864, 32 );
}
else if (dbCheckDisplayMode ( 1024, 768, 32 ))
{
dbSetDisplayMode ( 1024, 768, 32 );
}
else if (dbCheckDisplayMode ( 800, 600, 32 ))
{
dbSetDisplayMode ( 800, 600, 32 );
}
}
void SetBasicsAndLoad(bool fullscreen, string introtext)
{
dbPositionMouse(0,0);
// dbSetWindowTitle(introtext);
dbMaximiseWindow();
if(fullscreen)
{
dbSetWindowOff();
}
}
void SplashScreen(char* introText)
{
dbSetTextFont( "times new roman" );
dbSetTextSize(50);
dbText(dbScreenWidth()/2-dbTextWidth(introText)/2,dbScreenHeight()/2, introText );
dbText(0,0,introText);
dbPrint ( "" );
dbColorBackdrop( dbRGB(0,0,0) );
//Camera Position and Variables
dbPositionCamera ( 0, 0, -5000 );
float fCameraAngleX = 0.0f;
float fCameraAngleY = 0.0f;
dbSetCameraRange(0.001,30000);
dbSuspendForKey();
dbCLS();
}
#endif