Real time splash window
@Emil_halim
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...
/*********************************************************/
//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...
@ 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
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
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
-
- Posts: 518
- Joined: Tue Mar 29, 2005 9:02 pm
- Location: Alex,Egypt
- Contact:
Re: @guest
Hi OpenSourcOpenSource wrote:it was just an example for emil_Halim not for u my friend
for splash screen check the code on page 2
have error with your code
Magic 2d Library For Irrlicht : http://www.freewebs.com/bcxgl/index.htm
http://www.freewebs.com/bcxdx/index.htm
http://groups.yahoo.com/group/bcxdxc/
http://www.freewebs.com/bcxdx/index.htm
http://groups.yahoo.com/group/bcxdxc/
@Emil_halim
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
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
-
- Posts: 518
- Joined: Tue Mar 29, 2005 9:02 pm
- Location: Alex,Egypt
- Contact:
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
finally i really want to thank you for your great effort for fixing it
Magic 2d Library For Irrlicht : http://www.freewebs.com/bcxgl/index.htm
http://www.freewebs.com/bcxdx/index.htm
http://groups.yahoo.com/group/bcxdxc/
http://www.freewebs.com/bcxdx/index.htm
http://groups.yahoo.com/group/bcxdxc/
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)
im not sure
maybe u havent set the libraries correctly
this one comes up if u dont tell the compiler about the irrlicht lib and it came up in the error
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?
-
- Posts: 518
- Joined: Tue Mar 29, 2005 9:02 pm
- Location: Alex,Egypt
- Contact:
check the paths of your media
Magic 2d Library For Irrlicht : http://www.freewebs.com/bcxgl/index.htm
http://www.freewebs.com/bcxdx/index.htm
http://groups.yahoo.com/group/bcxdxc/
http://www.freewebs.com/bcxdx/index.htm
http://groups.yahoo.com/group/bcxdxc/