TGE ingame internet html browser ubrowser mozilla VC8
by Javier Canon · in Torque Game Engine · 06/20/2007 (11:49 am) · 1 replies
I am trying to implement a html browser for TGE using visual studio 2005 (VC8)
I am based in the work of http://www.mmoworkshop.com/trac/mom/wiki/TGBBrowser
- Compile of mozilla with VC8 download link: http://scottwadden.com/llmozlibVC8.zip
the instructions:
1. Copy llmozlib to your engine/lib folder
2. Make a folder called "browser" in your engine/source/gui folder and copy guiBrowserCtrl.h and guiBrowserCtrl.cc into it
3. Open up engine/compilers/VisualStudio.net/TGE SDK.sln in Visual Studio .NET 2005
4. Add a "browser" folder to the TGE project under Source Files/gui, then add the guiBrowserCtrl.h and guiBrowserCtrl.cc to this folder. (from http://www.mmoworkshop.com/trac/mom/wiki/TGBBrowser )
5. Select the Release build of TGE as the active project
6. Open the Properties for the TGE project
7. Navigate to C++ -> General and add ../../lib/llmozlib/include to Additional Include Directories
8. Navigate to C++ -> Preprocessor and add TORQUE_DISABLE_MEMORY_MANAGER to Preprocessor Definitions (see notes in source about this)
9. Navigate to Linker->General and add ../../lib/llmozlib/win32 to Additional Library Directories
10. Navigate to Linker->Input and add llmozlib.lib to Additional Dependencies
11. In engine/source/platformWin32/winMemory.cc comment out:
/* void* FN_CDECL operator new(dsize_t, void* ptr) {
return (ptr);
} */
12. In engine/source/platform.h make this change:
//extern void* FN_CDECL operator new(dsize_t size, void* ptr);
#include
13. For each project in the TGE SDK solution, change to use Multithreaded DLL Runtime Libraries ( Properties->C/C++->Code Generation->Runtime Library->Multi-threaded DLL)
14. Clean and then build the TGE project
15. Open games/main.cs and add the below to the onStart and onExit functions:
function onStart() {
initEmbeddedBrowser("MyProfile");
}
function onExit() {
shutdownEmbeddedBrowser();
}
------------------------------------------------------------------------
the problem is when compile:
1.
error C2660: 'operator new' : the function dont accept 2 arguments ...\engine\platform\platform.h 563
2.
if uncomment the line: //extern void* FN_CDECL operator new(dsize_t size, void* ptr);
compile ok, but the .exe dont work....
some help will be aprecied...
I am based in the work of http://www.mmoworkshop.com/trac/mom/wiki/TGBBrowser
- Compile of mozilla with VC8 download link: http://scottwadden.com/llmozlibVC8.zip
the instructions:
1. Copy llmozlib to your engine/lib folder
2. Make a folder called "browser" in your engine/source/gui folder and copy guiBrowserCtrl.h and guiBrowserCtrl.cc into it
3. Open up engine/compilers/VisualStudio.net/TGE SDK.sln in Visual Studio .NET 2005
4. Add a "browser" folder to the TGE project under Source Files/gui, then add the guiBrowserCtrl.h and guiBrowserCtrl.cc to this folder. (from http://www.mmoworkshop.com/trac/mom/wiki/TGBBrowser )
5. Select the Release build of TGE as the active project
6. Open the Properties for the TGE project
7. Navigate to C++ -> General and add ../../lib/llmozlib/include to Additional Include Directories
8. Navigate to C++ -> Preprocessor and add TORQUE_DISABLE_MEMORY_MANAGER to Preprocessor Definitions (see notes in source about this)
9. Navigate to Linker->General and add ../../lib/llmozlib/win32 to Additional Library Directories
10. Navigate to Linker->Input and add llmozlib.lib to Additional Dependencies
11. In engine/source/platformWin32/winMemory.cc comment out:
/* void* FN_CDECL operator new(dsize_t, void* ptr) {
return (ptr);
} */
12. In engine/source/platform.h make this change:
//extern void* FN_CDECL operator new(dsize_t size, void* ptr);
#include
13. For each project in the TGE SDK solution, change to use Multithreaded DLL Runtime Libraries ( Properties->C/C++->Code Generation->Runtime Library->Multi-threaded DLL)
14. Clean and then build the TGE project
15. Open games/main.cs and add the below to the onStart and onExit functions:
function onStart() {
initEmbeddedBrowser("MyProfile");
}
function onExit() {
shutdownEmbeddedBrowser();
}
------------------------------------------------------------------------
the problem is when compile:
1.
error C2660: 'operator new' : the function dont accept 2 arguments ...\engine\platform\platform.h 563
2.
if uncomment the line: //extern void* FN_CDECL operator new(dsize_t size, void* ptr);
compile ok, but the .exe dont work....
some help will be aprecied...
About the author
God blessed me with a brilliant mind... so im a genius...
Torque Owner Javier Canon
www.garagegames.com/mg/forums/result.thread.php?qt=61495