engiSetStringEncoding

Sets encoding for sdaiSTRING data type in put and get functions if model is NULL it will set codepage for models, created after the call or for contexts when model is not known returns 1 when successful of 0 when fails.

Syntax

public const string enginedll = @"engine.dll";

[DllImport(enginedll, EntryPoint = "engiSetStringEncoding")]
public static extern Int32 x86_engiSetStringEncoding(Int32 model, byte encoding);

[DllImport(enginedll, EntryPoint = "engiSetStringEncoding")]
public static extern Int32 x64_engiSetStringEncoding(Int64 model, byte encoding);

public static Int32 engiSetStringEncoding(Int64 model, byte encoding)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_engiSetStringEncoding((Int32)model, encoding);
				return _result;
			}
			else
			{
				return x64_engiSetStringEncoding(model, encoding);
			}
		}    

Property model

Size: 32 bit / 4 byte (value)
The handle to the model. The model handle is static during its existance. Several models can be opened simultaniously within one session. Different models are always independent, threads are allowed to be running on different models simultaniously.

Property encoding

Size: 8 bit / 1 byte (value)
???.