1

Topic: Variable type from a certain unit

Faced type which it is defined and in WinApi. Windows (TMsg) and in the user unit of a program.
In  there was a possibility to specify from what  type and how in Delphi it to make?

var msg NazvanieJunita.TMsg;//does not roll

2

Re: Variable type from a certain unit

hlopotun;
Colon deliver

3

Re: Variable type from a certain unit

Companion the low sergeant;
Thanks

4

Re: Variable type from a certain unit

hlopotun wrote:

and how in Delphi it to make?

Absolutely in the same way.  from Delfi this syntax also borrowed.

5

Re: Variable type from a certain unit

the low sergeant wrote:

hlopotun;
Colon deliver

, here simply forgot to inscribe, this that colon stood in the code

var msg: .TMsg;//does not roll
var msg: :TMsg;//I thought that so, but too does not roll

6

Re: Variable type from a certain unit

And how you learned, what "does not roll"?

7

Re: Variable type from a certain unit

hlopotun;
the pancake , viewed (a unit forgot in uses to add

8

Re: Variable type from a certain unit

hlopotun wrote:

hlopotun;
the pancake , viewed (a unit forgot in uses to add

More precisely not that added, but the essence does not change.