Jump to content

[C++] Binary Splash Screen


tierrilopes
 Share

Recommended Posts

Go to EterLib/MSWindow.cpp

Under:

#include "MsWindow.h"

Add:

#include "../EterLib/Splash.h"

 

Under:

bool CMSWindow::Create (const char *c_szName, int brush, DWORD cs, DWORD ws, HICON hIcon, int iCursorResource)
{

Add:

//splash
	CSplash splash1(TEXT("Protect.bmp"), RGB(128, 128, 128)); //Relative path to binary of the file, this case Protect.bmp
	splash1.ShowSplash();
	Sleep(3000); //Time in miliseconds to show splash image
	splash1.CloseSplash();
//end splash

 

Download files in attachment.

Put files in your EterLib folder (where MSWindow.cpp is located)

At Visual Studio:

  • Right-click EterLib project
  • Choose Add --> Add existing item
  • Select Splash.cpp and Splash.h and click Add

Recompile client binary and put your Protect.bmp in the relative location defined above

 

Class by: VertexBrasil

Splash.cpp

Splash.h

  • Like 1
  • Thanks 2
Link to comment
Share on other sites

3 hours ago, Shabba said:

@Tierri Lopes is it possible to build the image into the binary? :D 

 

Because some "high skilled hackers" will edit the image for themself :D

My original idea for this didnt work out, so i will look at msdn because i saw it there about using the file directly from the resources

Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...