Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Create include file .oph

2 replies · 1,977 views · Started 22 June 2004

1 - How i can create a include file .oph ?
2 - For insert some constant in an OPL project there is another way instead .oph files?

Thanks

1: Create a const.tph file in a Text Editor for PC translation, or save a Program file as const.oph from the on device Program Editor
2: Just add CONST KConstantName%=32566721 at the start of the code.

I have tried to make a PC translation with the series 60 dev pack, but I have made something wrong. I show you what i have do.

This is the const.tph file:

rem Constant for sprite
CONST KSPMaxSpriteNumber% = 16
CONST KSPMaxImageBank% = 16

I write in the command line:

opltran const.tph

The result is:
[ExeDrive=C:]
[source=D:\DOCUME~1\Aldo\DOCUME~1\Download\Nokia\OPL\const.tph]
[InputPath=D:\DOCUME~1\Aldo\DOCUME~1\Download\Nokia\OPL\]
[IncludePath=D:\DOCUME~1\Aldo\DOCUME~1\Download\Nokia\OPL\]
[cwd=D:\DOCUME~1\Aldo\DOCUME~1\Download\Nokia\OPL\]
[OutputPath=D:\DOCUME~1\Aldo\DOCUME~1\Download\Nokia\OPL\const]
D:\DOCUME~1\Aldo\DOCUME~1\Download\Nokia\OPL\const.tph(4) : error 19 : column 1 : Syntax error