Copyright © 2003-2010 MultiMedia Soft

SetTemplateBinDir method

Previous pageReturn to chapter overviewNext page

Remarks

Sets a directory from which the extended 3D control templates, created using the SaveTemplateEx method and loaded using the LoadTemplate method, will take the binary files for pictures, animations, textures, sounds and cursor.

Usually 3D control extended templates store binary files pathnames that are relative to the machine used to develop the application: these pathnames will be probably invalid when the application runs over the target machine: using this method, only the binary filename will be taken form the extended template and appended to the strFilepath parameter in order to obtain the target machine directory: usually this directory is created by the application setup program.

It is recommended that you call this method for every kind of binary file that has been stored inside the extended template.

For further information about 3D control templates support take a look to the section How to manage 3D control templates

 

Syntax

 

[Visual Basic]

Public Sub SetTemplateBinDir(nType as Ctl3d.TplBinTypes, strFilePath as String)

 

[C#]

public void SetTemplateBinDir(Ctl3d.TplBinTypes nType, string strFilePath);

 

[C++]

public: void SetTemplateBinDir(Ctl3d.TplBinTypes nType, String* strFilePath);

 

 

Parameter

Description

 

 

nType

The type of binary files that will be found inside the directory indicated by the strFilepath parameter.

Supported values are the following:

Enumerated value

Value

Meaning

TplBinTypes.Pictures

0

The strFilepath parameter is relative to the directory containing pictures and animations files.

TplBinTypes.Textures

1

The strFilepath parameter is relative to the directory containing textures files.

TplBinTypes.Sounds

2

The strFilepath parameter is relative to the directory containing sounds files.

TplBinTypes.Cursors

3

The strFilepath parameter is relative to the directory containing cursors files.

strFilepath

String containing the pathname of the binary files inside the target machine