How do you initialise a const array of TGUID from Interface type data, in Delphi?

后端 未结 7 783
谎友^
谎友^ 2020-12-18 00:43

I want to initialise an array like this -

Const MyArray : Array[0..0] Of TGUID = (IInterface);

But it results in -

[DCC Err         


        
7条回答
  •  醉话见心
    2020-12-18 01:27

    If you use a const array you have to set it up with const values like this:

    const GuidArray: array[0..0] of TGuid=
      ('{84DBCC66-72AA-4806-AE28-B55FC5B83FC8}');
    

提交回复
热议问题