Opening a word document within a Ogre program

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
TommyC
Gnoblar
Posts: 3
Joined: Mon Mar 03, 2008 6:54 pm

Opening a word document within a Ogre program

Post by TommyC » Mon Apr 14, 2008 4:44 pm

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
0 x

User avatar
betajaen
OGRE Moderator
OGRE Moderator
Posts: 3447
Joined: Mon Jul 18, 2005 4:15 pm
Location: Wales, UK
Contact:

Post by betajaen » Mon Apr 14, 2008 5:12 pm

It would probably me more efficient to use something like Navi to display a webpage than battle with the beast that is Microsoft Word.
0 x

User avatar
SunSailor
Gnoll
Posts: 699
Joined: Sun Jan 02, 2005 5:45 pm
Location: Velbert, Germany
Contact:

Post by SunSailor » Mon Apr 14, 2008 5:14 pm

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...
0 x

User avatar
Assaf Raman
OGRE Team Member
OGRE Team Member
Posts: 3092
Joined: Tue Apr 11, 2006 3:58 pm
Location: TLV, Israel

Post by Assaf Raman » Mon Apr 14, 2008 5:14 pm

Open a pdf - not all of the computers have word - and word is not free like the adobe reader.
0 x
Watch out for my OGRE related tweets here.

reptor
Ogre Magi
Posts: 1120
Joined: Wed Nov 15, 2006 7:41 pm
Location: Finland

Post by reptor » Mon Apr 14, 2008 8:14 pm

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.
0 x

TommyC
Gnoblar
Posts: 3
Joined: Mon Mar 03, 2008 6:54 pm

Post by TommyC » Mon Apr 14, 2008 9:26 pm

Thanks for the many replies people, and your right - a webpage (.html) or PDF is the best way to go. :D

I agree that this post should have been in Back to Basics or somewhere else - I'm sorry that I posted here. :oops:

Thanks again,

Tommy
0 x

User avatar
skullfire
Gremlin
Posts: 150
Joined: Sat Mar 19, 2005 7:51 pm
Location: San Jose, Costa Rica
Contact:

Post by skullfire » Mon Apr 14, 2008 11:54 pm

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);


:roll:
0 x
I may have alzheimer, but at least I dont have alzheimer.

frooze
Halfling
Posts: 62
Joined: Mon Jan 29, 2007 12:47 pm
Location: Singapore

Post by frooze » Tue Apr 15, 2008 12:30 am

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...
i think Civilization's civilopedia help is an excellent example of an in-game "manual", though that's a pretty unique case.
0 x

User avatar
SunSailor
Gnoll
Posts: 699
Joined: Sun Jan 02, 2005 5:45 pm
Location: Velbert, Germany
Contact:

Post by SunSailor » Tue Apr 15, 2008 10:47 am

frooze wrote:
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...
i think Civilization's civilopedia help is an excellent example of an in-game "manual", though that's a pretty unique case.
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 ;).
0 x

Post Reply