Real time splash window

A forum to store posts deemed exceptionally wise and useful
OpenSource

@Emil_halim

Post by OpenSource »

check this out if it doesnot work on ur PC then

/*********************************************************/
//test.h
/*********************************************************/
class test
{
public:
test()
{
cout<<"Constructor Running"<<endl;
}
~test()
{
cout<<"Destructor Running"<<endl;
}
};

/*********************************************************/
//main.cpp
/*********************************************************/
#include <iostream.h>
#inlude "test.h"

int main()
{
test mytest;
return 0;
}

it is just for checking... coz i m getting cout error in this code...
Guest

Post by Guest »

@ OpenSurce

thanks for your kind words


I got the next errors

D:\Program Files\Microsoft Visual C++ Toolkit 2003\include\ostream(574) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
D:\Program Files\Microsoft Visual C++ Toolkit 2003\include\istream(828) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
D:\Program Files\Microsoft Visual C++ Toolkit 2003\include\istream(1064) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
c:\BCX\cpp\BCXDX_Irrlicht\DxDemos\test\test.h(9) : error C2065: 'cout' : undeclared identifier
c:\BCX\cpp\BCXDX_Irrlicht\DxDemos\test\test.h(9) : error C2065: 'endl' : undeclared identifier
c:\BCX\cpp\BCXDX_Irrlicht\DxDemos\test\test.h(13) : error C3861: 'cout': identifier not found, even with argument-dependent lookup
c:\BCX\cpp\BCXDX_Irrlicht\DxDemos\test\test.h(13) : error C3861: 'endl': identifier not found, even with argument-dependent lookup
OpenSource

@guest

Post by OpenSource »

it was just an example for emil_Halim not for u my friend
for splash screen check the code on page 2
Guest

Post by Guest »

Code: Select all

2 F:\CSplash.cpp ISO C++ forbids declaration of `BOOL' with no type
2 F:\CSplash.cpp typedef `BOOL' is initialized (use __typeof__ instead) 
2 F:\CSplash.cpp `MY_BOOLFUNC_TYPE' was not declared in this scope 
2 F:\CSplash.cpp expected `,' or `;' before '(' token 
6 F:\CSplash.cpp `HWND' does not name a type
7 F:\CSplash.cpp `DWORD' does not name a type 
8 F:\CSplash.cpp ISO C++ forbids declaration of `dimension2d' with no type 
8 F:\CSplash.cpp expected `;' before '<' token 
11 F:\CSplash.cpp expected `)' before '*' token 
22 F:\CSplash.cpp variable or field `playSplash' declared void 
22 F:\CSplash.cpp expected `;' before '(' token 
43 F:\CSplash.cpp expected `;' before '}' token 
F:\splash\Makefile.win [Build Error]  [../CSplash.o] Error 1
Opensource's code fixed the above issues I was having.
Emil_halim
Posts: 518
Joined: Tue Mar 29, 2005 9:02 pm
Location: Alex,Egypt
Contact:

Re: @guest

Post by Emil_halim »

OpenSource wrote:it was just an example for emil_Halim not for u my friend
for splash screen check the code on page 2
Hi OpenSourc

have error with your code
OpenSource

@Emil_halim

Post by OpenSource »

buddy i gave my opinion on errors that were coming on others PC's when they compiled ur zip file on page 2 at the end.

and on page 3 i gave u an example to show that somehow to some extent my opinion was right...

thats it i know it has got errors

to fix the errors include file(iostream.h) must be placed in test.cpp
Emil_halim
Posts: 518
Joined: Tue Mar 29, 2005 9:02 pm
Location: Alex,Egypt
Contact:

Post by Emil_halim »

ok i will correct the wiki tutorial as you fixed it.


finally i really want to thank you for your great effort for fixing it
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

I'm still having problems; even with the latest fixes:

Code: Select all

Linking console executable: C:\Irrlicht\My_projects\splash\splash.exe
main.obj : error LNK2019: unresolved external symbol __imp__SetWindowLongA@12 referenced in function "public: void __thiscall TSplash::playSplash(int (__cdecl*)(void),unsigned int,int,int)" (?playSplash@TSplash@@QAEXP6AHXZIHH@Z)
main.obj : error LNK2019: unresolved external symbol __imp__SetWindowPos@28 referenced in function "public: void __thiscall TSplash::playSplash(int (__cdecl*)(void),unsigned int,int,int)" (?playSplash@TSplash@@QAEXP6AHXZIHH@Z)
main.obj : error LNK2019: unresolved external symbol __imp__GetSystemMetrics@4 referenced in function "public: void __thiscall TSplash::playSplash(int (__cdecl*)(void),unsigned int,int,int)" (?playSplash@TSplash@@QAEXP6AHXZIHH@Z)
main.obj : error LNK2019: unresolved external symbol __imp__GetWindowLongA@8 referenced in function "public: __thiscall TSplash::TSplash(class irr::video::IVideoDriver *)" (??0TSplash@@QAE@PAVIVideoDriver@video@irr@@@Z)
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class irr::IrrlichtDevice * __cdecl irr::createDevice(enum irr::video::E_DRIVER_TYPE,class irr::core::dimension2d<int> const &,unsigned int,bool,bool,bool,class irr::IEventReceiver *,unsigned short const *)" (__imp_?createDevice@irr@@YAPAVIrrlichtDevice@1@W4E_DRIVER_TYPE@video@1@ABV?$dimension2d@H@core@1@I_N22PAVIEventReceiver@1@PBG@Z) referenced in function _main
C:\Irrlicht\My_projects\splash\splash.exe : fatal error LNK1120: 5 unresolved externals
Process terminated with status 1 (0 minutes, 4 seconds)
omaremad

Post by omaremad »

im not sure

maybe u havent set the libraries correctly

Code: Select all

cdecl irr::createDevice(enum irr::video::E_DRIVER_TYPE,class irr::core::dimension2d<int> const &,unsigned int,bool,bool,bool,class irr::IEventReceiver *,unsigned short const *)" (__imp_?createDevice@irr@@YAPAVIrrlichtDevice@1@W4E_DRIVER_TYPE@video@1@ABV?
this one comes up if u dont tell the compiler about the irrlicht lib and it came up in the error
OpenSource

Post by OpenSource »

@afecelis

include this lib "User32.lib" may this fix errors
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

whoa!

that finally did it!

Thnx guys, both of you. :D

Now I need some content to see it in action. I run the app I get errors. Any ideas?
Emil_halim
Posts: 518
Joined: Tue Mar 29, 2005 9:02 pm
Location: Alex,Egypt
Contact:

Post by Emil_halim »

check the paths of your media
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

oooooops! :oops: :oops: :oops:

Thnx! it works beautifully!

finally after some months I get to see it!

I reaffirm what i said on my first post to this; this is extremely useful. :D
Post Reply