Delphi IDE (239)
Windows with Delphi (38)
hInstance is no longer defined in Delphi 8 .NET
2 comments. Current rating: (1 votes). Leave comments and/ or rate it.
Question:It seems that the global variable hInstance is no longer defined in .NET. How do I obtain the instance handle now?
Answer:HInstance provides a unique instance handle for the application or library. It indicates the handle for a module.
You need to add unit WINUTILS to your uses clause to make the following code work: