Relative Content

Tag Archive for delphi

How can I get a Pointer to a generic instance?

TTestClass = class content: Integer; end; TTest = class public class procedure TestProc<T: class>(obj: T); end; class procedure TTest.TestProc<T>(obj: T); var p: Pointer; begin p := Pointer(obj); p := @obj; end; Here, the two different ways of getting a pointer to an object give different results. RTTI functions take the first method, but it only […]

UNC Path incl. all server domain information

I need to compare path string and can’t work is any difference in the display information of an UNC path.
how to convert a path into the full UNC Version incl. server domain information in Delphin ?