Hi,
Is there a way to open a word document from within an Ogre program? Basically what I need is a button that can open the game's user manual when clicked. I already have implemented a clickable button using CEGUI.
The User manual.doc file would be in the same directory as the Ogre program.
I could, I think, use a file reader but the User manual contains pictures so it would be best if there was a way to just open the word document using Microsoft Word.
Thank you for any help you can give me,
Tommy
Opening a word document within a Ogre program
-
- Gnoblar
- Posts: 3
- Joined: Mon Mar 03, 2008 6:54 pm
- betajaen
- OGRE Moderator
- Posts: 3447
- Joined: Mon Jul 18, 2005 4:15 pm
- Location: Wales, UK
- x 58
- Contact:
- SunSailor
- Gnoll
- Posts: 699
- Joined: Sun Jan 02, 2005 5:45 pm
- Location: Velbert, Germany
- x 2
- Contact:
1.) I doubt this fits into general discussion, I think, back to basic would be suitable, as it doesn't has to anything with OGRE in the end.
2.) Why not deliver the manual as pdf? A pdf viewer seems to be installed more widely, than word. I know a lot of people, who don't own or use any version of word. And don't want to.
3.) Do you think it is a good idea to open such document from within the game? Creating a link in the start menu under the games folder is much more common. I wouldn't want to have an application to open after pressing a button in full screen mode...
2.) Why not deliver the manual as pdf? A pdf viewer seems to be installed more widely, than word. I know a lot of people, who don't own or use any version of word. And don't want to.
3.) Do you think it is a good idea to open such document from within the game? Creating a link in the start menu under the games folder is much more common. I wouldn't want to have an application to open after pressing a button in full screen mode...
- Assaf Raman
- OGRE Team Member
- Posts: 3092
- Joined: Tue Apr 11, 2006 3:58 pm
- Location: TLV, Israel
- x 76
Open a pdf - not all of the computers have word - and word is not free like the adobe reader.
Watch out for my OGRE related tweets here.
-
- Ogre Magi
- Posts: 1120
- Joined: Wed Nov 15, 2006 7:41 pm
- Location: Finland
- x 5
Do not use a Word document as a game manual.
Do you want that everyone who wants to read your manual, needs to install a program which is capable of reading a Word document?
If you already have created a Word document, then why not just let Word convert it into a HTML page. Your gamer will have internet browser installed.
I would say that HTML would be the best choice, after that PDF, maybe HTML help (.chm). HTML is obviously the first choice if we don't want our users to be forced into installing applications just so that they can read a manual.
If you want to have a link inside your game which opens an external application with some certain document, I'm sure a little bit of searching the www will give you the info how to do it (on Windows).
ShellExecute or something like that.
Do you want that everyone who wants to read your manual, needs to install a program which is capable of reading a Word document?
If you already have created a Word document, then why not just let Word convert it into a HTML page. Your gamer will have internet browser installed.
I would say that HTML would be the best choice, after that PDF, maybe HTML help (.chm). HTML is obviously the first choice if we don't want our users to be forced into installing applications just so that they can read a manual.
If you want to have a link inside your game which opens an external application with some certain document, I'm sure a little bit of searching the www will give you the info how to do it (on Windows).
ShellExecute or something like that.
- skullfire
- Gremlin
- Posts: 150
- Joined: Sat Mar 19, 2005 7:51 pm
- Location: San Jose, Costa Rica
- Contact:
Either way, wouldnt a simple shellexecute call solve this in whatever format you choose? If all you want is for the default program to open up and show you the word document (microsoft word usually), you have to call:
ShellExecute(hWnd, "open", "Readme.doc, NULL, NULL, NULL);
ShellExecute(hWnd, "open", "Readme.doc, NULL, NULL, NULL);
I may have alzheimer, but at least I dont have alzheimer.
-
- Halfling
- Posts: 62
- Joined: Mon Jan 29, 2007 12:47 pm
- Location: Singapore
i think Civilization's civilopedia help is an excellent example of an in-game "manual", though that's a pretty unique case.SunSailor wrote:3.) Do you think it is a good idea to open such document from within the game? Creating a link in the start menu under the games folder is much more common. I wouldn't want to have an application to open after pressing a button in full screen mode...
- SunSailor
- Gnoll
- Posts: 699
- Joined: Sun Jan 02, 2005 5:45 pm
- Location: Velbert, Germany
- x 2
- Contact:
Shure, an ingame help is definitly the better solution - but he wanted to open an external application. With an ingame solution, you don't enforce your game to leave the fullscreen mode, that's the point. With a link button and an external application, you do exactly that. /me would be annoyed about that .frooze wrote:i think Civilization's civilopedia help is an excellent example of an in-game "manual", though that's a pretty unique case.SunSailor wrote:3.) Do you think it is a good idea to open such document from within the game? Creating a link in the start menu under the games folder is much more common. I wouldn't want to have an application to open after pressing a button in full screen mode...